]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove incorrect commentary about #$ in autoloads
authorNoam Postavsky <npostavs@gmail.com>
Fri, 12 Jul 2019 00:15:27 +0000 (20:15 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Sun, 14 Jul 2019 01:25:10 +0000 (21:25 -0400)
* lisp/emacs-lisp/autoload.el (autoload-rubric):
`package-quickstart-refresh' does in fact support load-file-name as
well.

lisp/emacs-lisp/autoload.el

index dfcf17ce1e8bf423d2d8acfec17fb71e2c01db4a..fa2c6cdd0395484589575ef08dafcb0549dd3eb7 100644 (file)
@@ -370,11 +370,6 @@ FILE's name."
            ";;\n"
            ";;; Code:\n\n"
            (if lp
-                ;; Use the `#$' to indicate current file, from which
-                ;; we extract the directory name.  Note that
-                ;; `package-quickstart-refresh' specifically replaces
-                ;; `#$', so any other tricks (e.g., `load-file-name')
-                ;; will not work for that case.
                "(add-to-list 'load-path (directory-file-name
                          (or (file-name-directory #$) (car load-path))))\n\n")
            "\f\n"