1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-12-11 09:20:32 +00:00

ox: Prevent invisible cursor from highlighting brackets in UI

* lisp/ox.el (org-export--dispatch-ui): Prevent invisible cursor from
  highlighting brackets in UI

This is another try following f849239d73.
This commit is contained in:
Nicolas Goaziou 2013-02-18 00:54:25 +01:00 committed by Bastien Guerry
parent e8a6b56db9
commit f541bff087

View File

@ -5493,7 +5493,11 @@ back to standard interface."
(org-switch-to-buffer-other-window
(get-buffer-create "*Org Export Dispatcher*"))
(setq cursor-type nil
header-line-format "Use SPC, DEL, C-n or C-p to navigate."))
header-line-format "Use SPC, DEL, C-n or C-p to navigate.")
;; Make sure that invisible cursor will not highlight square
;; brackets.
(set-syntax-table (copy-syntax-table))
(modify-syntax-entry ?\[ "w"))
;; At this point, the buffer containing the menu exists and is
;; visible in the current window. So, refresh it.
(with-current-buffer "*Org Export Dispatcher*"