From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#358: dabbrev-abbrev-char-regexp Date: Thu, 23 Mar 2017 13:58:40 -0700 (PDT) Message-ID: References: <1212586214.22521.1256711185@webmail.messagingengine.com> <5e7a0ecf-0410-4080-9553-11e3da1361ba@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1490304461 6874 195.159.176.226 (23 Mar 2017 21:27:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 23 Mar 2017 21:27:41 +0000 (UTC) Cc: 358@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 23 22:27:36 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1crAGY-0000nl-Qz for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Mar 2017 22:27:30 +0100 Original-Received: from localhost ([::1]:58764 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1crAGe-00029g-U7 for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Mar 2017 17:27:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50785) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cr9p5-0002j7-K3 for bug-gnu-emacs@gnu.org; Thu, 23 Mar 2017 16:59:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cr9p0-00065K-P4 for bug-gnu-emacs@gnu.org; Thu, 23 Mar 2017 16:59:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43270) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cr9p0-00065A-Ls for bug-gnu-emacs@gnu.org; Thu, 23 Mar 2017 16:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cr9p0-0001aF-FP for bug-gnu-emacs@gnu.org; Thu, 23 Mar 2017 16:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Mar 2017 20:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 358 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 358-submit@debbugs.gnu.org id=B358.14903027326069 (code B ref 358); Thu, 23 Mar 2017 20:59:02 +0000 Original-Received: (at 358) by debbugs.gnu.org; 23 Mar 2017 20:58:52 +0000 Original-Received: from localhost ([127.0.0.1]:41469 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cr9oq-0001Zp-IC for submit@debbugs.gnu.org; Thu, 23 Mar 2017 16:58:52 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:20071) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cr9oo-0001Zb-5I for 358@debbugs.gnu.org; Thu, 23 Mar 2017 16:58:50 -0400 Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v2NKwhih002162 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 23 Mar 2017 20:58:43 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id v2NKwgdL028108 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 23 Mar 2017 20:58:43 GMT Original-Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id v2NKwg2B018190; Thu, 23 Mar 2017 20:58:42 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 12.0.6753.5000 (x86)] X-Source-IP: userv0022.oracle.com [156.151.31.74] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:130856 Archived-At: > > Yes, that's the intended meaning. Which is why it should not > > mention Lisp symbols, which are something else again. >=20 > Oh, your objection is about mentioning `yes-or-no-p'? No. It's about mentioning Lisp symbols. Or even mentioning "symbol" in the context of Lisp, where it has a particular meaning. And it's not an objection - just a suggestion. > > I don't think any example is needed. Essentially we are saying > > here that if a letter has word syntax and `-' has symbol syntax > > then \"\\\\sw\" matches a word char and \"\\\\sw\\\\|\\\\s_\" > > matches a word char or a symbol char. Not worth saying, IMO. >=20 > So the last paragraph would be just: >=20 > For instance, suppose the current buffer is `emacs-lisp-mode'. > If this variable is nil or \"\\\\sw\\\\|\\\\s_\", then expanding > `yes-or-no-' looks for a symbol starting with `yes-or-no-'. If > you set this variable to \"\\\\sw\", that expansion looks for a > word prefixed with `no-' (e.g., it would match `no-problem', but > not `no-problem-found'). If expanding `yes-or-no' it would look > for a word starting with `no' (e.g. `normal')." >=20 > Or did you mean just drop it entirely? I meant that it could be dropped. But what you wrote is also OK. Please use your own judgment; I'm OK with whatever you decide. My point was not to confuse people by mentioning Lisp symbols. Of course, the problem here is that we are talking about expanding `yes-or-no-p', which in Lisp is a Lisp symbol. It would probably be better to talk about using dabbrev in another context, besides Lisp. Then it would be clearer that we are talking only about symbol vs word syntax.