From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#358: dabbrev-abbrev-char-regexp Date: Thu, 23 Mar 2017 16:50:27 -0400 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 X-Trace: blaine.gmane.org 1490304261 28515 195.159.176.226 (23 Mar 2017 21:24:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 23 Mar 2017 21:24:21 +0000 (UTC) Cc: 358@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 23 22:24:17 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 1crADH-0005ib-FW for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Mar 2017 22:24:07 +0100 Original-Received: from localhost ([::1]:58734 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1crADL-00081V-38 for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Mar 2017 17:24:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48003) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cr9hL-0003eu-Sd for bug-gnu-emacs@gnu.org; Thu, 23 Mar 2017 16:51:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cr9hH-0002gC-5L for bug-gnu-emacs@gnu.org; Thu, 23 Mar 2017 16:51:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43246) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cr9hG-0002fJ-MN for bug-gnu-emacs@gnu.org; Thu, 23 Mar 2017 16:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cr9hG-0001Ne-9y for bug-gnu-emacs@gnu.org; Thu, 23 Mar 2017 16:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Mar 2017 20:51: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.14903022355265 (code B ref 358); Thu, 23 Mar 2017 20:51:02 +0000 Original-Received: (at 358) by debbugs.gnu.org; 23 Mar 2017 20:50:35 +0000 Original-Received: from localhost ([127.0.0.1]:41445 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cr9go-0001Mr-UG for submit@debbugs.gnu.org; Thu, 23 Mar 2017 16:50:35 -0400 Original-Received: from mail-ot0-f179.google.com ([74.125.82.179]:33220) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cr9gn-0001Me-H1 for 358@debbugs.gnu.org; Thu, 23 Mar 2017 16:50:33 -0400 Original-Received: by mail-ot0-f179.google.com with SMTP id a12so126269667ota.0 for <358@debbugs.gnu.org>; Thu, 23 Mar 2017 13:50:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=+iHHKwLTgirHZGHvZW9Vrtldpd6Lknoy7+g1/QYQ4gA=; b=McxkbX6wCG3wDSK0Kl1+6j5RqHAkgvetNUWuMTJQPRxVNwaKI8ACOHk0KH1DYP7Jpz 1pQ7kGYIoS7mbiIu8k520MZaJ24pOLRsq0/rvvmZjg4QzQ0vDnq1ADufg09fcMU7Y7YF 9HCayj3GJ/5SY17Nt2WGY3EC8XP2MJVgl4pmlecP86Dkd11ER0WVjSHaS89B9wbq16DT MmQNs2HwJh9y6N13gEsDkD74YKpO37jerHP6tKXcl8FhOGHU2VXBUuC8+j4HcNv18e6t c/XCgLQ+3Y9Xedj9TENkJxKCyloKhLrA4LNfZtoq1u8eqjaxU5MEglkuaJSJ39cKgsWF idkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=+iHHKwLTgirHZGHvZW9Vrtldpd6Lknoy7+g1/QYQ4gA=; b=ecu64xWf9agUcrViH4B42Fb/bUltvQ96dnS+b1XU8HPiqycP+vxtDpOdvYL5wMUyQ6 HM9QVtVdmkjjANa0SujFrUf3A3soyvKZjVCTZ/rzHdlmvgJjRMAGoNaKrLLQFdvkCdYW Vs5UJbUPhH1wryLlkfe8qqtzGbQ82ntSt6LeXb4SLPFKjwAWe0JQjo5DPGN6Ps7VfE7M ekuhJyfm5NnHamHbdetytaAkPpj/T3ySHjjsMxneGGr/rsADyrTMOvR7JPlrDGkheSLV 5/Hbp4OxXvo5cax9YNXFbRrJ8a6rTEw7ZgGDPxb+/0antjCrseB5w5I21P3lFOTz3QS+ Jy6w== X-Gm-Message-State: AFeK/H2UFRfF/6+khll2Af1aLrus3vHUgU2tycW0GZY9Q+RX8Pg8MYCF9Xc9enZkCmHYLoLaYbidYEzAuXKk5A== X-Received: by 10.157.15.161 with SMTP id d30mr2370621otd.221.1490302227687; Thu, 23 Mar 2017 13:50:27 -0700 (PDT) Original-Received: by 10.157.80.172 with HTTP; Thu, 23 Mar 2017 13:50:27 -0700 (PDT) In-Reply-To: <5e7a0ecf-0410-4080-9553-11e3da1361ba@default> X-Google-Sender-Auth: KngIBJmRdFZd6u3XrkJsywIQCrY 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:130855 Archived-At: On Thu, Mar 23, 2017 at 4:24 PM, Drew Adams wrote: >> >> +For instance, if you are programming in Lisp, `yes-or-no-p' is a >> >> +symbol, while `yes', `or', `no' and `p' are considered words. >> > >> > This text (same as before) is a bit misleading. It makes it sound >> > like `yes', `or', `no', and `p' are considered words but not symbols. >> > They are also considered symbols. Each of their characters has word >> > syntax, but in Lisp those names name symbols. >> > >> > It is better not to talk about Lisp symbols at all here, I think. >> > This is about the syntax categories symbol and word. It is not >> > about which names can be used for Lisp symbols. (And there is >> > no such thing as a Lisp "word".) >> >> The text is using "symbol" as a shorthand for "text which >> `forward-symbol' would move over" or "sequence of characters with word >> or symbol constituent syntax", and "word" as short for "text which >> `forward-word' would move over" or "sequence of characters with word >> constituent syntax". > > Yes, that's the intended meaning. Which is why it should not > mention Lisp symbols, which are something else again. Oh, your objection is about mentioning `yes-or-no-p'? > 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. So the last paragraph would be just: 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')." Or did you mean just drop it entirely?