diff options
| author | Martin Rudalics | 2018-12-30 15:47:16 +0100 |
|---|---|---|
| committer | Martin Rudalics | 2018-12-30 15:47:16 +0100 |
| commit | d82e73f08f8c12cfa144ff2e404a65e8bff1ab2e (patch) | |
| tree | 19d4f25859887f951ab165d541739f2eb7a7855e /lisp | |
| parent | b0e6ecfc33077fb2dce904d315c8ef24e3649c9b (diff) | |
| download | emacs-d82e73f08f8c12cfa144ff2e404a65e8bff1ab2e.tar.gz emacs-d82e73f08f8c12cfa144ff2e404a65e8bff1ab2e.zip | |
Handle 'unbound' like nil for 'window-point-insertion-type' (Bug#33871)
* src/window.c (save_window_save): When setting the marker
insertion type of saved window points treat a buffer local
value of 'unbound' for 'window-point-insertion-type' like
nil (Bug#33871).
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/window.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/window.el b/lisp/window.el index 50aec86a427..4e72d343674 100644 --- a/lisp/window.el +++ b/lisp/window.el | |||
| @@ -4278,7 +4278,7 @@ WINDOW must be a live window and defaults to the selected one." | |||
| 4278 | (list (copy-marker start) | 4278 | (list (copy-marker start) |
| 4279 | (copy-marker | 4279 | (copy-marker |
| 4280 | ;; Preserve window-point-insertion-type | 4280 | ;; Preserve window-point-insertion-type |
| 4281 | ;; (Bug#12588). | 4281 | ;; (Bug#12855). |
| 4282 | point window-point-insertion-type))))) | 4282 | point window-point-insertion-type))))) |
| 4283 | (set-window-prev-buffers | 4283 | (set-window-prev-buffers |
| 4284 | window (cons entry (window-prev-buffers window))))) | 4284 | window (cons entry (window-prev-buffers window))))) |
| @@ -6110,7 +6110,7 @@ element is BUFFER." | |||
| 6110 | (list 'other | 6110 | (list 'other |
| 6111 | ;; A quadruple of WINDOW's buffer, start, point and height. | 6111 | ;; A quadruple of WINDOW's buffer, start, point and height. |
| 6112 | (list (current-buffer) (window-start window) | 6112 | (list (current-buffer) (window-start window) |
| 6113 | ;; Preserve window-point-insertion-type (Bug#12588). | 6113 | ;; Preserve window-point-insertion-type (Bug#12855). |
| 6114 | (copy-marker | 6114 | (copy-marker |
| 6115 | (window-point window) window-point-insertion-type) | 6115 | (window-point window) window-point-insertion-type) |
| 6116 | (if (window-combined-p window) | 6116 | (if (window-combined-p window) |