GNU bug report logs - #23354
25.1.50; Unicode literals aren't handled correctly by some commands

Previous Next

Package: emacs;

Reported by: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Date: Sun, 24 Apr 2016 12:17:01 UTC

Severity: minor

Found in version 25.1.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.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 23354 in the body.
You can then email your comments to 23354 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#23354; Package emacs. (Sun, 24 Apr 2016 12:17:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Lars Magne Ingebrigtsen <larsi <at> gnus.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 24 Apr 2016 12:17:01 GMT) Full text and rfc822 format available.

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

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.1.50; Unicode literals aren't handled correctly by some commands
Date: Sun, 24 Apr 2016 14:16:33 +0200
If you put point after the following expression and hit `C-x C-e':

?\N{HEAVY CHECK MARK}

you'll get an error saying "(void-variable MARK})".  And in an Emacs
Lisp buffer, using forward/backward sexp commands, they do not skip past
the entire expression.




In GNU Emacs 25.1.50.35 (x86_64-unknown-linux-gnu, GTK+ Version 3.4.2)
 of 2016-04-24 built on stories
Repository revision: a28873ce734b3618b0e8f6892e65db24d2f18da8
Windowing system distributor 'The X.Org Foundation', version 11.0.11204000
System Description:	Debian GNU/Linux 7.9 (wheezy)

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GSETTINGS NOTIFY GNUTLS
LIBXML2 FREETYPE LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11


-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23354; Package emacs. (Sun, 01 May 2016 13:01:01 GMT) Full text and rfc822 format available.

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

From: Philipp Stephani <p.stephani2 <at> gmail.com>
To: Lars Magne Ingebrigtsen <larsi <at> gnus.org>, 23354 <at> debbugs.gnu.org
Subject: Re: bug#23354: 25.1.50; Unicode literals aren't handled correctly by
 some commands
Date: Sun, 01 May 2016 12:59:37 +0000
[Message part 1 (text/plain, inline)]
Lars Magne Ingebrigtsen <larsi <at> gnus.org> schrieb am So., 24. Apr. 2016 um
14:17 Uhr:

>
> If you put point after the following expression and hit `C-x C-e':
>
> ?\N{HEAVY CHECK MARK}
>
> you'll get an error saying "(void-variable MARK})".  And in an Emacs
> Lisp buffer, using forward/backward sexp commands, they do not skip past
> the entire expression.
>
>
Thanks, I've attached a patch that should fix eval-print-last-expr. This
doesn't fix backward-sexp, because I think that would be much harder.
[Message part 2 (text/html, inline)]
[0001-Detect-named-character-literals.patch (application/octet-stream, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23354; Package emacs. (Mon, 02 May 2016 21:59:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Philipp Stephani <p.stephani2 <at> gmail.com>
Cc: 23354 <at> debbugs.gnu.org
Subject: Re: bug#23354: 25.1.50;
 Unicode literals aren't handled correctly by some commands
Date: Mon, 02 May 2016 23:58:54 +0200
Philipp Stephani <p.stephani2 <at> gmail.com> writes:

> Thanks, I've attached a patch that should fix eval-print-last-expr. This doesn't
> fix backward-sexp, because I think that would be much harder. 

Thanks; applied.  I hope somebody else can fix backward-sexp and
friends.  :-)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23354; Package emacs. (Tue, 04 Aug 2020 09:38:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Philipp Stephani <p.stephani2 <at> gmail.com>
Cc: 23354 <at> debbugs.gnu.org
Subject: Re: bug#23354: 25.1.50; Unicode literals aren't handled correctly
 by some commands
Date: Tue, 04 Aug 2020 11:37:29 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Philipp Stephani <p.stephani2 <at> gmail.com> writes:
>
>> Thanks, I've attached a patch that should fix
>> eval-print-last-expr. This doesn't
>> fix backward-sexp, because I think that would be much harder. 
>
> Thanks; applied.  I hope somebody else can fix backward-sexp and
> friends.  :-)

I just checked whether things has changed -- and, no, backward-sexp and
friends still do the wrong thing on Unicode literals like

?\N{HEAVY CHECK MARK}

in Emacs Lisp buffers.  In particular, backward-sexp after the final "}"
skips to the start of "MARK", and forward-sexp at the start skips to the
end of "HEAVY".

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Severity set to 'minor' from 'normal' Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 04 Aug 2020 09:38:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23354; Package emacs. (Fri, 06 May 2022 16:39:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Philipp Stephani <p.stephani2 <at> gmail.com>
Cc: 23354 <at> debbugs.gnu.org
Subject: Re: bug#23354: 25.1.50; Unicode literals aren't handled correctly
 by some commands
Date: Fri, 06 May 2022 18:37:53 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> I just checked whether things has changed -- and, no, backward-sexp and
> friends still do the wrong thing on Unicode literals like
>
> ?\N{HEAVY CHECK MARK}
>
> in Emacs Lisp buffers.  In particular, backward-sexp after the final "}"
> skips to the start of "MARK", and forward-sexp at the start skips to the
> end of "HEAVY".

I've now fixed this in Emacs 29.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug marked as fixed in version 29.1, send any further explanations to 23354 <at> debbugs.gnu.org and Lars Magne Ingebrigtsen <larsi <at> gnus.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 06 May 2022 16:39:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 04 Jun 2022 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 42 days ago.

Previous Next


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