forked from mirrors/org-mode
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:
parent
e8a6b56db9
commit
f541bff087
|
@ -5493,7 +5493,11 @@ back to standard interface."
|
||||||
(org-switch-to-buffer-other-window
|
(org-switch-to-buffer-other-window
|
||||||
(get-buffer-create "*Org Export Dispatcher*"))
|
(get-buffer-create "*Org Export Dispatcher*"))
|
||||||
(setq cursor-type nil
|
(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
|
;; At this point, the buffer containing the menu exists and is
|
||||||
;; visible in the current window. So, refresh it.
|
;; visible in the current window. So, refresh it.
|
||||||
(with-current-buffer "*Org Export Dispatcher*"
|
(with-current-buffer "*Org Export Dispatcher*"
|
||||||
|
|
Loading…
Reference in New Issue