feat(docs): simplify (function x) to #'x

master
Matus Goljer 6 years ago
parent ea7adeb09c
commit 800c25d1e8
No known key found for this signature in database
GPG Key ID: FA5A172CF1800B80
  1. 11
      dev/examples-to-docs.el
  2. 11
      dev/examples-to-info.el

@ -163,7 +163,16 @@ FUNCTION may reference an elisp function, alias, macro or a subr."
(delete-char -1)
(goto-char p)
(delete-char 7)
(insert "'"))))
(insert "'")))
(goto-char (point-min))
(while (search-forward "(function " nil t)
(forward-char -10)
(let ((p (point)))
(forward-sexp 1)
(delete-char -1)
(goto-char p)
(delete-char 10)
(insert "#'"))))
(defun goto-and-remove (s)
(goto-char (point-min))

@ -169,7 +169,16 @@ FUNCTION may reference an elisp function, alias, macro or a subr."
(delete-char -1)
(goto-char p)
(delete-char 7)
(insert "'"))))
(insert "'")))
(goto-char (point-min))
(while (search-forward "(function " nil t)
(forward-char -10)
(let ((p (point)))
(forward-sexp 1)
(delete-char -1)
(goto-char p)
(delete-char 10)
(insert "#'"))))
(defun goto-and-remove (s)
(goto-char (point-min))

Loading…
Cancel
Save