GNU bug report logs - #49214
dabbrev-expand vs. : vs. :

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Thu, 24 Jun 2021 19:32:01 UTC

Severity: normal

Done: Eli Zaretskii <eliz <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 49214 in the body.
You can then email your comments to 49214 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#49214; Package emacs. (Thu, 24 Jun 2021 19:32:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 24 Jun 2021 19:32:02 GMT) Full text and rfc822 format available.

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

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: bug-gnu-emacs <at> gnu.org
Subject: dabbrev-expand vs. : vs. :
Date: Fri, 25 Jun 2021 03:31:34 +0800
Unfair! dabbrev-expand only expands boys names
1. 名:laura <at> nurdsboro.org
2. 名:ralph <at> nurdsboro.org
... when girls are behind wider colons.
Try it:
l M-/
r M-/




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#49214; Package emacs. (Thu, 24 Jun 2021 19:45:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 49214 <at> debbugs.gnu.org
Subject: Re: bug#49214: dabbrev-expand vs. : vs. :
Date: Thu, 24 Jun 2021 21:43:52 +0200
積丹尼 Dan Jacobson <jidanni <at> jidanni.org> writes:

> 1. 名:laura <at> nurdsboro.org
> 2. 名:ralph <at> nurdsboro.org

The problem here is:

(string-match "^\\sw" ":foo")
0

(string-match "^\\sw" ":foo")
nil

That is, : is word-constituent.  I'm not sure whether it's reasonable
for dabbrev to use \\sw as the regexp here, but it can be controlled by
setting `dabbrev-abbrev-char-regexp' to something else.

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#49214; Package emacs. (Thu, 24 Jun 2021 20:24:02 GMT) Full text and rfc822 format available.

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

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 49214 <at> debbugs.gnu.org
Subject: Re: bug#49214: dabbrev-expand vs. : vs. :
Date: Fri, 25 Jun 2021 04:23:23 +0800
Why are wide punctuation any less punctuation than narrow punctuation?
Sounds like a Euro-centered view of the world.

Why can't all punctuation be treated the same, narrow or wide?

LI> That is, : is word-constituent.  I'm not sure whether it's reasonable
LI> for dabbrev to use \\sw as the regexp here, but it can be controlled by
LI> setting `dabbrev-abbrev-char-regexp' to something else.




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Fri, 25 Jun 2021 05:44:02 GMT) Full text and rfc822 format available.

Notification sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
bug acknowledged by developer. (Fri, 25 Jun 2021 05:44:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: larsi <at> gnus.org, 49214-done <at> debbugs.gnu.org
Subject: Re: bug#49214: dabbrev-expand vs. : vs. :
Date: Fri, 25 Jun 2021 08:43:19 +0300
> From: 積丹尼 Dan Jacobson
>  <jidanni <at> jidanni.org>
> Date: Fri, 25 Jun 2021 04:23:23 +0800
> Cc: 49214 <at> debbugs.gnu.org
> 
> Why are wide punctuation any less punctuation than narrow punctuation?

Some wide punctuation characters are treated specially due to their
Word Break properties.  The details are in the comments where we
define text-mode-syntax-table, and in the Unicode Standard Annex 29
referenced from there.  It's just that there was a bug there.

> Sounds like a Euro-centered view of the world.

That's a nasty accusation which has no basis whatsoever.  Please don't
do that again here, ever.

> Why can't all punctuation be treated the same, narrow or wide?

It was a bug, plain and simple.  Now fixed on the master branch.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#49214; Package emacs. (Fri, 25 Jun 2021 05:45:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 49214 <at> debbugs.gnu.org, jidanni <at> jidanni.org
Subject: Re: bug#49214: dabbrev-expand vs. : vs. :
Date: Fri, 25 Jun 2021 08:44:21 +0300
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Date: Thu, 24 Jun 2021 21:43:52 +0200
> Cc: 49214 <at> debbugs.gnu.org
> 
> That is, : is word-constituent.  I'm not sure whether it's reasonable
> for dabbrev to use \\sw as the regexp here

Why not?  dabbrev-expand expands words, not any arbitrary sequences of
characters.




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

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

Previous Next


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