GNU bug report logs -
#71467
Value of `LaTeX-math-menu-unicode' on macOS
Previous Next
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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 71467 in the body.
You can then email your comments to 71467 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-auctex <at> gnu.org
:
bug#71467
; Package
auctex
.
(Mon, 10 Jun 2024 10:26:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Arash Esbati <arash <at> gnu.org>
:
New bug report received and forwarded. Copy sent to
bug-auctex <at> gnu.org
.
(Mon, 10 Jun 2024 10:26:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi all,
I was looking at this request[1] and it occurred to me that the value of
`LaTeX-math-menu-unicode' doesn't cater for macOS. So the math-menu
currently looks like this:
[emacs-Q.png (image/png, inline)]
[Message part 3 (text/plain, inline)]
where it can look liket this:
[emacs-patched.png (image/png, inline)]
[Message part 5 (text/plain, inline)]
So I'd like to install the following change:
--8<---------------cut here---------------start------------->8---
diff --git a/latex.el b/latex.el
index da202219..cfd7ee5c 100644
--- a/latex.el
+++ b/latex.el
@@ -6426,8 +6426,7 @@ 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 (memq window-system '(pgtk ns w32)) t nil)
"Whether the LaTeX menu should try using Unicode for effect."
:type 'boolean
:group 'LaTeX-math)
--8<---------------cut here---------------end--------------->8---
Any comments?
Best, Arash
Footnotes:
[1] https://lists.gnu.org/archive/html/auctex/2024-06/msg00000.html
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#71467
; Package
auctex
.
(Tue, 11 Jun 2024 16:43:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 71467 <at> debbugs.gnu.org (full text, mbox):
Hi Arash,
>>>>> Arash Esbati <arash <at> gnu.org> writes:
> So I'd like to install the following change:
> diff --git a/latex.el b/latex.el
> index da202219..cfd7ee5c 100644
> --- a/latex.el
> +++ b/latex.el
> @@ -6426,8 +6426,7 @@ 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 (memq window-system '(pgtk ns w32)) t nil)
> "Whether the LaTeX menu should try using Unicode for effect."
> :type 'boolean
> :group 'LaTeX-math)
> Any comments?
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.
Regards,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine
#Gaza #StopMassiveKilling #CeasefireNOW
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#71467
; Package
auctex
.
(Tue, 11 Jun 2024 20:25:03 GMT)
Full text and
rfc822 format available.
Message #11 received at 71467 <at> debbugs.gnu.org (full text, mbox):
[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
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#71467
; Package
auctex
.
(Wed, 12 Jun 2024 02:34:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 71467 <at> debbugs.gnu.org (full text, mbox):
>>>>> Arash Esbati <arash <at> gnu.org> writes:
> Thanks for your response. Then the patch would look like this:
> 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)
> Or is there another reliable way to check for GTK? As an upside, the
> math menu looks like this in terminal:
Looks good 😘
Bye,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine
#Gaza #StopMassiveKilling #CeasefireNOW
Reply sent
to
Arash Esbati <arash <at> gnu.org>
:
You have taken responsibility.
(Wed, 12 Jun 2024 06:43:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Arash Esbati <arash <at> gnu.org>
:
bug acknowledged by developer.
(Wed, 12 Jun 2024 06:43:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 71467-done <at> debbugs.gnu.org (full text, mbox):
Ikumi Keita <ikumi <at> ikumi.que.jp> writes:
> Looks good 😘
Thanks, installed, and closing.
Best, Arash
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 10 Jul 2024 11:24:18 GMT)
Full text and
rfc822 format available.
This bug report was last modified 343 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.