diff options
| author | Stefan Monnier | 2004-01-21 03:26:30 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2004-01-21 03:26:30 +0000 |
| commit | f56af8ca83c41ae8258461aba41edee392843472 (patch) | |
| tree | ba05c77b668b540da6e22d86c49c23523e585d38 | |
| parent | 4ae1fdf63a4bde9bf12159db20e84552fd82c0a2 (diff) | |
| download | emacs-f56af8ca83c41ae8258461aba41edee392843472.tar.gz emacs-f56af8ca83c41ae8258461aba41edee392843472.zip | |
(outline-insert-heading): Tighten up match.
(outline-demote, outline-move-subtree-down): Don't assume anything
about outline-regexp.
| -rw-r--r-- | lisp/ChangeLog | 43 | ||||
| -rw-r--r-- | lisp/outline.el | 10 |
2 files changed, 28 insertions, 25 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index cbe11dc9560..44862546392 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2004-01-20 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * outline.el (outline-insert-heading): Tighten up match. | ||
| 4 | (outline-demote, outline-move-subtree-down): Don't assume anything | ||
| 5 | about outline-regexp. | ||
| 6 | |||
| 7 | * textmodes/texinfo.el (texinfo-mode): Remove ^ from outline-regexp. | ||
| 8 | (texinfo-show-structure): Explicitly add ^, and simplify. | ||
| 9 | |||
| 1 | 2004-01-20 Glenn Morris <gmorris@ast.cam.ac.uk> | 10 | 2004-01-20 Glenn Morris <gmorris@ast.cam.ac.uk> |
| 2 | 11 | ||
| 3 | * calendar/appt.el (appt-check): Restore usage of | 12 | * calendar/appt.el (appt-check): Restore usage of |
| @@ -15,22 +24,15 @@ | |||
| 15 | * vc.el (vc-default-previous-version): Doc enhancement. | 24 | * vc.el (vc-default-previous-version): Doc enhancement. |
| 16 | (vc-default-next-version): New function. | 25 | (vc-default-next-version): New function. |
| 17 | (vc-print-log): New arg FOCUS-REV. | 26 | (vc-print-log): New arg FOCUS-REV. |
| 18 | (vc-annotate-mode): Derives from view-mode now. | 27 | (vc-annotate-mode): Derive from view-mode. |
| 19 | (vc-annotate): New args REVISION, DISPLAY-MODE. | 28 | (vc-annotate): New args REVISION, DISPLAY-MODE. |
| 20 | (vc-annotate-prev-version): New function. | 29 | (vc-annotate-workfile-version, vc-annotate-extract-revision-at-line) |
| 21 | (vc-annotate-prev-version): New function. | 30 | (vc-annotate-revision-at-line, vc-annotate-revision-previous-to-line) |
| 22 | (vc-annotate-next-version): New function. | 31 | (vc-annotate-show-log-revision-at-line, vc-annotate-warp-version) |
| 23 | (vc-annotate-workfile-version): New function. | 32 | (vc-annotate-show-diff-revision-at-line, vc-current-line) |
| 24 | (vc-annotate-extract-revision-at-line): New function. | 33 | (vc-annotate-prev-version, vc-annotate-next-version): New functions. |
| 25 | (vc-annotate-revision-at-line): New function. | 34 | |
| 26 | (vc-annotate-revision-previous-to-line): New function. | 35 | * vc-cvs.el (vc-cvs-annotate-extract-revision-at-line): New function. |
| 27 | (vc-annotate-show-log-revision-at-line): New function. | ||
| 28 | (vc-annotate-show-diff-revision-at-line): New function. | ||
| 29 | (vc-current-line): New function. | ||
| 30 | (vc-annotate-warp-version): New function. | ||
| 31 | |||
| 32 | * vc-cvs.el (vc-cvs-annotate-extract-revision-at-line): New | ||
| 33 | function. | ||
| 34 | 36 | ||
| 35 | 2004-01-19 Karl Berry <karl@gnu.org> | 37 | 2004-01-19 Karl Berry <karl@gnu.org> |
| 36 | 38 | ||
| @@ -43,19 +45,18 @@ | |||
| 43 | 45 | ||
| 44 | 2004-01-19 Karl Berry <karl@gnu.org> | 46 | 2004-01-19 Karl Berry <karl@gnu.org> |
| 45 | 47 | ||
| 46 | * textmodes/texinfo.el (texinfo-mode): define outline-regexp to start | 48 | * textmodes/texinfo.el (texinfo-mode): Define outline-regexp to start |
| 47 | with ^, since that's what texinfo-show-structure | 49 | with ^, since that's what texinfo-show-structure |
| 48 | documentation says (plus it works much better in texinfo.txi). | 50 | documentation says (plus it works much better in texinfo.txi). |
| 49 | 51 | ||
| 50 | 2004-01-18 Jesper Harder <harder@ifa.au.dk> | 52 | 2004-01-18 Jesper Harder <harder@ifa.au.dk> |
| 51 | 53 | ||
| 52 | * mail/smtpmail.el (smtpmail-send-data): Don't append spurious | 54 | * mail/smtpmail.el (smtpmail-send-data): Don't append spurious newline. |
| 53 | newline. | ||
| 54 | 55 | ||
| 55 | 2004-01-18 David Ponce <david@dponce.com> (tiny change) | 56 | 2004-01-18 David Ponce <david@dponce.com> (tiny change) |
| 56 | 57 | ||
| 57 | * progmodes/which-func.el (which-function-mode): Don't cancel | 58 | * progmodes/which-func.el (which-function-mode): Don't cancel |
| 58 | which-func-update-timer if not set. | 59 | which-func-update-timer if not set. |
| 59 | 60 | ||
| 60 | 2004-01-17 Thien-Thi Nguyen <ttn@gnu.org> | 61 | 2004-01-17 Thien-Thi Nguyen <ttn@gnu.org> |
| 61 | 62 | ||
| @@ -77,7 +78,7 @@ | |||
| 77 | Save and restore the deletion status of old messages when reading | 78 | Save and restore the deletion status of old messages when reading |
| 78 | new mail with spam filter, so that expunging spam does not expunge | 79 | new mail with spam filter, so that expunging spam does not expunge |
| 79 | msgs deleted by the user. | 80 | msgs deleted by the user. |
| 80 | (rmail-only-expunge): added an optional argument dont-show to | 81 | (rmail-only-expunge): Add an optional argument dont-show to |
| 81 | prevent showing message after expunge. | 82 | prevent showing message after expunge. |
| 82 | 83 | ||
| 83 | 2004-01-15 Luc Teirlinck <teirllm@auburn.edu> | 84 | 2004-01-15 Luc Teirlinck <teirllm@auburn.edu> |
diff --git a/lisp/outline.el b/lisp/outline.el index fa63fef66a4..59aeb233fdd 100644 --- a/lisp/outline.el +++ b/lisp/outline.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; outline.el --- outline mode commands for Emacs | 1 | ;;; outline.el --- outline mode commands for Emacs |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1986, 93, 94, 95, 97, 2000, 2001 | 3 | ;; Copyright (C) 1986, 93, 94, 95, 97, 2000, 01, 2004 |
| 4 | ;; Free Software Foundation, Inc. | 4 | ;; Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Maintainer: FSF | 6 | ;; Maintainer: FSF |
| @@ -410,7 +410,8 @@ If INVISIBLE-OK is non-nil, an invisible heading line is ok too." | |||
| 410 | (or (caar outline-heading-alist) "") | 410 | (or (caar outline-heading-alist) "") |
| 411 | (match-string 0))))) | 411 | (match-string 0))))) |
| 412 | (unless (or (string-match "[ \t]\\'" head) | 412 | (unless (or (string-match "[ \t]\\'" head) |
| 413 | (not (string-match outline-regexp (concat head " ")))) | 413 | (not (string-match (concat "\\`\\(?:" outline-regexp "\\)") |
| 414 | (concat head " ")))) | ||
| 414 | (setq head (concat head " "))) | 415 | (setq head (concat head " "))) |
| 415 | (unless (bolp) (end-of-line) (newline)) | 416 | (unless (bolp) (end-of-line) (newline)) |
| 416 | (insert head) | 417 | (insert head) |
| @@ -486,7 +487,8 @@ in the region." | |||
| 486 | ;; Bummer!! There is no lower heading in the buffer. | 487 | ;; Bummer!! There is no lower heading in the buffer. |
| 487 | ;; Let's try to invent one by repeating the first char. | 488 | ;; Let's try to invent one by repeating the first char. |
| 488 | (let ((new-head (concat (substring head 0 1) head))) | 489 | (let ((new-head (concat (substring head 0 1) head))) |
| 489 | (if (string-match (concat "\\`" outline-regexp) new-head) | 490 | (if (string-match (concat "\\`\\(?:" outline-regexp "\\)") |
| 491 | new-head) | ||
| 490 | ;; Why bother checking that it is indeed lower level ? | 492 | ;; Why bother checking that it is indeed lower level ? |
| 491 | new-head | 493 | new-head |
| 492 | ;; Didn't work: keep it as is so it's still a heading. | 494 | ;; Didn't work: keep it as is so it's still a heading. |
| @@ -557,7 +559,7 @@ the match data is set appropriately." | |||
| 557 | (defun outline-move-subtree-down (&optional arg) | 559 | (defun outline-move-subtree-down (&optional arg) |
| 558 | "Move the currrent subtree down past ARG headlines of the same level." | 560 | "Move the currrent subtree down past ARG headlines of the same level." |
| 559 | (interactive "p") | 561 | (interactive "p") |
| 560 | (let ((re (concat "^" outline-regexp)) | 562 | (let ((re (concat "^\\(?:" outline-regexp "\\)")) |
| 561 | (movfunc (if (> arg 0) 'outline-get-next-sibling | 563 | (movfunc (if (> arg 0) 'outline-get-next-sibling |
| 562 | 'outline-get-last-sibling)) | 564 | 'outline-get-last-sibling)) |
| 563 | (ins-point (make-marker)) | 565 | (ins-point (make-marker)) |