aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Roberts2006-07-15 04:26:39 +0000
committerNick Roberts2006-07-15 04:26:39 +0000
commit5204800f983c3e994464b5dfe0e1ea1c3b35ffdf (patch)
tree8c902de8de6b01c84fa8aab8eae6d11512c7936c
parentdb28aa3c6e6bf3d65f857a0219859f3f224e8bde (diff)
downloademacs-5204800f983c3e994464b5dfe0e1ea1c3b35ffdf.tar.gz
emacs-5204800f983c3e994464b5dfe0e1ea1c3b35ffdf.zip
(allout-run-unit-tests-on-load): Rectified docstring grammar.
(allout-beginning-of-current-line): Beware beginning of buffer. Also, a comment is simplified. (allout-hotspot-key-handler): Only set allout-post-goto-bullet when appropriate. (This fix enables use for other than bullet-hotspot operation.) (allout-hide-current-subtree): While escalating to sibling-close, make sure to situate on a topic.
-rw-r--r--lisp/allout.el16
1 files changed, 7 insertions, 9 deletions
diff --git a/lisp/allout.el b/lisp/allout.el
index f7d143be82e..296777ee9d9 100644
--- a/lisp/allout.el
+++ b/lisp/allout.el
@@ -580,8 +580,8 @@ disable auto-saves for that file."
580Generally, allout code developers are the only ones who'll want to set this. 580Generally, allout code developers are the only ones who'll want to set this.
581 581
582\(If set, this makes it an even better practice to exercise changes by 582\(If set, this makes it an even better practice to exercise changes by
583doing byte-compilation with a repeat count, so the file is loaded at the 583doing byte-compilation with a repeat count, so the file is loaded after
584of compilation.) 584compilation.)
585 585
586See `allout-run-unit-tests' to see what's run." 586See `allout-run-unit-tests' to see what's run."
587 :type 'boolean 587 :type 'boolean
@@ -2022,13 +2022,11 @@ Outermost is first."
2022(defun allout-beginning-of-current-line () 2022(defun allout-beginning-of-current-line ()
2023 "Like beginning of line, but to visible text." 2023 "Like beginning of line, but to visible text."
2024 2024
2025 ;; XXX We would use `(move-beginning-of-line 1)', but it gets 2025 ;; This combination of move-beginning-of-line and beginning-of-line is
2026 ;; stuck on some hidden newlines, eg at column 80, as of GNU Emacs 22.0.50. 2026 ;; deliberate, but the (beginning-of-line) may now be superfluous.
2027 ;; Conversely, `beginning-of-line' can make no progress in other
2028 ;; situations. Both are necessary, in the order used below.
2029 (move-beginning-of-line 1) 2027 (move-beginning-of-line 1)
2030 (beginning-of-line) 2028 (beginning-of-line)
2031 (while (or (not (bolp)) (allout-hidden-p)) 2029 (while (and (not (bobp)) (or (not (bolp)) (allout-hidden-p)))
2032 (beginning-of-line) 2030 (beginning-of-line)
2033 (if (or (allout-hidden-p) (not (bolp))) 2031 (if (or (allout-hidden-p) (not (bolp)))
2034 (forward-char -1)))) 2032 (forward-char -1))))
@@ -2757,8 +2755,7 @@ Returns the qualifying command, if any, else nil."
2757 (lookup-key mapped-binding (read-key-sequence-vector nil t)))) 2755 (lookup-key mapped-binding (read-key-sequence-vector nil t))))
2758 2756
2759 (if mapped-binding 2757 (if mapped-binding
2760 (setq allout-post-goto-bullet on-bullet 2758 (setq this-command mapped-binding)))))
2761 this-command mapped-binding)))))
2762 2759
2763;;;_ > allout-find-file-hook () 2760;;;_ > allout-find-file-hook ()
2764(defun allout-find-file-hook () 2761(defun allout-find-file-hook ()
@@ -4087,6 +4084,7 @@ siblings, even if the target topic is already closed."
4087 ((allout-up-current-level 1 t) (allout-hide-current-subtree)) 4084 ((allout-up-current-level 1 t) (allout-hide-current-subtree))
4088 (t (goto-char 0) 4085 (t (goto-char 0)
4089 (message sibs-msg) 4086 (message sibs-msg)
4087 (allout-goto-prefix)
4090 (allout-expose-topic '(0 :)) 4088 (allout-expose-topic '(0 :))
4091 (message (concat sibs-msg " Done.")))) 4089 (message (concat sibs-msg " Done."))))
4092 (goto-char from))) 4090 (goto-char from)))