From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#4136: 23.1; delete-pair Date: Fri, 14 Aug 2009 02:28:21 +0300 Organization: JURTA Message-ID: <87eirfs56q.fsf@mail.jurta.org> References: <19075.45378.67131.491453@winooski.ccs.neu.edu> Reply-To: Juri Linkov , 4136@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1250207231 14149 80.91.229.12 (13 Aug 2009 23:47:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 13 Aug 2009 23:47:11 +0000 (UTC) Cc: 4136@emacsbugs.donarmstrong.com To: Eli Barzilay Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 14 01:47:04 2009 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 1Mbk0e-0005P7-7J for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Aug 2009 01:47:04 +0200 Original-Received: from localhost ([127.0.0.1]:45028 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mbk0d-0007KN-Fs for geb-bug-gnu-emacs@m.gmane.org; Thu, 13 Aug 2009 19:47:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mbk0Y-0007Jt-0F for bug-gnu-emacs@gnu.org; Thu, 13 Aug 2009 19:46:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mbk0T-0007Is-CB for bug-gnu-emacs@gnu.org; Thu, 13 Aug 2009 19:46:57 -0400 Original-Received: from [199.232.76.173] (port=59955 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mbk0T-0007Io-7r for bug-gnu-emacs@gnu.org; Thu, 13 Aug 2009 19:46:53 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:36274) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mbk0S-0002JW-Ec for bug-gnu-emacs@gnu.org; Thu, 13 Aug 2009 19:46:52 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7DNkncs005745; Thu, 13 Aug 2009 16:46:50 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n7DNZ87W003907; Thu, 13 Aug 2009 16:35:08 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Juri Linkov Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 13 Aug 2009 23:35:07 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4136 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4136-submit@emacsbugs.donarmstrong.com id=B4136.12502062413298 (code B ref 4136); Thu, 13 Aug 2009 23:35:07 +0000 Original-Received: (at 4136) by emacsbugs.donarmstrong.com; 13 Aug 2009 23:30:41 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mx1.starman.ee (smtp-out1.starman.ee [85.253.0.3]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n7DNUd0r003292 for <4136@emacsbugs.donarmstrong.com>; Thu, 13 Aug 2009 16:30:40 -0700 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Original-Received: from mail.starman.ee (82.131.55.163.cable.starman.ee [82.131.55.163]) by mx1.starman.ee (Postfix) with ESMTP id 2FC383F43EF; Fri, 14 Aug 2009 02:30:31 +0300 (EEST) In-Reply-To: <19075.45378.67131.491453@winooski.ccs.neu.edu> (Eli Barzilay's message of "Thu, 13 Aug 2009 02:22:58 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Thu, 13 Aug 2009 19:46:57 -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:30165 Archived-At: > `delete-pair' is deleting what it documents -- instead of removing the > open paren of the following sexp, it deletes the current one. So, if > the cursor is on some whitespace that precedes an expression, the > whitespace is deleted, and the open paren is left intact. This should be fixed with the following patch: Index: lisp/emacs-lisp/lisp.el =================================================================== RCS file: /sources/emacs/emacs/lisp/emacs-lisp/lisp.el,v retrieving revision 1.102 diff -u -r1.102 lisp.el --- lisp/emacs-lisp/lisp.el 22 Jul 2009 02:45:37 -0000 1.102 +++ lisp/emacs-lisp/lisp.el 13 Aug 2009 23:27:42 -0000 @@ -530,8 +530,12 @@ (defun delete-pair () "Delete a pair of characters enclosing the sexp that follows point." (interactive) - (save-excursion (forward-sexp 1) (delete-char -1)) - (delete-char 1)) + (save-excursion + (forward-sexp 1) + (save-excursion + (backward-sexp 1) + (delete-char 1)) + (delete-char -1))) (defun raise-sexp (&optional arg) "Raise ARG sexps higher up the tree." -- Juri Linkov http://www.jurta.org/emacs/