diff options
| author | Michael Albinus | 2019-11-19 08:19:00 +0100 |
|---|---|---|
| committer | Michael Albinus | 2019-11-19 08:19:00 +0100 |
| commit | a15431ffe23838025e7b20131c16bbeb80ce4090 (patch) | |
| tree | 809a8c9d42fb326358e3db03002fe03dcbadc23d | |
| parent | 3cc06d1abb6587e0922a5ddc7a7febd3dd71d55a (diff) | |
| parent | 5bc97ebceb54e0eb2804bef4c1bc32a40d8a2371 (diff) | |
| download | emacs-a15431ffe23838025e7b20131c16bbeb80ce4090.tar.gz emacs-a15431ffe23838025e7b20131c16bbeb80ce4090.zip | |
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
| -rw-r--r-- | lisp/org/org.el | 14 | ||||
| -rw-r--r-- | lisp/tab-line.el | 16 | ||||
| -rw-r--r-- | lisp/vc/ediff-util.el | 2 | ||||
| -rw-r--r-- | src/gtkutil.c | 4 |
4 files changed, 25 insertions, 11 deletions
diff --git a/lisp/org/org.el b/lisp/org/org.el index aa7e319bda7..73848a46342 100644 --- a/lisp/org/org.el +++ b/lisp/org/org.el | |||
| @@ -5541,11 +5541,13 @@ The following commands are available: | |||
| 5541 | (lambda (&rest _) (org-show-context 'isearch))) | 5541 | (lambda (&rest _) (org-show-context 'isearch))) |
| 5542 | 5542 | ||
| 5543 | ;; Setup the pcomplete hooks | 5543 | ;; Setup the pcomplete hooks |
| 5544 | (setq-local pcomplete-command-completion-function 'org-pcomplete-initial) | 5544 | (setq-local pcomplete-command-completion-function #'org-pcomplete-initial) |
| 5545 | (setq-local pcomplete-command-name-function 'org-command-at-point) | 5545 | (setq-local pcomplete-command-name-function #'org-command-at-point) |
| 5546 | (setq-local pcomplete-default-completion-function 'ignore) | 5546 | (setq-local pcomplete-default-completion-function #'ignore) |
| 5547 | (setq-local pcomplete-parse-arguments-function 'org-parse-arguments) | 5547 | (setq-local pcomplete-parse-arguments-function #'org-parse-arguments) |
| 5548 | (setq-local pcomplete-termination-string "") | 5548 | (setq-local pcomplete-termination-string "") |
| 5549 | (add-hook 'completion-at-point-functions | ||
| 5550 | #'pcomplete-completions-at-point nil t) | ||
| 5549 | (setq-local buffer-face-mode-face 'org-default) | 5551 | (setq-local buffer-face-mode-face 'org-default) |
| 5550 | 5552 | ||
| 5551 | ;; If empty file that did not turn on Org mode automatically, make | 5553 | ;; If empty file that did not turn on Org mode automatically, make |
| @@ -19501,7 +19503,7 @@ COMMANDS is a list of alternating OLDDEF NEWDEF command names." | |||
| 19501 | (org-defkey org-mode-map "\C-i" 'org-cycle) | 19503 | (org-defkey org-mode-map "\C-i" 'org-cycle) |
| 19502 | (org-defkey org-mode-map [(tab)] 'org-cycle) | 19504 | (org-defkey org-mode-map [(tab)] 'org-cycle) |
| 19503 | (org-defkey org-mode-map [(control tab)] 'org-force-cycle-archived) | 19505 | (org-defkey org-mode-map [(control tab)] 'org-force-cycle-archived) |
| 19504 | (org-defkey org-mode-map "\M-\t" #'pcomplete) | 19506 | (org-defkey org-mode-map "\M-\t" nil) ;; Override text-mode binding |
| 19505 | 19507 | ||
| 19506 | ;; The following line is necessary under Suse GNU/Linux | 19508 | ;; The following line is necessary under Suse GNU/Linux |
| 19507 | (org-defkey org-mode-map [S-iso-lefttab] 'org-shifttab) | 19509 | (org-defkey org-mode-map [S-iso-lefttab] 'org-shifttab) |
| @@ -19567,7 +19569,7 @@ COMMANDS is a list of alternating OLDDEF NEWDEF command names." | |||
| 19567 | (org-defkey org-mode-map [?\C-c (right)] 'org-shiftright) | 19569 | (org-defkey org-mode-map [?\C-c (right)] 'org-shiftright) |
| 19568 | (org-defkey org-mode-map [?\C-c ?\C-x (right)] 'org-shiftcontrolright) | 19570 | (org-defkey org-mode-map [?\C-c ?\C-x (right)] 'org-shiftcontrolright) |
| 19569 | (org-defkey org-mode-map [?\C-c ?\C-x (left)] 'org-shiftcontrolleft) | 19571 | (org-defkey org-mode-map [?\C-c ?\C-x (left)] 'org-shiftcontrolleft) |
| 19570 | (org-defkey org-mode-map [?\e (tab)] #'pcomplete) | 19572 | (org-defkey org-mode-map [?\e (tab)] nil) ;; Override text-mode binding |
| 19571 | (org-defkey org-mode-map [?\e (shift return)] 'org-insert-todo-heading) | 19573 | (org-defkey org-mode-map [?\e (shift return)] 'org-insert-todo-heading) |
| 19572 | (org-defkey org-mode-map [?\e (shift left)] 'org-shiftmetaleft) | 19574 | (org-defkey org-mode-map [?\e (shift left)] 'org-shiftmetaleft) |
| 19573 | (org-defkey org-mode-map [?\e (shift right)] 'org-shiftmetaright) | 19575 | (org-defkey org-mode-map [?\e (shift right)] 'org-shiftmetaright) |
diff --git a/lisp/tab-line.el b/lisp/tab-line.el index b99e7263297..0f701842dfa 100644 --- a/lisp/tab-line.el +++ b/lisp/tab-line.el | |||
| @@ -471,13 +471,21 @@ variable `tab-line-tabs-function'." | |||
| 471 | tab-line-new-button))))))) | 471 | tab-line-new-button))))))) |
| 472 | 472 | ||
| 473 | 473 | ||
| 474 | (defcustom tab-line-auto-hscroll t | ||
| 475 | "Allow or disallow automatic horizontal scrolling of the tab line. | ||
| 476 | Non-nil means the tab line are automatically scrolled horizontally to make | ||
| 477 | the selected tab visible." | ||
| 478 | :type 'boolean | ||
| 479 | :group 'tab-line | ||
| 480 | :version "27.1") | ||
| 481 | |||
| 474 | (defun tab-line-auto-hscroll (strings hscroll) | 482 | (defun tab-line-auto-hscroll (strings hscroll) |
| 475 | (with-temp-buffer | 483 | (with-temp-buffer |
| 476 | (let ((truncate-partial-width-windows nil) | 484 | (let ((truncate-partial-width-windows nil) |
| 485 | (truncate-lines nil) | ||
| 477 | (inhibit-modification-hooks t) | 486 | (inhibit-modification-hooks t) |
| 487 | (buffer-undo-list t) | ||
| 478 | show-arrows) | 488 | show-arrows) |
| 479 | (setq truncate-lines nil | ||
| 480 | buffer-undo-list t) | ||
| 481 | (apply 'insert strings) | 489 | (apply 'insert strings) |
| 482 | (goto-char (point-min)) | 490 | (goto-char (point-min)) |
| 483 | (add-face-text-property (point-min) (point-max) 'tab-line) | 491 | (add-face-text-property (point-min) (point-max) 'tab-line) |
| @@ -486,7 +494,9 @@ variable `tab-line-tabs-function'." | |||
| 486 | (setq show-arrows (> (vertical-motion 1) 0)) | 494 | (setq show-arrows (> (vertical-motion 1) 0)) |
| 487 | ;; Try to auto-scroll only when scrolling is needed, | 495 | ;; Try to auto-scroll only when scrolling is needed, |
| 488 | ;; but no manual scrolling was performed before. | 496 | ;; but no manual scrolling was performed before. |
| 489 | (when (and show-arrows (not (and (integerp hscroll) (>= hscroll 0)))) | 497 | (when (and tab-line-auto-hscroll |
| 498 | show-arrows | ||
| 499 | (not (and (integerp hscroll) (>= hscroll 0)))) | ||
| 490 | (let ((pos (seq-position strings 'selected | 500 | (let ((pos (seq-position strings 'selected |
| 491 | (lambda (str prop) | 501 | (lambda (str prop) |
| 492 | (get-pos-property 1 prop str))))) | 502 | (get-pos-property 1 prop str))))) |
diff --git a/lisp/vc/ediff-util.el b/lisp/vc/ediff-util.el index a481defe29f..c7c5405bdd4 100644 --- a/lisp/vc/ediff-util.el +++ b/lisp/vc/ediff-util.el | |||
| @@ -1038,6 +1038,7 @@ of the current buffer." | |||
| 1038 | (format | 1038 | (format |
| 1039 | "File %s is under version control. Check it out? " | 1039 | "File %s is under version control. Check it out? " |
| 1040 | (ediff-abbreviate-file-name file)))) | 1040 | (ediff-abbreviate-file-name file)))) |
| 1041 | (setq this-command 'ediff-toggle-read-only) ; bug#38219 | ||
| 1041 | ;; if we checked the file out, we should also change the | 1042 | ;; if we checked the file out, we should also change the |
| 1042 | ;; original state of buffer-read-only to nil. If we don't | 1043 | ;; original state of buffer-read-only to nil. If we don't |
| 1043 | ;; do this, the mode line will show %%, since the file was | 1044 | ;; do this, the mode line will show %%, since the file was |
| @@ -2379,6 +2380,7 @@ temporarily reverses the meaning of this variable." | |||
| 2379 | " & show containing session group" ""))) | 2380 | " & show containing session group" ""))) |
| 2380 | (progn | 2381 | (progn |
| 2381 | (message "") | 2382 | (message "") |
| 2383 | (setq this-command 'ediff-quit) ; bug#38219 | ||
| 2382 | (set-buffer ctl-buf) | 2384 | (set-buffer ctl-buf) |
| 2383 | (ediff-really-quit reverse-default-keep-variants)) | 2385 | (ediff-really-quit reverse-default-keep-variants)) |
| 2384 | (select-frame ctl-frm) | 2386 | (select-frame ctl-frm) |
diff --git a/src/gtkutil.c b/src/gtkutil.c index c4d2ef9d80b..25ef5dd248d 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c | |||
| @@ -2228,7 +2228,7 @@ xg_get_file_name (struct frame *f, | |||
| 2228 | 2228 | ||
| 2229 | static char *x_last_font_name; | 2229 | static char *x_last_font_name; |
| 2230 | 2230 | ||
| 2231 | #if GTK_CHECK_VERSION (3, 2, 0) | 2231 | #ifdef HAVE_GTK3 |
| 2232 | static gboolean | 2232 | static gboolean |
| 2233 | xg_font_filter (const PangoFontFamily *family, | 2233 | xg_font_filter (const PangoFontFamily *family, |
| 2234 | const PangoFontFace *face, | 2234 | const PangoFontFace *face, |
| @@ -2262,7 +2262,7 @@ xg_get_font (struct frame *f, const char *default_name) | |||
| 2262 | w = gtk_font_chooser_dialog_new | 2262 | w = gtk_font_chooser_dialog_new |
| 2263 | ("Pick a font", GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f))); | 2263 | ("Pick a font", GTK_WINDOW (FRAME_GTK_OUTER_WIDGET (f))); |
| 2264 | 2264 | ||
| 2265 | #if GTK_CHECK_VERSION (3, 2, 0) | 2265 | #ifdef HAVE_GTK3 |
| 2266 | gtk_font_chooser_set_filter_func (GTK_FONT_CHOOSER (w), xg_font_filter, NULL, NULL); | 2266 | gtk_font_chooser_set_filter_func (GTK_FONT_CHOOSER (w), xg_font_filter, NULL, NULL); |
| 2267 | #endif | 2267 | #endif |
| 2268 | if (default_name) | 2268 | if (default_name) |