Advertisement
Guest User

Untitled

a guest
May 3rd, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. (require 'nadvice)
  2. (defun pps-after (x)
  3. (interactive)
  4. (let ((lst `(:depth ,(nth 0 x)
  5. :char-add-start-innermost ,(nth 1 x)
  6. :char-add-start-last ,(nth 2 x)
  7. :instring ,(nth 3 x)
  8. :inside-comment ,(nth 4 x)
  9. :quote-char ,(nth 5 x)
  10. :min-paren-depth ,(nth 6 x)
  11. :char-add-start-comment-or-string ,(nth 7 x)
  12. :open-paren-pos ,(nth 8 x)
  13. :last-pos ,(nth 9 x))))
  14. (message (format "%s" lst)))
  15. x)
  16. ;; (advice-remove 'parse-partial-sexp 'pps-after)
  17. (advice-add 'parse-partial-sexp :filter-return 'pps-after)
  18.  
  19. (ex-put-example 'mapl '(";; function &rest lists+ => list-1
  20. (mapl #'(lambda (x y) (insert (format \"%s\\n\" (append x y)))) (list 1 0 2) (list 3 4 5))"))
  21.  
  22. (ex-put-example 'maplist '(";; function &rest lists+ => result-list
  23. \(maplist #'list (list 1 2 3) (list 4 5 6))"
  24. ))
  25.  
  26. (ex-put-example 'maplist '(";; function &rest lists+ => result-list
  27. \(maplist #'list (list 1 2 3) (list 4 5 6))"
  28. ))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement