GNU bug report logs - #78262
30.1; comint-delchar-or-maybe-eof doesn't respect delete-active-region

Previous Next

Package: emacs;

Reported by: Sebastián Monía <sebastian <at> sebasmonia.com>

Date: Mon, 5 May 2025 14:45:02 UTC

Severity: normal

Merged with 73527

Found in versions 30.1, 30.0.90

Fixed in version 31.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Juri Linkov <juri <at> linkov.net>, Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: sebastian <at> sebasmonia.com, 78262 <at> debbugs.gnu.org
Subject: bug#78262: 30.1; comint-delchar-or-maybe-eof doesn't respect delete-active-region
Date: Sat, 10 May 2025 14:15:30 +0300
> Cc: 78262 <at> debbugs.gnu.org
> From: Juri Linkov <juri <at> linkov.net>
> Date: Fri, 09 May 2025 09:52:02 +0300
> 
> > Comint and its derived modes override C-d 'delete-forward-char' with
> > 'comint-delchar-or-maybe-eof'.
> 
> Does the solution proposed by Augusto in bug#73527 fix your use case?
> 
> diff --git a/lisp/comint.el b/lisp/comint.el
> index 188989ff8a4..2189b10e826 100644
> --- a/lisp/comint.el
> +++ b/lisp/comint.el
> @@ -2796,7 +2796,7 @@ comint-delchar-or-maybe-eof
>    (let ((proc (get-buffer-process (current-buffer))))
>      (if (and (eobp) proc (= (point) (marker-position (process-mark proc))))
>  	(comint-send-eof)
> -      (delete-char arg))))
> +      (funcall-interactively (keymap-lookup global-map "C-d") arg))))
>  
>  (defun comint-send-eof ()
>    "Send an EOF to the current buffer's process."

This assumes that everyone will want the same command bound to C-d
globally to be invoked by C-d in comint-mode.  But is that assumption
necessarily true?

Stefan, WDYT?




This bug report was last modified 7 days ago.

Previous Next


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