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 17:37:55 -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 1490305155 1287 195.159.176.226 (23 Mar 2017 21:39:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 23 Mar 2017 21:39:15 +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:39:12 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 1crARm-0007rp-SB for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Mar 2017 22:39:06 +0100 Original-Received: from localhost ([::1]:58892 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1crARr-0002E4-Bv for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Mar 2017 17:39:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36092) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1crARl-0002DJ-GC for bug-gnu-emacs@gnu.org; Thu, 23 Mar 2017 17:39:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1crARi-0004HH-F0 for bug-gnu-emacs@gnu.org; Thu, 23 Mar 2017 17:39:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43281) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1crARi-0004HD-Bg for bug-gnu-emacs@gnu.org; Thu, 23 Mar 2017 17:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1crARh-0002cC-Vq for bug-gnu-emacs@gnu.org; Thu, 23 Mar 2017 17:39: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 21:39:01 +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.14903050849987 (code B ref 358); Thu, 23 Mar 2017 21:39:01 +0000 Original-Received: (at 358) by debbugs.gnu.org; 23 Mar 2017 21:38:04 +0000 Original-Received: from localhost ([127.0.0.1]:41480 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1crAQm-0002b1-1k for submit@debbugs.gnu.org; Thu, 23 Mar 2017 17:38:04 -0400 Original-Received: from mail-ot0-f169.google.com ([74.125.82.169]:36457) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1crAQk-0002aV-Eg for 358@debbugs.gnu.org; Thu, 23 Mar 2017 17:38:02 -0400 Original-Received: by mail-ot0-f169.google.com with SMTP id i1so196683547ota.3 for <358@debbugs.gnu.org>; Thu, 23 Mar 2017 14:38:02 -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=K7g438mzSq1lY7FmBwNdvu5yEWR4BjcaACmKVZzaWiE=; b=YI+paTLdFJBd+EymCuZ5M4FNarntwAwSMuJKewd7vFdgPzkBCvfqKKwoDT19y+l4BK GsHz56O4QorBp7cwsTsnGe5owDJLDsLr5ibJX0onyX4TuO3pOhEh6Cuy99ccHh//BAN1 mEJNM0H0c4eq5MRi4rBAqulJfzunlqxbcwg/HEF3j2C6onPUze8+dZA850+cRnYv/ktN ty2s6Pf18+URteJwS1/+yDK+bNBS+VSAtw3V6RpjW0g5Lt7p1Y1DqZufleG7Dtcc7qVT oLnj2X3TrTyoBh7q9anGiAnkO3k2rdYiYsWIXKrBiTd85vHTWwUweVRbrmL/0nR/DZA+ YFQQ== 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=K7g438mzSq1lY7FmBwNdvu5yEWR4BjcaACmKVZzaWiE=; b=Q4bQyx9LzGtiiki3WMrqRHONSaOiWReGx7dp2HSAbqu7bzN3l5oESgDxqziMy3s7K0 GMlFpiN/yelZTUgM9QqYgl8iypbujCUENRWw9Y3BtxtxUzVMnwnLC52SCV6WrOV/BZnD GnS/CV0SmXKj/XMazvpXFVkKSBX40wk+NpaxlShnhqzkyZNuOU6UzDkUfSaSjBhSljn7 Rj19faUX9uwMFpgr2Z9aHpq1dmk0MhxaabqNYm3MLC6M80g4TW+v7voK45UAW0PCRmRW ZxZsF1FAjleLFU9aChvEIcVpbmhsKX3pwHqlkqEZXFMUrf7js0F8pXbS+eujA6+VYU7N Wl7Q== X-Gm-Message-State: AFeK/H0iyIfinjpMwW98oIagDUI4X+eJ7CZMQ+seJmQEQLP3z6c3Iw0c1BNdUuI7JgvyDFXblRGpFLYzRQW1AQ== X-Received: by 10.157.54.161 with SMTP id h30mr2437467otc.30.1490305075622; Thu, 23 Mar 2017 14:37:55 -0700 (PDT) Original-Received: by 10.157.80.172 with HTTP; Thu, 23 Mar 2017 14:37:55 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: DkmZSyt9UNuNmOtDu8l7aXYCt4w 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:130858 Archived-At: On Thu, Mar 23, 2017 at 4:58 PM, Drew Adams wrote: > > 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. As in, use a C example instead? For instance, suppose the current buffer is in `c-mode'. If this variable is nil or \"\\\\sw\\\\|\\\\s_\", then expanding `debug_print_in_' looks for a symbol starting with `debug_print_in_'. If you set this variable to \"\\\\sw\", that expansion looks for a word prefixed with `in_' (e.g., it would match `in_range', but not `in_close_range'). If expanding `debug_print_in' it would look for a word starting with `in' (e.g. `integer')."