mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Merge from origin/emacs-26
908af9dIndexing followup to recent changes505ac9aImprove documentation of cursor-sensor.el (bug#33664)d817d2c* doc/lispref/commands.texi (Adjusting Point): Bug#3366218442daTramp multi-hop methods must be inline1e3e24d; * src/xterm.c (x_update_begin): Fix whitespace.1d743d2Fix scaling problem in Cairo builds2b9e993; * doc/lispref/text.texi (Special Properties): Fix wording. ...e568202* lisp/simple.el (next-line-or-history-element): Use current-...c7897c2A few further fixes of window internals description # Conflicts: # doc/misc/tramp.texi
This commit is contained in:
commit
3d353ce585
8 changed files with 203 additions and 98 deletions
|
|
@ -2172,7 +2172,11 @@ next element of the minibuffer history in the minibuffer."
|
|||
(prompt-end (minibuffer-prompt-end))
|
||||
(old-column (unless (and (eolp) (> (point) prompt-end))
|
||||
(if (= (line-number-at-pos) 1)
|
||||
(max (- (current-column) (1- prompt-end)) 0)
|
||||
(max (- (current-column)
|
||||
(save-excursion
|
||||
(goto-char (1- prompt-end))
|
||||
(current-column)))
|
||||
0)
|
||||
(current-column)))))
|
||||
(condition-case nil
|
||||
(with-no-warnings
|
||||
|
|
@ -2191,7 +2195,10 @@ next element of the minibuffer history in the minibuffer."
|
|||
(goto-char (point-max))
|
||||
(when old-column
|
||||
(if (= (line-number-at-pos) 1)
|
||||
(move-to-column (+ old-column (1- (minibuffer-prompt-end))))
|
||||
(move-to-column (+ old-column
|
||||
(save-excursion
|
||||
(goto-char (1- (minibuffer-prompt-end)))
|
||||
(current-column))))
|
||||
(move-to-column old-column)))))))
|
||||
|
||||
(defun previous-line-or-history-element (&optional arg)
|
||||
|
|
@ -2206,7 +2213,11 @@ previous element of the minibuffer history in the minibuffer."
|
|||
(prompt-end (minibuffer-prompt-end))
|
||||
(old-column (unless (and (eolp) (> (point) prompt-end))
|
||||
(if (= (line-number-at-pos) 1)
|
||||
(max (- (current-column) (1- prompt-end)) 0)
|
||||
(max (- (current-column)
|
||||
(save-excursion
|
||||
(goto-char (1- prompt-end))
|
||||
(current-column)))
|
||||
0)
|
||||
(current-column)))))
|
||||
(condition-case nil
|
||||
(with-no-warnings
|
||||
|
|
@ -2225,7 +2236,10 @@ previous element of the minibuffer history in the minibuffer."
|
|||
(goto-char (minibuffer-prompt-end))
|
||||
(if old-column
|
||||
(if (= (line-number-at-pos) 1)
|
||||
(move-to-column (+ old-column (1- (minibuffer-prompt-end))))
|
||||
(move-to-column (+ old-column
|
||||
(save-excursion
|
||||
(goto-char (1- (minibuffer-prompt-end)))
|
||||
(current-column))))
|
||||
(move-to-column old-column))
|
||||
;; Put the cursor at the end of the visual line instead of the
|
||||
;; logical line, so the next `previous-line-or-history-element'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue