diff options
| author | Stefan Monnier | 2006-03-06 04:49:42 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2006-03-06 04:49:42 +0000 |
| commit | 1e0e9b382c9e983e32472dedff84da33118bc3f1 (patch) | |
| tree | 80718c5b664b406b5aaedc8c0444c2f7f777a4c6 | |
| parent | 8dff56def5e9eb439d7ec3abd70e5e4320fffe73 (diff) | |
| download | emacs-1e0e9b382c9e983e32472dedff84da33118bc3f1.tar.gz emacs-1e0e9b382c9e983e32472dedff84da33118bc3f1.zip | |
(hide-sublevels): Provide better interactive default.
| -rw-r--r-- | lisp/ChangeLog | 56 | ||||
| -rw-r--r-- | lisp/outline.el | 12 |
2 files changed, 37 insertions, 31 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 73ea842b8e5..2cec86754d1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,7 +1,11 @@ | |||
| 1 | 2006-03-05 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * outline.el (hide-sublevels): Provide better interactive default. | ||
| 4 | |||
| 1 | 2006-03-06 Kenichi Handa <handa@m17n.org> | 5 | 2006-03-06 Kenichi Handa <handa@m17n.org> |
| 2 | 6 | ||
| 3 | * international/fontset.el (create-fontset-from-fontset-spec): Fix | 7 | * international/fontset.el (create-fontset-from-fontset-spec): |
| 4 | regexp for paring FONTSET-SPEC (allow spaces after `:'). | 8 | Fix regexp for paring FONTSET-SPEC (allow spaces after `:'). |
| 5 | 9 | ||
| 6 | 2006-03-05 Luc Teirlinck <teirllm@auburn.edu> | 10 | 2006-03-05 Luc Teirlinck <teirllm@auburn.edu> |
| 7 | 11 | ||
| @@ -27,8 +31,8 @@ | |||
| 27 | 31 | ||
| 28 | 2006-03-03 Agustin Martin <agustin.martin@hispalinux.es> | 32 | 2006-03-03 Agustin Martin <agustin.martin@hispalinux.es> |
| 29 | 33 | ||
| 30 | * textmodes/flyspell.el (flyspell-process-localwords): Be | 34 | * textmodes/flyspell.el (flyspell-process-localwords): |
| 31 | case-sensitive. | 35 | Be case-sensitive. |
| 32 | 36 | ||
| 33 | 2006-03-03 Martin Rudalics <rudalics@gmx.at> | 37 | 2006-03-03 Martin Rudalics <rudalics@gmx.at> |
| 34 | 38 | ||
| @@ -41,7 +45,7 @@ | |||
| 41 | they have no special meaning. | 45 | they have no special meaning. |
| 42 | 46 | ||
| 43 | * midnight.el (clean-buffer-list): Handle case where base-buffer of | 47 | * midnight.el (clean-buffer-list): Handle case where base-buffer of |
| 44 | indirect buffer gets killed before indirect buffer. Use dolist. | 48 | indirect buffer gets killed before indirect buffer. Use dolist. |
| 45 | 49 | ||
| 46 | 2006-03-03 Ken Manheimer <ken.manheimer@gmail.com> | 50 | 2006-03-03 Ken Manheimer <ken.manheimer@gmail.com> |
| 47 | 51 | ||
| @@ -50,8 +54,8 @@ | |||
| 50 | 54 | ||
| 51 | 2006-03-03 Slawomir Nowaczyk <slawomir.nowaczyk.847@student.lu.se> (tiny change) | 55 | 2006-03-03 Slawomir Nowaczyk <slawomir.nowaczyk.847@student.lu.se> (tiny change) |
| 52 | 56 | ||
| 53 | * textmodes/flyspell.el (flyspell-external-point-words): Be | 57 | * textmodes/flyspell.el (flyspell-external-point-words): |
| 54 | case-sensitive. | 58 | Be case-sensitive. |
| 55 | 59 | ||
| 56 | 2006-03-03 Ryan Yeske <rcyeske@gmail.com> | 60 | 2006-03-03 Ryan Yeske <rcyeske@gmail.com> |
| 57 | 61 | ||
| @@ -75,8 +79,8 @@ | |||
| 75 | * dframe.el (dframe-frame-mode): Don't burp when menu-bar-lines | 79 | * dframe.el (dframe-frame-mode): Don't burp when menu-bar-lines |
| 76 | is nil. | 80 | is nil. |
| 77 | 81 | ||
| 78 | * progmodes/gud.el (gud-speedbar-menu-items): Use | 82 | * progmodes/gud.el (gud-speedbar-menu-items): |
| 79 | buffer-local-value and add missing :visible keyword. | 83 | Use buffer-local-value and add missing :visible keyword. |
| 80 | 84 | ||
| 81 | * progmodes/gdb-ui.el (gdb-speedbar-refresh): Quieten speedbar-refresh. | 85 | * progmodes/gdb-ui.el (gdb-speedbar-refresh): Quieten speedbar-refresh. |
| 82 | 86 | ||
| @@ -93,8 +97,7 @@ | |||
| 93 | (org-read-date): Add (require 'parse-time). | 97 | (org-read-date): Add (require 'parse-time). |
| 94 | (org-set-tags): Fix bug with extra inserted space. | 98 | (org-set-tags): Fix bug with extra inserted space. |
| 95 | (org-export-html-style): Define a style class for targets. | 99 | (org-export-html-style): Define a style class for targets. |
| 96 | (org-agenda-keymap, org-mouse-map): Add a binding for | 100 | (org-agenda-keymap, org-mouse-map): Add a binding for `follow-link'. |
| 97 | `follow-link'. | ||
| 98 | (org-hide-leading-stars): New option. | 101 | (org-hide-leading-stars): New option. |
| 99 | (org-hide): New face. | 102 | (org-hide): New face. |
| 100 | (org-set-font-lock-defaults): Allow to hide leading stars. | 103 | (org-set-font-lock-defaults): Allow to hide leading stars. |
| @@ -114,7 +117,7 @@ | |||
| 114 | 117 | ||
| 115 | * progmodes/gdb-ui.el (gdb-speedbar-refresh): Rename from | 118 | * progmodes/gdb-ui.el (gdb-speedbar-refresh): Rename from |
| 116 | gdb-speedbar-timer-fn. Use speedbar-refresh instead of | 119 | gdb-speedbar-timer-fn. Use speedbar-refresh instead of |
| 117 | speedbar-timer-fn | 120 | speedbar-timer-fn. |
| 118 | (gdb-var-update-handler, gdb-var-update-handler-1): Use it. | 121 | (gdb-var-update-handler, gdb-var-update-handler-1): Use it. |
| 119 | (gdb-speedbar-expand-node): Use speedbar-delete-subblock | 122 | (gdb-speedbar-expand-node): Use speedbar-delete-subblock |
| 120 | instead of gdb-speedbar-timer-fn. | 123 | instead of gdb-speedbar-timer-fn. |
| @@ -201,17 +204,17 @@ | |||
| 201 | * startup.el (command-line): | 204 | * startup.el (command-line): |
| 202 | * subr.el (locate-library): | 205 | * subr.el (locate-library): |
| 203 | * emacs-lisp/autoload.el (update-directory-autoloads): | 206 | * emacs-lisp/autoload.el (update-directory-autoloads): |
| 204 | * emacs-lisp/find-func.el (find-library-suffixes): Use | 207 | * emacs-lisp/find-func.el (find-library-suffixes): |
| 205 | `get-load-suffixes' instead of `load-suffixes'. | 208 | Use `get-load-suffixes' instead of `load-suffixes'. |
| 206 | 209 | ||
| 207 | * subr.el (locate-library): | 210 | * subr.el (locate-library): |
| 208 | * emacs-lisp/find-func.el (find-library-name): Use | 211 | * emacs-lisp/find-func.el (find-library-name): |
| 209 | `load-file-rep-suffixes' instead of '(""). | 212 | Use `load-file-rep-suffixes' instead of '(""). |
| 210 | 213 | ||
| 211 | 2006-02-26 Kim F. Storm <storm@cua.dk> | 214 | 2006-02-26 Kim F. Storm <storm@cua.dk> |
| 212 | 215 | ||
| 213 | * ido.el (ido-save-history, ido-load-history): Simplify. Don't | 216 | * ido.el (ido-save-history, ido-load-history): Simplify. |
| 214 | use find-file-noselect to avoid interference from other modes. | 217 | Don't use find-file-noselect to avoid interference from other modes. |
| 215 | 218 | ||
| 216 | 2006-02-25 Thien-Thi Nguyen <ttn@gnu.org> | 219 | 2006-02-25 Thien-Thi Nguyen <ttn@gnu.org> |
| 217 | 220 | ||
| @@ -230,8 +233,8 @@ | |||
| 230 | 233 | ||
| 231 | 2006-02-24 Alan Mackenzie <bug-cc-mode@gnu.org> | 234 | 2006-02-24 Alan Mackenzie <bug-cc-mode@gnu.org> |
| 232 | 235 | ||
| 233 | * progmodes/cc-mode.el (c-postprocess-file-styles): Bind | 236 | * progmodes/cc-mode.el (c-postprocess-file-styles): |
| 234 | inhibit-read-only to t, around the call to | 237 | Bind inhibit-read-only to t, around the call to |
| 235 | c-remove-any-local-eval-or-mode-variables, so that it works on a | 238 | c-remove-any-local-eval-or-mode-variables, so that it works on a |
| 236 | RO file. | 239 | RO file. |
| 237 | 240 | ||
| @@ -272,13 +275,12 @@ | |||
| 272 | 275 | ||
| 273 | * progmodes/cc-mode.el: | 276 | * progmodes/cc-mode.el: |
| 274 | [Supersedes patch to cc-engine.el 2005-12-16T20:07:49Z!monnier@iro.umontreal.ca] | 277 | [Supersedes patch to cc-engine.el 2005-12-16T20:07:49Z!monnier@iro.umontreal.ca] |
| 275 | (c-after-change): Protect the match data with save-match-data. It | 278 | (c-after-change): Protect the match data with save-match-data. |
| 276 | was getting corrupted by c-after-change-check-<>-operators. | 279 | It was getting corrupted by c-after-change-check-<>-operators. |
| 277 | 280 | ||
| 278 | * cc-defs.el: [Supersedes patch V1.38]: | 281 | * cc-defs.el: [Supersedes patch V1.38]: |
| 279 | (top level): Check for a buggy font-lock-compile-keywords ONLY in | 282 | (top level): Check for a buggy font-lock-compile-keywords ONLY in |
| 280 | XEmacs. GNU Emacs 22 now has a check which would throw an error | 283 | XEmacs. GNU Emacs 22 now has a check which would throw an error here. |
| 281 | here. | ||
| 282 | 284 | ||
| 283 | * progmodes/cc-awk.el (c-awk-after-change): Protect the match data | 285 | * progmodes/cc-awk.el (c-awk-after-change): Protect the match data |
| 284 | with save-match-data. It was being corrupted when Font Lock was | 286 | with save-match-data. It was being corrupted when Font Lock was |
| @@ -294,14 +296,12 @@ | |||
| 294 | (c-forward-objc-directive): Replace c-forward-token-2 with crude | 296 | (c-forward-objc-directive): Replace c-forward-token-2 with crude |
| 295 | coding; c-f-t-2 doesn't move over a token at EOB. | 297 | coding; c-f-t-2 doesn't move over a token at EOB. |
| 296 | 298 | ||
| 297 | * progmodes/cc-defs.el (c-version): Update version number to | 299 | * progmodes/cc-defs.el (c-version): Update version number to 5.31.2. |
| 298 | 5.31.2 | ||
| 299 | 300 | ||
| 300 | * progmodes/cc-cmds.el, cc-mode.el, cc-engine.el | 301 | * progmodes/cc-cmds.el, cc-mode.el, cc-engine.el |
| 301 | (c-update-modeline): Concatenate the minor mode indicators | 302 | (c-update-modeline): Concatenate the minor mode indicators |
| 302 | directly onto mode-name, removing c-submode-indicators. | 303 | directly onto mode-name, removing c-submode-indicators. |
| 303 | Sometimes, c-s-i got separated from the mode name on the mode | 304 | Sometimes, c-s-i got separated from the mode name on the mode line. |
| 304 | line. | ||
| 305 | 305 | ||
| 306 | * progmodes/cc-cmds.el (c-electric-brace, c-electric-semi&comma) | 306 | * progmodes/cc-cmds.el (c-electric-brace, c-electric-semi&comma) |
| 307 | (c-electric-colon): Correct doc-strings: "/ln" -> "/la". | 307 | (c-electric-colon): Correct doc-strings: "/ln" -> "/la". |
diff --git a/lisp/outline.el b/lisp/outline.el index fdbad00ada3..92542bae7e3 100644 --- a/lisp/outline.el +++ b/lisp/outline.el | |||
| @@ -46,7 +46,7 @@ | |||
| 46 | :group 'editing) | 46 | :group 'editing) |
| 47 | 47 | ||
| 48 | (defcustom outline-regexp "[*\^L]+" | 48 | (defcustom outline-regexp "[*\^L]+" |
| 49 | "*Regular expression to match the beginning of a heading. | 49 | "Regular expression to match the beginning of a heading. |
| 50 | Any line whose beginning matches this regexp is considered to start a heading. | 50 | Any line whose beginning matches this regexp is considered to start a heading. |
| 51 | Note that Outline mode only checks this regexp at the start of a line, | 51 | Note that Outline mode only checks this regexp at the start of a line, |
| 52 | so the regexp need not (and usually does not) start with `^'. | 52 | so the regexp need not (and usually does not) start with `^'. |
| @@ -56,7 +56,7 @@ in the file it applies to. See also `outline-heading-end-regexp'." | |||
| 56 | :group 'outlines) | 56 | :group 'outlines) |
| 57 | 57 | ||
| 58 | (defcustom outline-heading-end-regexp "\n" | 58 | (defcustom outline-heading-end-regexp "\n" |
| 59 | "*Regular expression to match the end of a heading line. | 59 | "Regular expression to match the end of a heading line. |
| 60 | You can assume that point is at the beginning of a heading when this | 60 | You can assume that point is at the beginning of a heading when this |
| 61 | regexp is searched for. The heading ends at the end of the match. | 61 | regexp is searched for. The heading ends at the end of the match. |
| 62 | The recommended way to set this is with a `Local Variables:' list | 62 | The recommended way to set this is with a `Local Variables:' list |
| @@ -828,7 +828,13 @@ Show the heading too, if it is currently invisible." | |||
| 828 | 828 | ||
| 829 | (defun hide-sublevels (levels) | 829 | (defun hide-sublevels (levels) |
| 830 | "Hide everything but the top LEVELS levels of headers, in whole buffer." | 830 | "Hide everything but the top LEVELS levels of headers, in whole buffer." |
| 831 | (interactive "p") | 831 | (interactive (list |
| 832 | (cond | ||
| 833 | (current-prefix-arg (prefix-numeric-value current-prefix-arg)) | ||
| 834 | ((save-excursion (beginning-of-line) | ||
| 835 | (looking-at outline-regexp)) | ||
| 836 | (funcall outline-level)) | ||
| 837 | (t 1)))) | ||
| 832 | (if (< levels 1) | 838 | (if (< levels 1) |
| 833 | (error "Must keep at least one level of headers")) | 839 | (error "Must keep at least one level of headers")) |
| 834 | (let (outline-view-change-hook) | 840 | (let (outline-view-change-hook) |