From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22296: 25.1.50; Document changes to `delete-selection-mode' Date: Fri, 08 Jan 2016 14:11:12 +0200 Message-ID: <83io34p8yn.fsf@gnu.org> References: <<<<<660d1a46-fd5a-460f-8f26-50ba9a52cc60@default>>>>> <<<<<83mvsmadhv.fsf@gnu.org>>>>> <<<<940d59ef-c3d6-42df-ba0c-602cc154d431@default>>>> <<<<834meua953.fsf@gnu.org>>>> <<<68435980-44a2-4d33-8f64-8fbbdedb4a4e@default>>> <<<83vb7a8pxi.fsf@gnu.org>>> <<8b4cae3f-6f4c-4784-85fc-36a659fe15fd@default>> <<83r3hy8owz.fsf@gnu.org>> <02f413b1-6aa6-4095-a9a9-a60c50faa5ca@default> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1452255144 6564 80.91.229.3 (8 Jan 2016 12:12:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Jan 2016 12:12:24 +0000 (UTC) Cc: 22296-done@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 08 13:12:12 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aHVtq-0004nQ-AI for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Jan 2016 13:12:10 +0100 Original-Received: from localhost ([::1]:35336 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHVtp-0007kL-On for geb-bug-gnu-emacs@m.gmane.org; Fri, 08 Jan 2016 07:12:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44301) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHVtm-0007kG-TP for bug-gnu-emacs@gnu.org; Fri, 08 Jan 2016 07:12:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aHVti-0003Uk-FX for bug-gnu-emacs@gnu.org; Fri, 08 Jan 2016 07:12:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54104) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHVti-0003Ug-CS for bug-gnu-emacs@gnu.org; Fri, 08 Jan 2016 07:12:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aHVti-0002P8-9F for bug-gnu-emacs@gnu.org; Fri, 08 Jan 2016 07:12:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Jan 2016 12:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22296 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22296-done@debbugs.gnu.org id=D22296.14522550889199 (code D ref 22296); Fri, 08 Jan 2016 12:12:02 +0000 Original-Received: (at 22296-done) by debbugs.gnu.org; 8 Jan 2016 12:11:28 +0000 Original-Received: from localhost ([127.0.0.1]:42324 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aHVtA-0002OI-Hp for submit@debbugs.gnu.org; Fri, 08 Jan 2016 07:11:28 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:53204) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aHVt8-0002O5-AR for 22296-done@debbugs.gnu.org; Fri, 08 Jan 2016 07:11:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aHVsy-0003PK-IB for 22296-done@debbugs.gnu.org; Fri, 08 Jan 2016 07:11:20 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46985) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHVsy-0003P5-E5; Fri, 08 Jan 2016 07:11:16 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1412 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aHVsx-0006jn-Ni; Fri, 08 Jan 2016 07:11:16 -0500 In-reply-to: <02f413b1-6aa6-4095-a9a9-a60c50faa5ca@default> (message from Drew Adams on Sun, 3 Jan 2016 11:54:12 -0800 (PST)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:111370 Archived-At: > Date: Sun, 3 Jan 2016 11:54:12 -0800 (PST) > From: Drew Adams > Cc: 22296@debbugs.gnu.org > > That helper-function doc string is really not the right place > for it, IMO (though I am glad it was at least added to some > doc string). Users will look to the command/mode doc string > more than to a helper-function doc string, for information > about how to use delete-selection mode. I added a link in the doc string of delete-selection-mode to delete-selection-helper and delete-selection-pre-hook. > D-s mode is not only about replacing selected text by text > you type. It also deletes selected text when you hit certain > deletion keys. This info is missing. I added that. > Whether most Emacs users need to know this or it could be > presented only in the Elisp manual is another question. I think > that an end user will also want to know that s?he can override > the default d-s-mode behavior for any given commands, and that > the way to do that is to set property `delete-selection' on the > command symbol. Pretty simple to do, but you need to know about > it to do it. I added to the ELisp manual text that briefly mentions how Delete Selection mode affects commands, and refers to the doc strings of delete-selection-pre-hook and delete-selection-helper. I think this makes the documentation of this quite adequate, so I'm marking this bug done.