GNU bug report logs - #358
dabbrev-abbrev-char-regexp

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: "Otto Maddox" <ottomaddox <at> fastmail.fm>; dated Wed, 4 Jun 2008 13:40:03 UTC; Maintainer for emacs is bug-gnu-emacs <at> gnu.org.

Message received at 358 <at> debbugs.gnu.org:


Received: (at 358) by debbugs.gnu.org; 6 Jul 2011 17:46:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 06 13:46:37 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1QeWBJ-0007RY-94
	for submit <at> debbugs.gnu.org; Wed, 06 Jul 2011 13:46:37 -0400
Received: from hermes.netfonds.no ([80.91.224.195])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <larsi <at> gnus.org>) id 1QeWBH-0007RI-2p
	for 358 <at> debbugs.gnu.org; Wed, 06 Jul 2011 13:46:36 -0400
Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58]
	helo=quimbies.gnus.org)
	by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16)
	(Exim 4.72) (envelope-from <larsi <at> gnus.org>)
	id 1QeWB5-0007s4-Rv; Wed, 06 Jul 2011 19:46:23 +0200
From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: Glenn Morris <rgm <at> gnu.org>
Subject: Re: bug#358: dabbrev-abbrev-char-regexp
References: <1212586214.22521.1256711185 <at> webmail.messagingengine.com>
	<29vdvw2dcv.fsf <at> fencepost.gnu.org> <sw1vy85ccg.fsf <at> fencepost.gnu.org>
X-Now-Playing: Anna =?iso-8859-1?Q?J=E4rvinen's?= _Man var bland molnen_:
	=?iso-8859-1?Q?=22=C4r?= det det =?iso-8859-1?Q?h=E4r?= det hela
	handlar om"
X-Hashcash: 1:23:110706:358 <at> debbugs.gnu.org::aI9ouwlP5dxEn4VP:000000000000000000000000000000000000000000h40Y
X-Hashcash: 1:23:110706:rgm <at> gnu.org::uHaoKmMAOZ6bK2R3:000001McNp
Date: Wed, 06 Jul 2011 19:46:23 +0200
In-Reply-To: <sw1vy85ccg.fsf <at> fencepost.gnu.org> (Glenn Morris's message of
	"Wed, 22 Oct 2008 21:28:31 -0400")
Message-ID: <m3d3hn1evk.fsf <at> quimbies.gnus.org>
User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-MailScanner-ID: 1QeWB5-0007s4-Rv
X-Netfonds-MailScanner: Found to be clean
X-Netfonds-MailScanner-From: larsi <at> gnus.org
MailScanner-NULL-Check: 1310579183.94195 <at> 3E8kj6Xt+jpg2isQ8NziAg
X-Spam-Status: No
X-Spam-Score: -2.8 (--)
X-Debbugs-Envelope-To: 358
Cc: 358 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.8 (--)

Glenn Morris <rgm <at> gnu.org> writes:

> After looking at this again, there's still no difference between nil
> and \\sw\\|\\s- AFAICS,

I've now changed the doc string to reflect this.

> but now dabbrev--abbrev-at-point makes little
> sense to me:
>
> emacs -Q --eval '(setq dabbrev-abbrev-char-regexp "\\sw")'
>
> in scratch:
>
> yes-or-no---
>
> followed by M-/ gives
>
> "No dynamic expansion for `no---' found". Obviously, "---" are not
> word constituents, yet they are included in the abbrev, in flat
> contradiction to the doc-string of dabbrev-abbrev-char-regexp:
>
>     if you set this variable to "\\sw", then expanding `yes-or-no-'
>     signals an error because `-' is not part of a word
>
> This is caused by dabbrev--abbrev-at-point's:
>
>     ;; If we aren't right after an abbreviation,
>     ;; move point back to just after one.
>     ;; This is so the user can get successive words
>     ;; by typing the punctuation followed by M-/.

I have no idea how dabbrev works, but isn't that a new bug report?  :-)

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




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#358; Package emacs. Full text available.
Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#358; Package emacs. Full text available.

Message received at (unknown):


Received: (at unknown) by unknown; unknown
X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02
	(2007-08-08) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Status: No, score=-12.3 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER,
	RCVD_IN_DNSWL_MED,X_DEBBUGS_NO_ACK autolearn=ham
	version=3.2.3-bugs.debian.org_2005_01_02
