GNU bug report logs - #34790
LaTeX mode \href bug

Previous Next

Package: emacs;

Reported by: Nathan Ullberg <nathan.ullberg <at> gmail.com>

Date: Sat, 9 Mar 2019 00:05:01 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 34790 in the body.
You can then email your comments to 34790 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#34790; Package emacs. (Sat, 09 Mar 2019 00:05:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Nathan Ullberg <nathan.ullberg <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 09 Mar 2019 00:05:02 GMT) Full text and rfc822 format available.

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

From: Nathan Ullberg <nathan.ullberg <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: LaTeX mode \href bug
Date: Fri, 8 Mar 2019 23:51:02 +0100
[Message part 1 (text/plain, inline)]
Hi!

I am sorry if this is the wrong place to report this but:

When editing in LaTeX mode in Emacs, if an href link has a percent sign, 
it will display the rest of the line as if it were a comment.
Everything still "compiles" correctly, but in terms of the "visual 
effect", it is wrong, since percent signs in the link should not give 
the impression of "commenting out" the rest of the line.
Here is an example:

This is what actually happens:
*\href{https://en.wikipedia.org/wiki/Wigner%E2%80%93Seitz_cell}{Wigner-Seitz 
cell}*

This is how it should be:
*\href{https://en.wikipedia.org/wiki/Wigner%E2%80%93Seitz_cell}{Wigner-Seitz 
cell}*

Could someone forward this report/query to the right location...
(Also, in case it's relevant I'm using Emacs 25.2.2 on Ubuntu 18.04.2 
GNU/Linux.)

Best,
/Nathan

[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#34790; Package emacs. (Sat, 16 Mar 2019 21:43:01 GMT) Full text and rfc822 format available.

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

From: Arash Esbati <arash <at> gnu.org>
To: Nathan Ullberg <nathan.ullberg <at> gmail.com>
Cc: 34790 <at> debbugs.gnu.org
Subject: Re: bug#34790: LaTeX mode \href bug
Date: Sat, 16 Mar 2019 22:41:09 +0100
Nathan Ullberg <nathan.ullberg <at> gmail.com> writes:

> I am sorry if this is the wrong place to report this but:

Hi Nathan,

I presume you're using AUCTeX.  In that case, the correct list is
bug-auctex <at> gnu.org.

> When editing in LaTeX mode in Emacs, if an href link has a percent
> sign, it will display the rest of the line as if it were a comment.
> Everything still "compiles" correctly, but in terms of the "visual
> effect", it is wrong, since percent signs in the link should not give
> the impression of "commenting out" the rest of the line.

Thanks for catching this.  I've added to patch to hyperref.el fixing
this issue[1].  As an intermediate solution, you can add the following
lines to your init file until the next release of AUCTeX:

    (with-eval-after-load "hyperref"
      (add-to-list 'LaTeX-verbatim-macros-with-braces-local "href")
      (font-latex-update-font-lock t))

Best, Arash

Footnotes:
[1]  http://git.savannah.gnu.org/cgit/auctex.git/commit/?id=fcaef6bab89e6a629d60f1b43038a2433e34fbd5





Reply sent to Arash Esbati <arash <at> gnu.org>:
You have taken responsibility. (Mon, 01 Apr 2019 19:23:01 GMT) Full text and rfc822 format available.

Notification sent to Nathan Ullberg <nathan.ullberg <at> gmail.com>:
bug acknowledged by developer. (Mon, 01 Apr 2019 19:23:02 GMT) Full text and rfc822 format available.

Message #13 received at 34790-done <at> debbugs.gnu.org (full text, mbox):

From: Arash Esbati <arash <at> gnu.org>
To: 34790-done <at> debbugs.gnu.org
Subject: Re: bug#34790: LaTeX mode \href bug
Date: Mon, 01 Apr 2019 21:15:26 +0200
Arash Esbati <arash <at> gnu.org> writes:

> Thanks for catching this.  I've added to patch to hyperref.el fixing
> this issue[1].  As an intermediate solution, you can add the following
> lines to your init file until the next release of AUCTeX:
>
>     (with-eval-after-load "hyperref"
>       (add-to-list 'LaTeX-verbatim-macros-with-braces-local "href")
>       (font-latex-update-font-lock t))

Following up myself, this was an AUCTeX issue which is resolved.  Hence
I'm closing this report.

Best, Arash




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 30 Apr 2019 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 363 days ago.

Previous Next


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