From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: vibhavp@gmail.com Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master f469024: Use delete-char instead of delete-backward-char. Date: Fri, 20 Mar 2015 01:51:33 +0530 Message-ID: <87y4mszqk2.fsf@lenovog410.lan> References: <20150318194629.7043.70347@vcs.savannah.gnu.org> <873850258s.fsf@lenovog410.lan> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1426796513 18421 80.91.229.3 (19 Mar 2015 20:21:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Mar 2015 20:21:53 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 19 21:21:52 2015 Return-path: Envelope-to: ged-emacs-devel@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 1YYgww-0001bw-BB for ged-emacs-devel@m.gmane.org; Thu, 19 Mar 2015 21:21:50 +0100 Original-Received: from localhost ([::1]:41147 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYgwv-00047U-Ps for ged-emacs-devel@m.gmane.org; Thu, 19 Mar 2015 16:21:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36705) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYgwr-00047K-KD for emacs-devel@gnu.org; Thu, 19 Mar 2015 16:21:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YYgwo-00058a-Ch for emacs-devel@gnu.org; Thu, 19 Mar 2015 16:21:45 -0400 Original-Received: from mail-we0-x22e.google.com ([2a00:1450:400c:c03::22e]:36802) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYgwo-00058U-4l for emacs-devel@gnu.org; Thu, 19 Mar 2015 16:21:42 -0400 Original-Received: by wetk59 with SMTP id k59so66628288wet.3 for ; Thu, 19 Mar 2015 13:21:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=8satAejIZgpG1YUzhIM0oH5uHliSw8IdLaQbTxte+3o=; b=AXolD5JYWGWmmVlqhikJe5c7mNphi4iN6fIytwERqpEKTmJmParCOZln4BmLB4D7dA cKkeSAvpC2rIkYxnMr3TlWGB97BwwsYsI8TpqYDnodrLNetPwyoW4bwGP7VUJCl/JvcO 2fuERIpOjVv2XMxwXGQIX+Pnii29/mmpzkCjfqaOaxS2WZhppq4Rp0eElMNBhkr4ifQL iDsdgfGFseEJ1nXejN/0hy+TfdD1JClauu0Xuwe4aRZs3AJ0JrmRxrwMkDYrNSwpJ6Xq eoAJdJECu5NC3oSvRKCZuGO8MrmEcQvq52PfirjeMhS/4sRj48n138ueZikPqophWkgh 7s6A== X-Received: by 10.180.39.33 with SMTP id m1mr19478174wik.26.1426796501423; Thu, 19 Mar 2015 13:21:41 -0700 (PDT) Original-Received: from lenovog410.lan ([59.89.16.249]) by mx.google.com with ESMTPSA id fu1sm96127wic.2.2015.03.19.13.21.38 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Mar 2015 13:21:40 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Thu, 19 Mar 2015 16:04:59 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c03::22e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:184027 Archived-At: Stefan Monnier writes: > FWIW, my suggestion to use call-interactively was just that: > a suggestion. I don't know this cperl's command well enough to know > what should ideally be done. It might even be that using delete-char > really is The Right Thing. Noone can know which is right before he/she > looks at the function in enough detail to know how&when the various > alternatives will behave differently (after which it's generally easy > to figure out which one is best). IIUC, the function is a cperl-mdoe local implementation of delete-backward-char (bound to for most fundamental modes). It works similarly to c-electric-backspace, and manages indentation and other language-specific stuff (I think). Thanks, I've pushed the patch. -- Vibhav Pant vibhavp@gmail.com