GNU bug report logs - #32945
[PATCH] Prefer delete-char

Previous Next

Package: emacs;

Reported by: Alex Branham <alex.branham <at> gmail.com>

Date: Fri, 5 Oct 2018 14:12:02 UTC

Severity: normal

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 32945 in the body.
You can then email your comments to 32945 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#32945; Package emacs. (Fri, 05 Oct 2018 14:12:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Alex Branham <alex.branham <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 05 Oct 2018 14:12:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Alex Branham <alex.branham <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] Prefer delete-char
Date: Fri, 05 Oct 2018 09:11:05 -0500
[Message part 1 (text/plain, inline)]
Hi -

This is a trivial change that silences the byte compiler warning in
lisp/eshell/em-rebind.el.

Thanks for all your work on Emacs!
Alex

From 40563de898d99a81d05d3d1585f753e20f815b60 Mon Sep 17 00:00:00 2001
From: Alex Branham <alex.branham <at> gmail.com>
Date: Fri, 5 Oct 2018 09:07:13 -0500
Subject: [PATCH] ; lisp/eshell/em-rebind.el (eshell-delete-backward-char):
 Prefer delete-char

---
 lisp/eshell/em-rebind.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/eshell/em-rebind.el b/lisp/eshell/em-rebind.el
index e6f04b68e0..064dcc762d 100644
--- a/lisp/eshell/em-rebind.el
+++ b/lisp/eshell/em-rebind.el
@@ -223,7 +223,7 @@ lock it at that."
   (interactive "P")
   (let ((count (prefix-numeric-value n)))
     (if (eshell-point-within-input-p (- (point) count))
-	(delete-backward-char count n)
+	(delete-char (- count) n)
       (beep))))

 (defun eshell-delchar-or-maybe-eof (arg)
--
2.19.0
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#32945; Package emacs. (Fri, 12 Oct 2018 08:41:01 GMT) Full text and rfc822 format available.

Message #8 received at 32945 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Alex Branham <alex.branham <at> gmail.com>
Cc: 32945 <at> debbugs.gnu.org
Subject: Re: bug#32945: [PATCH] Prefer delete-char
Date: Fri, 12 Oct 2018 11:40:39 +0300
> From: Alex Branham <alex.branham <at> gmail.com>
> Date: Fri, 05 Oct 2018 09:11:05 -0500
> 
> This is a trivial change that silences the byte compiler warning in
> lisp/eshell/em-rebind.el.

Thanks, pushed to the emacs-26 branch.




bug closed, send any further explanations to 32945 <at> debbugs.gnu.org and Alex Branham <alex.branham <at> gmail.com> Request was from Eli Zaretskii <eliz <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 12 Oct 2018 08:42:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#32945; Package emacs. (Mon, 15 Oct 2018 20:08:01 GMT) Full text and rfc822 format available.

Message #13 received at 32945 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Alex Branham <alex.branham <at> gmail.com>
Cc: 32945 <at> debbugs.gnu.org
Subject: Re: bug#32945: [PATCH] Prefer delete-char
Date: Mon, 15 Oct 2018 16:07:19 -0400
Alex Branham wrote:

> This is a trivial change that silences the byte compiler warning in
> lisp/eshell/em-rebind.el.

Since eshell-delete-backward-char acts as a replacement for
delete-backward-char in eshell, it's never been obvious to me whether
such a change is the right thing to do.





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 13 Nov 2018 12:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 213 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.