diff options
| author | Stefan Monnier | 2012-05-07 16:48:41 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2012-05-07 16:48:41 -0400 |
| commit | 28be5ce7b02a715ccc7960fa05ca96111c97ced9 (patch) | |
| tree | a0f52a4c569c5f1975fbee70af2ec0fb5407653a | |
| parent | d13c8be67c41a533dfc5d8ebda8a263274f21b83 (diff) | |
| download | emacs-28be5ce7b02a715ccc7960fa05ca96111c97ced9.tar.gz emacs-28be5ce7b02a715ccc7960fa05ca96111c97ced9.zip | |
* loadup.el: Preload newcomment.el.
* newcomment.el: Move autoload-only code to toplevel.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/loadup.el | 1 | ||||
| -rw-r--r-- | lisp/newcomment.el | 15 |
3 files changed, 14 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 33138c34809..b0a042f0664 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2012-05-07 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2012-05-07 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * loadup.el: Preload newcomment.el. | ||
| 4 | * newcomment.el: Move autoload-only code to toplevel. | ||
| 5 | |||
| 3 | * buff-menu.el (list-buffers--refresh): Mark `size' as right-align. | 6 | * buff-menu.el (list-buffers--refresh): Mark `size' as right-align. |
| 4 | * emacs-lisp/tabulated-list.el (tabulated-list-init-header): | 7 | * emacs-lisp/tabulated-list.el (tabulated-list-init-header): |
| 5 | Handle new :right-align column property. | 8 | Handle new :right-align column property. |
diff --git a/lisp/loadup.el b/lisp/loadup.el index 5f005a4e709..ab3b107e56c 100644 --- a/lisp/loadup.el +++ b/lisp/loadup.el | |||
| @@ -186,6 +186,7 @@ | |||
| 186 | (load "emacs-lisp/lisp-mode") | 186 | (load "emacs-lisp/lisp-mode") |
| 187 | (load "textmodes/text-mode") | 187 | (load "textmodes/text-mode") |
| 188 | (load "textmodes/fill") | 188 | (load "textmodes/fill") |
| 189 | (load "newcomment") | ||
| 189 | 190 | ||
| 190 | (load "replace") | 191 | (load "replace") |
| 191 | (load "emacs-lisp/tabulated-list") | 192 | (load "emacs-lisp/tabulated-list") |
diff --git a/lisp/newcomment.el b/lisp/newcomment.el index 0862427c3ba..5c8829ff72e 100644 --- a/lisp/newcomment.el +++ b/lisp/newcomment.el | |||
| @@ -102,30 +102,35 @@ Comments might be indented to a different value in order not to go beyond | |||
| 102 | :type 'integer | 102 | :type 'integer |
| 103 | :group 'comment) | 103 | :group 'comment) |
| 104 | (make-variable-buffer-local 'comment-column) | 104 | (make-variable-buffer-local 'comment-column) |
| 105 | ;;;###autoload(put 'comment-column 'safe-local-variable 'integerp) | 105 | ;;;###autoload |
| 106 | (put 'comment-column 'safe-local-variable 'integerp) | ||
| 106 | 107 | ||
| 107 | ;;;###autoload | 108 | ;;;###autoload |
| 108 | (defvar comment-start nil | 109 | (defvar comment-start nil |
| 109 | "String to insert to start a new comment, or nil if no comment syntax.") | 110 | "String to insert to start a new comment, or nil if no comment syntax.") |
| 110 | ;;;###autoload(put 'comment-start 'safe-local-variable 'string-or-null-p) | 111 | ;;;###autoload |
| 112 | (put 'comment-start 'safe-local-variable 'string-or-null-p) | ||
| 111 | 113 | ||
| 112 | ;;;###autoload | 114 | ;;;###autoload |
| 113 | (defvar comment-start-skip nil | 115 | (defvar comment-start-skip nil |
| 114 | "Regexp to match the start of a comment plus everything up to its body. | 116 | "Regexp to match the start of a comment plus everything up to its body. |
| 115 | If there are any \\(...\\) pairs, the comment delimiter text is held to begin | 117 | If there are any \\(...\\) pairs, the comment delimiter text is held to begin |
| 116 | at the place matched by the close of the first pair.") | 118 | at the place matched by the close of the first pair.") |
| 117 | ;;;###autoload(put 'comment-start-skip 'safe-local-variable 'string-or-null-p) | 119 | ;;;###autoload |
| 120 | (put 'comment-start-skip 'safe-local-variable 'string-or-null-p) | ||
| 118 | 121 | ||
| 119 | ;;;###autoload | 122 | ;;;###autoload |
| 120 | (defvar comment-end-skip nil | 123 | (defvar comment-end-skip nil |
| 121 | "Regexp to match the end of a comment plus everything back to its body.") | 124 | "Regexp to match the end of a comment plus everything back to its body.") |
| 122 | ;;;###autoload(put 'comment-end-skip 'safe-local-variable 'string-or-null-p) | 125 | ;;;###autoload |
| 126 | (put 'comment-end-skip 'safe-local-variable 'string-or-null-p) | ||
| 123 | 127 | ||
| 124 | ;;;###autoload | 128 | ;;;###autoload |
| 125 | (defvar comment-end (purecopy "") | 129 | (defvar comment-end (purecopy "") |
| 126 | "String to insert to end a new comment. | 130 | "String to insert to end a new comment. |
| 127 | Should be an empty string if comments are terminated by end-of-line.") | 131 | Should be an empty string if comments are terminated by end-of-line.") |
| 128 | ;;;###autoload(put 'comment-end 'safe-local-variable 'string-or-null-p) | 132 | ;;;###autoload |
| 133 | (put 'comment-end 'safe-local-variable 'string-or-null-p) | ||
| 129 | 134 | ||
| 130 | ;;;###autoload | 135 | ;;;###autoload |
| 131 | (defvar comment-indent-function 'comment-indent-default | 136 | (defvar comment-indent-function 'comment-indent-default |