From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.bugs Subject: bug#1120: issues on (put 'insert-date 'delete-selection t) Date: Wed, 08 Oct 2008 22:59:58 -0400 Message-ID: References: <51DE3BC4-A565-472C-90A5-028B38C523BC@xahlee.org> Reply-To: rms@gnu.org, 1120@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1223523016 20361 80.91.229.12 (9 Oct 2008 03:30:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 9 Oct 2008 03:30:16 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: xah lee , 1120@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 09 05:31:13 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KnmF6-0000ah-DU for geb-bug-gnu-emacs@m.gmane.org; Thu, 09 Oct 2008 05:31:12 +0200 Original-Received: from localhost ([127.0.0.1]:52598 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KnmE2-0001pa-3B for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Oct 2008 23:30:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KnmDy-0001pH-DV for bug-gnu-emacs@gnu.org; Wed, 08 Oct 2008 23:30:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KnmDx-0001oz-1j for bug-gnu-emacs@gnu.org; Wed, 08 Oct 2008 23:30:02 -0400 Original-Received: from [199.232.76.173] (port=54909 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KnmDw-0001om-NV for bug-gnu-emacs@gnu.org; Wed, 08 Oct 2008 23:30:00 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:37930) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KnmDx-0008UN-5G for bug-gnu-emacs@gnu.org; Wed, 08 Oct 2008 23:30:01 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m993Tw6E019173; Wed, 8 Oct 2008 20:29:58 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m993A3PT014585; Wed, 8 Oct 2008 20:10:03 -0700 X-Loop: don@donarmstrong.com Resent-From: "Richard M. Stallman" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 09 Oct 2008 03:10:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1120 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122352134812525 (code B ref -1); Thu, 09 Oct 2008 03:10:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 9 Oct 2008 03:02:28 +0000 Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9932PV0012514 for ; Wed, 8 Oct 2008 20:02:26 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KnlnF-0007mR-D7 for bug-gnu-emacs@gnu.org; Wed, 08 Oct 2008 23:02:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KnlnE-0007m2-So for bug-gnu-emacs@gnu.org; Wed, 08 Oct 2008 23:02:25 -0400 Original-Received: from [199.232.76.173] (port=60439 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KnlnE-0007lr-NN for bug-gnu-emacs@gnu.org; Wed, 08 Oct 2008 23:02:24 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:52818) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KnlnF-000447-54 for bug-gnu-emacs@gnu.org; Wed, 08 Oct 2008 23:02:25 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1Knlks-00063L-1Z; Wed, 08 Oct 2008 22:59:58 -0400 In-reply-to: <51DE3BC4-A565-472C-90A5-028B38C523BC@xahlee.org> (message from xah lee on Wed, 8 Oct 2008 09:55:27 -0700) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Wed, 08 Oct 2008 23:30:02 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:21309 Archived-At: according to delete-selection-mode's header file, elisp code that insert text that wants to respect delete-selection-mode should set the symbol's delete-selection property to true. However, this works only when the command is called by a keyboard, not by M-x. This appears to be a bug? It's intentional. This feature implements expectations that users have for single-character editing operations in other editors, where those commands don't have names and there's nothing like M-x. So there's no reason why M-x should delete the region. It is better for M-x just to call the function.