Received: (at 358) by emacsbugs.donarmstrong.com; 23 Oct 2008 01:31:17 +0000
Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9N1VErF010264
	for <358 <at> emacsbugs.donarmstrong.com>; Wed, 22 Oct 2008 18:31:15 -0700
Received: from rgm by fencepost.gnu.org with local (Exim 4.67)
	(envelope-from <rgm <at> gnu.org>)
	id 1Ksp03-0006EH-KM; Wed, 22 Oct 2008 21:28:31 -0400
From: Glenn Morris <rgm <at> gnu.org>
To: 358 <at> debbugs.gnu.org
Subject: Re: bug#358: dabbrev-abbrev-char-regexp
References: <1212586214.22521.1256711185 <at> webmail.messagingengine.com>
	<29vdvw2dcv.fsf <at> fencepost.gnu.org>
X-Spook: Islam Abduganievich Karimov ASLET Albania Forte clones
X-Ran: <4=fUytK$^}"\>!;I=@&/[Z\>TC=]hxzS)>j-QNFI)Qk"nY=$#Rn5GNOhd}K'y%n\J^nYV
X-Hue: black
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Wed, 22 Oct 2008 21:28:31 -0400
In-Reply-To: <29vdvw2dcv.fsf <at> fencepost.gnu.org> (Glenn Morris's message of
	"Mon, 13 Oct 2008 21:07:44 -0400")
Message-ID: <sw1vy85ccg.fsf <at> fencepost.gnu.org>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii


After looking at this again, there's still no difference between nil
and \\sw\\|\\s- AFAICS, but now dabbrev--abbrev-at-point makes little
sense to me:

emacs -Q --eval '(setq dabbrev-abbrev-char-regexp "\\sw")'

in scratch:

yes-or-no---

followed by M-/ gives

"No dynamic expansion for `no---' found". Obviously, "---" are not
word constituents, yet they are included in the abbrev, in flat
contradiction to the doc-string of dabbrev-abbrev-char-regexp:

    if you set this variable to "\\sw", then expanding `yes-or-no-'
    signals an error because `-' is not part of a word

This is caused by dabbrev--abbrev-at-point's:

    ;; If we aren't right after an abbreviation,
    ;; move point back to just after one.
    ;; This is so the user can get successive words
    ;; by typing the punctuation followed by M-/.




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#358; Package emacs. Full text available.

Message received at (unknown):


Received: (at unknown) by unknown; unknown
X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02
	(2007-08-08) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Status: No, score=-12.2 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER,
	RCVD_IN_DNSWL_MED,X_DEBBUGS_NO_ACK autolearn=ham
	version=3.2.3-bugs.debian.org_2005_01_02
Received: (at 358) by emacsbugs.donarmstrong.com; 14 Oct 2008 01:10:17 +0000
Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9E1AEVB011308
	for <358 <at> emacsbugs.donarmstrong.com>; Mon, 13 Oct 2008 18:10:16 -0700
Received: from rgm by fencepost.gnu.org with local (Exim 4.67)
	(envelope-from <rgm <at> gnu.org>)
	id 1KpYO0-0000Hk-5p; Mon, 13 Oct 2008 21:07:44 -0400
