diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/info.el | 18 | ||||
| -rw-r--r-- | lisp/sort.el | 5 |
2 files changed, 16 insertions, 7 deletions
diff --git a/lisp/info.el b/lisp/info.el index d579ecc5a3b..78f88947c79 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -2265,7 +2265,8 @@ End of submatch 0, 1, and 3 are the same, so you can safely concat." | |||
| 2265 | (match-string-no-properties 1))) | 2265 | (match-string-no-properties 1))) |
| 2266 | 2266 | ||
| 2267 | (defun Info-next () | 2267 | (defun Info-next () |
| 2268 | "Go to the next node of this node." | 2268 | "Go to the \"next\" node, staying on the same hierarchical level. |
| 2269 | This command doesn't descend into sub-nodes, like \\<Info-mode-map>\\[Info-forward-node] does." | ||
| 2269 | (interactive) | 2270 | (interactive) |
| 2270 | ;; In case another window is currently selected | 2271 | ;; In case another window is currently selected |
| 2271 | (save-window-excursion | 2272 | (save-window-excursion |
| @@ -2273,7 +2274,8 @@ End of submatch 0, 1, and 3 are the same, so you can safely concat." | |||
| 2273 | (Info-goto-node (Info-extract-pointer "next")))) | 2274 | (Info-goto-node (Info-extract-pointer "next")))) |
| 2274 | 2275 | ||
| 2275 | (defun Info-prev () | 2276 | (defun Info-prev () |
| 2276 | "Go to the previous node of this node." | 2277 | "Go to the \"previous\" node, staying on the same hierarchical level. |
| 2278 | This command doesn't go up to the parent node, like \\<Info-mode-map>\\[Info-backward-node] does." | ||
| 2277 | (interactive) | 2279 | (interactive) |
| 2278 | ;; In case another window is currently selected | 2280 | ;; In case another window is currently selected |
| 2279 | (save-window-excursion | 2281 | (save-window-excursion |
| @@ -2887,7 +2889,13 @@ N is the digit argument used to invoke this command." | |||
| 2887 | (Info-goto-node (Info-extract-menu-counting nil))))) | 2889 | (Info-goto-node (Info-extract-menu-counting nil))))) |
| 2888 | 2890 | ||
| 2889 | (defun Info-forward-node (&optional not-down not-up no-error) | 2891 | (defun Info-forward-node (&optional not-down not-up no-error) |
| 2890 | "Go forward one node, considering all nodes as forming one sequence." | 2892 | "Go forward one node, considering all nodes as forming one sequence. |
| 2893 | Interactively, if the current node has sub-nodes, descend into the first | ||
| 2894 | sub-node; otherwise go to the \"next\" node, if it exists, else go \"up\" | ||
| 2895 | to the parent node. | ||
| 2896 | When called from Lisp, NOT-DOWN non-nil means don't descend into sub-nodes, | ||
| 2897 | NOT-UP non-nil means don't go to parent nodes, and NO-ERROR non-nil means | ||
| 2898 | don't signal a user-error if there's no node to go to." | ||
| 2891 | (interactive) | 2899 | (interactive) |
| 2892 | (goto-char (point-min)) | 2900 | (goto-char (point-min)) |
| 2893 | (forward-line 1) | 2901 | (forward-line 1) |
| @@ -2922,7 +2930,9 @@ N is the digit argument used to invoke this command." | |||
| 2922 | (t (user-error "No pointer forward from this node"))))) | 2930 | (t (user-error "No pointer forward from this node"))))) |
| 2923 | 2931 | ||
| 2924 | (defun Info-backward-node () | 2932 | (defun Info-backward-node () |
| 2925 | "Go backward one node, considering all nodes as forming one sequence." | 2933 | "Go backward one node, considering all nodes as forming one sequence. |
| 2934 | If the current node has a \"previous\" node, go to it, descending into its | ||
| 2935 | last sub-node, if any; otherwise go \"up\" to the parent node." | ||
| 2926 | (interactive) | 2936 | (interactive) |
| 2927 | (let ((prevnode (Info-extract-pointer "prev[ious]*" t)) | 2937 | (let ((prevnode (Info-extract-pointer "prev[ious]*" t)) |
| 2928 | (upnode (Info-extract-pointer "up" t)) | 2938 | (upnode (Info-extract-pointer "up" t)) |
diff --git a/lisp/sort.el b/lisp/sort.el index de0e1b9519d..f878db24a3c 100644 --- a/lisp/sort.el +++ b/lisp/sort.el | |||
| @@ -554,9 +554,6 @@ is the one that ends before END." | |||
| 554 | (if (> beg end) | 554 | (if (> beg end) |
| 555 | (let (mid) (setq mid end end beg beg mid))) | 555 | (let (mid) (setq mid end end beg beg mid))) |
| 556 | (save-excursion | 556 | (save-excursion |
| 557 | (when (or (< (line-beginning-position) beg) | ||
| 558 | (< end (line-end-position))) | ||
| 559 | (user-error "There are no full lines in the region")) | ||
| 560 | ;; Put beg at the start of a line and end and the end of one -- | 557 | ;; Put beg at the start of a line and end and the end of one -- |
| 561 | ;; the largest possible region which fits this criteria. | 558 | ;; the largest possible region which fits this criteria. |
| 562 | (goto-char beg) | 559 | (goto-char beg) |
| @@ -568,6 +565,8 @@ is the one that ends before END." | |||
| 568 | ;; reversal; it isn't difficult to add it afterward. | 565 | ;; reversal; it isn't difficult to add it afterward. |
| 569 | (or (and (eolp) (not (bolp))) (progn (forward-line -1) (end-of-line))) | 566 | (or (and (eolp) (not (bolp))) (progn (forward-line -1) (end-of-line))) |
| 570 | (setq end (point-marker)) | 567 | (setq end (point-marker)) |
| 568 | (when (<= end beg) | ||
| 569 | (user-error "There are no full lines in the region")) | ||
| 571 | ;; The real work. This thing cranks through memory on large regions. | 570 | ;; The real work. This thing cranks through memory on large regions. |
| 572 | (let (ll (do t)) | 571 | (let (ll (do t)) |
| 573 | (while do | 572 | (while do |