From f541bff087cc9b8d2eec5e26f7f782c3ac8a4578 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Mon, 18 Feb 2013 00:54:25 +0100 Subject: [PATCH] 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 f849239d73fbcc8054e073748d2bed8e51cbead2. --- lisp/ox.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lisp/ox.el b/lisp/ox.el index 9ecf91d5a..5c5e42f86 100644 --- a/lisp/ox.el +++ b/lisp/ox.el @@ -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*" -- 2.11.4.GIT