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.

Full log


View this message in rfc822 format

From: Arash Esbati <arash <at> gnu.org>
To: Nathan Ullberg <nathan.ullberg <at> gmail.com>
Cc: 34790 <at> debbugs.gnu.org
Subject: 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





This bug report was last modified 6 years and 111 days ago.

Previous Next


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