bug-auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#71467: Value of `LaTeX-math-menu-unicode' on macOS


From: Arash Esbati
Subject: bug#71467: Value of `LaTeX-math-menu-unicode' on macOS
Date: Tue, 11 Jun 2024 12:29:06 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Hi Keita,

Ikumi Keita <ikumi@ikumi.que.jp> writes:

> Maybe we should use `system-type' instead of `window-system', because
> `window-system' is terminal-local variable. Users can launch an emacs
> session with -nw option, do `server-start' and attach a graphical frame
> to that session by "emacsclient -c" afterwards. If the `defcustom' was
> evaluated in terminal frame, unicode characters wouldn't appear in the
> menu in graphical frame due to `LaTeX-math-menu-unicode' being nil.

Thanks for your response.  Then the patch would look like this:

--8<---------------cut here---------------start------------->8---
diff --git a/latex.el b/latex.el
index da202219..1fa7cc2f 100644
--- a/latex.el
+++ b/latex.el
@@ -6426,8 +6426,10 @@ Each entry should be a list with upto four elements, 
KEY, VALUE,
 MENU and CHARACTER, see `LaTeX-math-list' for details.")

 (defcustom LaTeX-math-menu-unicode
-  (or (string-match "\\<GTK\\>" (emacs-version))
-      (eq window-system 'w32))
+  (if (or (string-match "\\<GTK\\>" (emacs-version))
+          (memq system-type '(darwin windows-nt)))
+      t
+    nil)
   "Whether the LaTeX menu should try using Unicode for effect."
   :type 'boolean
   :group 'LaTeX-math)
--8<---------------cut here---------------end--------------->8---

Or is there another reliable way to check for GTK?  As an upside, the
math menu looks like this in terminal:

PNG image

Best, Arash

reply via email to

[Prev in Thread] Current Thread [Next in Thread]