From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Let's make C-M-w in isearch yank symbol, not delete character Date: Sat, 10 Mar 2018 21:37:54 -0500 Message-ID: References: <87po4slrg4.fsf@mail.linkov.net> <831sh82zyf.fsf@gnu.org> <87h8q2w29i.fsf@mail.linkov.net> <83tvu1zsru.fsf@gnu.org> <87tvtzjvh4.fsf@mail.linkov.net> <83tvtyx55a.fsf@gnu.org> <87efl0pz4d.fsf@mail.linkov.net> <83o9k3u9ku.fsf@gnu.org> <87371f34m6.fsf@mail.linkov.net> <83bmg3tczk.fsf@gnu.org> <83606atswi.fsf@gnu.org> <87d10i8bal.fsf@mail.linkov.net> <83ina9sx0o.fsf@gnu.org> <878tb4vowd.fsf@mail.linkov.net> <87tvtn3hkm.fsf@gmail.com> <87ina3zl7c.fsf@mail.linkov.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1520735866 29875 195.159.176.226 (11 Mar 2018 02:37:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 11 Mar 2018 02:37:46 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 11 03:37:42 2018 Return-path: Envelope-to: ged-emacs-devel@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 1euqrm-0007fP-CV for ged-emacs-devel@m.gmane.org; Sun, 11 Mar 2018 03:37:42 +0100 Original-Received: from localhost ([::1]:52690 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euqtp-000560-23 for ged-emacs-devel@m.gmane.org; Sat, 10 Mar 2018 21:39:49 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55515) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euqsB-0004Ri-US for emacs-devel@gnu.org; Sat, 10 Mar 2018 21:38:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1euqs8-0003U5-Sa for emacs-devel@gnu.org; Sat, 10 Mar 2018 21:38:07 -0500 Original-Received: from [195.159.176.226] (port=43303 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1euqs8-0003Sz-L9 for emacs-devel@gnu.org; Sat, 10 Mar 2018 21:38:04 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1euqq1-0005RT-4b for emacs-devel@gnu.org; Sun, 11 Mar 2018 03:35:53 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 16 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:Dl2//OSftIUa6hwsNUN86eTlgJI= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:223603 Archived-At: > + :set #'(lambda (sym val) > + (when (eq val 'move) > + (dolist (sym '(right-char right-word forward-char forward-word > + forward-symbol forward-sexp next-line move-end-of-line > + left-char left-word backward-char backward-word > + backward-symbol backward-sexp previous-line)) > + (put sym 'isearch-move t))) > + (set-default sym val)) Why only set those properties in the :setter rather tan just do it at top-level? Also, would it be possible to avoid having to list those commands and instead treat as `isearch-move` any command which uses the handle-shift-selection? Stefan