aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2019-09-25 00:54:36 +0300
committerJuri Linkov2019-09-25 00:54:36 +0300
commit848e21b0491cb0b2f8e3a59e9f5cabd7210dca5e (patch)
tree42d647b3f82da020065b3b4ddfde85eca33f3384
parent8f268bb9bfbaee9f32e7179d56958ef30d66851f (diff)
downloademacs-848e21b0491cb0b2f8e3a59e9f5cabd7210dca5e.tar.gz
emacs-848e21b0491cb0b2f8e3a59e9f5cabd7210dca5e.zip
Small fixes. Bind [tab-line mouse-1] to mouse-select-window.
-rw-r--r--lisp/mouse.el1
-rw-r--r--lisp/tab-line.el3
-rw-r--r--src/xdisp.c6
3 files changed, 8 insertions, 2 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el
index e947e16d47f..83738895ebd 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -2734,6 +2734,7 @@ is copied instead of being cut."
2734;; versions. 2734;; versions.
2735(global-set-key [header-line down-mouse-1] 'mouse-drag-header-line) 2735(global-set-key [header-line down-mouse-1] 'mouse-drag-header-line)
2736(global-set-key [header-line mouse-1] 'mouse-select-window) 2736(global-set-key [header-line mouse-1] 'mouse-select-window)
2737(global-set-key [tab-line mouse-1] 'mouse-select-window)
2737;; (global-set-key [mode-line drag-mouse-1] 'mouse-select-window) 2738;; (global-set-key [mode-line drag-mouse-1] 'mouse-select-window)
2738(global-set-key [mode-line down-mouse-1] 'mouse-drag-mode-line) 2739(global-set-key [mode-line down-mouse-1] 'mouse-drag-mode-line)
2739(global-set-key [mode-line mouse-1] 'mouse-select-window) 2740(global-set-key [mode-line mouse-1] 'mouse-select-window)
diff --git a/lisp/tab-line.el b/lisp/tab-line.el
index 169f7b82042..cbe418a5a2c 100644
--- a/lisp/tab-line.el
+++ b/lisp/tab-line.el
@@ -260,7 +260,8 @@ using the `previous-buffer' command."
260 (dotimes (_ (1+ (seq-position prev-buffers buffer))) 260 (dotimes (_ (1+ (seq-position prev-buffers buffer)))
261 (switch-to-prev-buffer window))) 261 (switch-to-prev-buffer window)))
262 (t 262 (t
263 (switch-to-buffer buffer))))) 263 (with-selected-window window
264 (switch-to-buffer buffer))))))
264 265
265(defun tab-line-switch-to-prev-tab (&optional e) 266(defun tab-line-switch-to-prev-tab (&optional e)
266 "Switch to the previous tab." 267 "Switch to the previous tab."
diff --git a/src/xdisp.c b/src/xdisp.c
index 0fc387b8ffb..0e18c5adbc6 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -2957,7 +2957,11 @@ init_iterator (struct it *it, struct window *w,
2957 else if (base_face_id == TAB_LINE_FACE_ID) 2957 else if (base_face_id == TAB_LINE_FACE_ID)
2958 row = MATRIX_TAB_LINE_ROW (w->desired_matrix); 2958 row = MATRIX_TAB_LINE_ROW (w->desired_matrix);
2959 else if (base_face_id == HEADER_LINE_FACE_ID) 2959 else if (base_face_id == HEADER_LINE_FACE_ID)
2960 row = MATRIX_HEADER_LINE_ROW (w->desired_matrix); 2960 {
2961 /* Header line row depends on whether tab line is enabled. */
2962 w->desired_matrix->tab_line_p = window_wants_tab_line (w);
2963 row = MATRIX_HEADER_LINE_ROW (w->desired_matrix);
2964 }
2961 } 2965 }
2962 2966
2963 /* Clear IT, and set it->object and other IT's Lisp objects to Qnil. 2967 /* Clear IT, and set it->object and other IT's Lisp objects to Qnil.