GNU bug report logs - #44974
dabbrev-expand doesn't know wide commas are commas yet

Previous Next

Package: emacs;

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

Date: Tue, 1 Dec 2020 00:31:02 UTC

Severity: minor

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 44974 in the body.
You can then email your comments to 44974 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#44974; Package emacs. (Tue, 01 Dec 2020 00:31: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. (Tue, 01 Dec 2020 00:31: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 doesn't know wide commas are commas yet
Date: Tue, 01 Dec 2020 08:30:31 +0800
The command dabbrev-expand is bound to M-/.

It is great, except it needs to be updated, to know that
"," is a comma, just like ",".

哇,哈<ESC />
a,bb<ESC />

Scanning for dabbrevs...done
user-error: No dynamic expansion for ‘哇,哈’ found
Scanning for dabbrevs...done
user-error: No dynamic expansion for ‘bb’ found

Note how the latter doesn't have the "a," glued to it.

That means it is operating correctly. The former needs to be updated to
act like the latter.

P.S., I didn't test any other wide punctuation, e.g.. "。", etc.

emacs-version "27.1"




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#44974; Package emacs. (Tue, 01 Dec 2020 13:20:02 GMT) Full text and rfc822 format available.

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

From: Alan Third <alan <at> idiocy.org>
To: 44974 <at> debbugs.gnu.org,
 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Subject: Re: bug#44974: dabbrev-expand doesn't know wide commas are commas yet
Date: Tue, 1 Dec 2020 13:18:52 +0000
(Sorry Dan, I imagine you keep getting emails from me. I changed email
supplier yesterday and am having some trouble sending to the GNU
mailing lists. Hopefully this will be the last one!)

On Tue, Dec 01, 2020 at 08:30:31AM +0800, 積丹尼 Dan Jacobson wrote:
> The command dabbrev-expand is bound to M-/.
> 
> It is great, except it needs to be updated, to know that
> "," is a comma, just like ",".
> 
> 哇,哈<ESC />
> a,bb<ESC />
> 
> Scanning for dabbrevs...done
> user-error: No dynamic expansion for ‘哇,哈’ found
> Scanning for dabbrevs...done
> user-error: No dynamic expansion for ‘bb’ found
> 
> Note how the latter doesn't have the "a," glued to it.
> 
> That means it is operating correctly. The former needs to be updated to
> act like the latter.

The wide comma is matched by '\s_', which matches "symbol
constituents". I guess it should perhaps be considered punctuation
instead.


-- 
Alan Third




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sat, 02 Jan 2021 10:47:02 GMT) Full text and rfc822 format available.

Notification sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
bug acknowledged by developer. (Sat, 02 Jan 2021 10:47:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 44974-done <at> debbugs.gnu.org
Subject: Re: bug#44974: dabbrev-expand doesn't know wide commas are commas yet
Date: Sat, 02 Jan 2021 12:45:41 +0200
> From: 積丹尼 Dan Jacobson
>  <jidanni <at> jidanni.org>
> Date: Tue, 01 Dec 2020 08:30:31 +0800
> 
> The command dabbrev-expand is bound to M-/.
> 
> It is great, except it needs to be updated, to know that
> "," is a comma, just like ",".
> 
> 哇,哈<ESC />
> a,bb<ESC />
> 
> Scanning for dabbrevs...done
> user-error: No dynamic expansion for ‘哇,哈’ found
> Scanning for dabbrevs...done
> user-error: No dynamic expansion for ‘bb’ found
> 
> Note how the latter doesn't have the "a," glued to it.
> 
> That means it is operating correctly. The former needs to be updated to
> act like the latter.

This is now fixed on the master branch.

> P.S., I didn't test any other wide punctuation, e.g.. "。", etc.

I did.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 30 Jan 2021 12:24:05 GMT) Full text and rfc822 format available.

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

Previous Next


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