GNU bug report logs - #71467
Value of `LaTeX-math-menu-unicode' on macOS

Previous Next

Package: auctex;

Reported by: Arash Esbati <arash <at> gnu.org>

Date: Mon, 10 Jun 2024 10:26:02 UTC

Severity: normal

Done: Arash Esbati <arash <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 71467 <at> debbugs.gnu.org (full text, mbox):

From: Arash Esbati <arash <at> gnu.org>
To: Ikumi Keita <ikumi <at> ikumi.que.jp>
Cc: 71467 <at> debbugs.gnu.org
Subject: Re: bug#71467: Value of `LaTeX-math-menu-unicode' on macOS
Date: Tue, 11 Jun 2024 12:29:06 +0200
[Message part 1 (text/plain, inline)]
Hi Keita,

Ikumi Keita <ikumi <at> 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:
[math-menu.png (image/png, inline)]
[Message part 3 (text/plain, inline)]
Best, Arash

This bug report was last modified 344 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.