* bug#49214: dabbrev-expand vs. : vs. :
@ 2021-06-24 19:31 積丹尼 Dan Jacobson
2021-06-24 19:43 ` Lars Ingebrigtsen
0 siblings, 1 reply; 5+ messages in thread
From: 積丹尼 Dan Jacobson @ 2021-06-24 19:31 UTC (permalink / raw)
To: 49214
Unfair! dabbrev-expand only expands boys names
1. 名:laura@nurdsboro.org
2. 名:ralph@nurdsboro.org
... when girls are behind wider colons.
Try it:
l M-/
r M-/
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#49214: dabbrev-expand vs. : vs. :
2021-06-24 19:31 bug#49214: dabbrev-expand vs. : vs. : 積丹尼 Dan Jacobson
@ 2021-06-24 19:43 ` Lars Ingebrigtsen
2021-06-24 20:23 ` 積丹尼 Dan Jacobson
2021-06-25 5:44 ` Eli Zaretskii
0 siblings, 2 replies; 5+ messages in thread
From: Lars Ingebrigtsen @ 2021-06-24 19:43 UTC (permalink / raw)
To: 積丹尼 Dan Jacobson; +Cc: 49214
積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:
> 1. 名:laura@nurdsboro.org
> 2. 名:ralph@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
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#49214: dabbrev-expand vs. : vs. :
2021-06-24 19:43 ` Lars Ingebrigtsen
@ 2021-06-24 20:23 ` 積丹尼 Dan Jacobson
2021-06-25 5:43 ` Eli Zaretskii
2021-06-25 5:44 ` Eli Zaretskii
1 sibling, 1 reply; 5+ messages in thread
From: 積丹尼 Dan Jacobson @ 2021-06-24 20:23 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: 49214
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#49214: dabbrev-expand vs. : vs. :
2021-06-24 20:23 ` 積丹尼 Dan Jacobson
@ 2021-06-25 5:43 ` Eli Zaretskii
0 siblings, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2021-06-25 5:43 UTC (permalink / raw)
To: 積丹尼 Dan Jacobson; +Cc: larsi, 49214-done
> From: 積丹尼 Dan Jacobson
> <jidanni@jidanni.org>
> Date: Fri, 25 Jun 2021 04:23:23 +0800
> Cc: 49214@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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#49214: dabbrev-expand vs. : vs. :
2021-06-24 19:43 ` Lars Ingebrigtsen
2021-06-24 20:23 ` 積丹尼 Dan Jacobson
@ 2021-06-25 5:44 ` Eli Zaretskii
1 sibling, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2021-06-25 5:44 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: 49214, jidanni
> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Thu, 24 Jun 2021 21:43:52 +0200
> Cc: 49214@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.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-06-25 5:44 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-24 19:31 bug#49214: dabbrev-expand vs. : vs. : 積丹尼 Dan Jacobson
2021-06-24 19:43 ` Lars Ingebrigtsen
2021-06-24 20:23 ` 積丹尼 Dan Jacobson
2021-06-25 5:43 ` Eli Zaretskii
2021-06-25 5:44 ` Eli Zaretskii
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.