diff options
| author | Juri Linkov | 2010-07-03 01:35:09 +0300 |
|---|---|---|
| committer | Juri Linkov | 2010-07-03 01:35:09 +0300 |
| commit | a6ed0e289873ac982d7a9b0215d17a4626375b43 (patch) | |
| tree | 909bdb1b646c79871e6f8c41b4c27a7426969ad3 | |
| parent | c91e692bdff3f5c7e68a538f02b293d1487188b4 (diff) | |
| download | emacs-a6ed0e289873ac982d7a9b0215d17a4626375b43.tar.gz emacs-a6ed0e289873ac982d7a9b0215d17a4626375b43.zip | |
* lisp/autoinsert.el (auto-insert-alist): Fix readability
by using dotted pair notation for lambda.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/autoinsert.el | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index de4671ec509..98ea609aa82 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2010-07-02 Juri Linkov <juri@jurta.org> | 1 | 2010-07-02 Juri Linkov <juri@jurta.org> |
| 2 | 2 | ||
| 3 | * autoinsert.el (auto-insert-alist): Fix readability | ||
| 4 | by using dotted pair notation for lambda. | ||
| 5 | |||
| 6 | 2010-07-02 Juri Linkov <juri@jurta.org> | ||
| 7 | |||
| 3 | * faces.el (read-face-name): Rename arg `string-describing-default' | 8 | * faces.el (read-face-name): Rename arg `string-describing-default' |
| 4 | to `default'. Doc fix. Display the default value in quotes | 9 | to `default'. Doc fix. Display the default value in quotes |
| 5 | in the prompt. With empty input, return the `default' arg, | 10 | in the prompt. With empty input, return the `default' arg, |
diff --git a/lisp/autoinsert.el b/lisp/autoinsert.el index b3a594d31d4..9a8001875e0 100644 --- a/lisp/autoinsert.el +++ b/lisp/autoinsert.el | |||
| @@ -126,10 +126,10 @@ If this contains a %s, that will be replaced by the matching rule." | |||
| 126 | _ "\n\\begin{document}\n" _ | 126 | _ "\n\\begin{document}\n" _ |
| 127 | "\n\\end{document}") | 127 | "\n\\end{document}") |
| 128 | 128 | ||
| 129 | (("/bin/.*[^/]\\'" . "Shell-Script mode magic number") | 129 | (("/bin/.*[^/]\\'" . "Shell-Script mode magic number") . |
| 130 | lambda () | 130 | (lambda () |
| 131 | (if (eq major-mode (default-value 'major-mode)) | 131 | (if (eq major-mode (default-value 'major-mode)) |
| 132 | (sh-mode))) | 132 | (sh-mode)))) |
| 133 | 133 | ||
| 134 | (ada-mode . ada-header) | 134 | (ada-mode . ada-header) |
| 135 | 135 | ||