From: Glenn Morris <rgm <at> gnu.org>
To: 358 <at> debbugs.gnu.org
Subject: Re: bug#358: dabbrev-abbrev-char-regexp
References: <1212586214.22521.1256711185 <at> webmail.messagingengine.com>
X-Spook: CipherTAC-2000 asset data haven MILSATCOM 9705 Samford
X-Ran: X8?}@_sg/xgk!idKycO;QI)%@OM{l<aoIu7f-.BL0i7-MV/kzQrxJ69N](~x\[vD*$0|%F
X-Hue: red
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Mon, 13 Oct 2008 21:07:44 -0400
In-Reply-To: <1212586214.22521.1256711185 <at> webmail.messagingengine.com> (Otto
	Maddox's message of "Wed, 04 Jun 2008 14:30:14 +0100")
Message-ID: <29vdvw2dcv.fsf <at> fencepost.gnu.org>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

"Otto Maddox" wrote:

> The default value for dabbrev-abbrev-char-regexp is nil, but its
> docstring has this:
>
>     The recommended value is "\\sw\\|\\s_".
>
> If this value is indeed recommended, then it would make sense for it
> to be the default value also.

As far as I can tell, these two settings are exactly equivalent to one
another, and have been for some time (always?). If no-one disagrees, I
will adjust the documentation to reflect this.




Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#358; Package emacs. Full text available.
Severity set to `minor' from `normal' Request was from Don Armstrong <don <at> donarmstrong.com> to control <at> emacsbugs.donarmstrong.com. Full text available.

Message received at (unknown):


Received: (at unknown) by unknown; unknown
X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02
	(2007-08-08) on rzlab.ucr.edu
X-Spam-Level: **
X-Spam-Status: No, score=2.6 required=4.0 tests=AWL,BAYES_50,ONEWORD,
	RCVD_IN_DNSWL_LOW,TRACKER_ID autolearn=no
	version=3.2.3-bugs.debian.org_2005_01_02
Received: (at submit) by emacsbugs.donarmstrong.com; 4 Jun 2008 13:30:29 +0000
Received: from lists.gnu.org (lists.gnu.org [199.232.76.165])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m54DULFl017778
	for <submit <at> emacsbugs.donarmstrong.com>; Wed, 4 Jun 2008 06:30:22 -0700
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1K3t4G-0006CJ-Lp
	for bug-gnu-emacs <at> gnu.org; Wed, 04 Jun 2008 09:30:20 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1K3t4D-00068D-My
	for bug-gnu-emacs <at> gnu.org; Wed, 04 Jun 2008 09:30:20 -0400
Received: from [199.232.76.173] (port=51879 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43)
	id 1K3t4D-00067v-HW
	for bug-gnu-emacs <at> gnu.org; Wed, 04 Jun 2008 09:30:17 -0400
Received: from out1.smtp.messagingengine.com ([66.111.4.25]:45029)
	by monty-python.gnu.org with esmtp (Exim 4.60)
	(envelope-from <ottomaddox <at> fastmail.fm>)
	id 1K3t4D-0004nO-CM
	for bug-gnu-emacs <at> gnu.org; Wed, 04 Jun 2008 09:30:17 -0400
Received: from compute1.internal (compute1.internal [10.202.2.41])
	by out1.messagingengine.com (Postfix) with ESMTP id 061AF112C7B
	for <bug-gnu-emacs <at> gnu.org>; Wed,  4 Jun 2008 09:30:15 -0400 (EDT)
Received: from web5.messagingengine.com ([10.202.2.214])
  by compute1.internal (MEProxy); Wed, 04 Jun 2008 09:30:14 -0400
Received: by web5.messagingengine.com (Postfix, from userid 99)
	id D295E780EA; Wed,  4 Jun 2008 09:30:14 -0400 (EDT)
Message-Id: <1212586214.22521.1256711185 <at> webmail.messagingengine.com>
X-Sasl-Enc: G+3ZsfIJtjzd0gkGO5ISdD2Nc3rv80hL37Qf58yRQbfd 1212586214
From: "Otto Maddox" <ottomaddox <at> fastmail.fm>
To: bug-gnu-emacs <at> gnu.org
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="ISO-8859-1"
MIME-Version: 1.0
X-Mailer: MessagingEngine.com Webmail Interface
Subject: dabbrev-abbrev-char-regexp
Date: Wed, 04 Jun 2008 14:30:14 +0100
X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized.

The default value for dabbrev-abbrev-char-regexp is nil, but its
docstring has this:

    The recommended value is "\\sw\\|\\s_".

If this value is indeed recommended, then it would make sense for it
to be the default value also.

In GNU Emacs 22.2.1 (i386-apple-darwin9.2.2, Carbon Version 1.6.0)
 of 2008-04-16

-- 
  Otto Maddox
  ottomaddox <at> fastmail.fm

-- 
http://www.fastmail.fm - Access all of your messages and folders
                          wherever you are






Acknowledgement sent to "Otto Maddox" <ottomaddox <at> fastmail.fm>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text available.
Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#358; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 20 Sep 2011 19:45:02 UTC

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