GNU bug report logs - #78749
30.1; M-| (`shell-command-on-region') does not respect `display-buffer-alist'

Previous Next

Package: emacs;

Reported by: Alcor <alcor <at> tilde.club>

Date: Tue, 10 Jun 2025 16:12:05 UTC

Severity: normal

Found in version 30.1

Done: Robert Pluim <rpluim <at> gmail.com>

To reply to this bug, email your comments to 78749 AT debbugs.gnu.org.
There is no need to reopen the bug first.

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#78749; Package emacs. (Tue, 10 Jun 2025 16:12:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Alcor <alcor <at> tilde.club>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 10 Jun 2025 16:12:06 GMT) Full text and rfc822 format available.

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

From: Alcor <alcor <at> tilde.club>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.1; M-| (`shell-command-on-region') does not respect
 `display-buffer-alist'
Date: Tue, 10 Jun 2025 18:10:45 +0200
Steps to reproduce:

Start Emacs using `emacs -Q' and evaluate the following Elisp code:

(defun shell-command-buffer-name-condition (name action)
  (or (equal name shell-command-buffer-name)
      (equal name shell-command-buffer-name-async)))
(add-to-list 'display-buffer-alist '(shell-command-buffer-name-condition
  display-buffer-no-window))

Afterwards, open any file, select a large region of text, then hit M-|
base64 RET.  Alternatively, you may use any other command that generates
a large amount of output in order to force `shell-command-on-region' to
use the *Shell Command Output* buffer instead of the echo area.

Expected behavior:

No new window is created, and the `display-buffer-alist' rule is
respected (the same behavior correctly exhibited with M-! and M-&).

Observed behavior:

A new window is created, and the `display-buffer-alist' rule is not respected.


In GNU Emacs 30.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41,
 cairo version 1.18.0) of 2025-06-06 built on lcy02-amd64-010
Repository revision: 27a24e6d9357dd3de2a2d219248b1ff85e06d8d3
Repository branch: master
System Description: Ubuntu 24.04.2 LTS

Configured using:
 'configure --prefix=/snap/emacs/current/usr --with-x-toolkit=gtk3
 --without-xaw3d --with-modules --with-cairo
 --with-native-compilation=aot --with-pgtk --with-xinput2
 --with-tree-sitter 'CFLAGS=-isystem
 /build/emacs/parts/emacs/install/usr/include -isystem
 /build/emacs/parts/emacs/install/usr/include/x86_64-linux-gnu -isystem
 /build/emacs/stage/usr/include -O2' 'CPPFLAGS=-isystem
 /build/emacs/parts/emacs/install/usr/include -isystem
 /build/emacs/parts/emacs/install/usr/include/x86_64-linux-gnu -isystem
 /build/emacs/stage/usr/include'
 'LDFLAGS=-L/build/emacs/parts/emacs/install/lib
 -L/build/emacs/parts/emacs/install/usr/lib
 -L/build/emacs/parts/emacs/install/lib/x86_64-linux-gnu
 -L/build/emacs/parts/emacs/install/usr/lib/x86_64-linux-gnu
 -L/build/emacs/stage/usr/lib''

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY
INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM GTK3 ZLIB

Important settings:
  value of $LANG: de_DE.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Messages

Minor modes in effect:
  which-key-mode: t
  winner-mode: t
  windmove-mode: t
  recentf-mode: t
  global-auto-revert-mode: t
  fido-vertical-mode: t
  icomplete-vertical-mode: t
  icomplete-mode: t
  fido-mode: t
  desktop-save-mode: t
  minibuffer-depth-indicate-mode: t
  delete-selection-mode: t
  repeat-mode: t
  override-global-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  minibuffer-regexp-mode: t
  buffer-read-only: t
  column-number-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime
smime gnutls dig gnus-sum shr pixel-fill kinsoku url-file svg dom
gnus-group gnus-undo gnus-start gnus-dbus dbus xml gnus-cloud nnimap
nnmail mail-source utf7 nnoo parse-time iso8601 gnus-spec gnus-int
gnus-range gnus-win hippie-exp comint ansi-osc ansi-color emacsbug
message yank-media puny dired dired-loaddefs rfc822 mml mml-sec epa
derived epg rfc6068 epg-config mm-decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils mailheader disp-table whitespace
display-line-numbers goto-addr thingatpt sendmail rfc2047 rfc2045
ietf-drums gnus nnheader gnus-util text-property-search time-date
mail-utils range mm-util mail-prsvr xdg doom-themes-ext-org
doom-themes-ext-visual-bell face-remap doom-nord-theme pcase doom-themes
doom-themes-base which-key cus-edit pp finder-inf use-package-ensure
winner ring windmove recentf tree-widget wid-edit autorevert filenotify
icomplete desktop frameset mb-depth delsel repeat cus-load edmacro
kmacro use-package-bind-key bind-key easy-mmode use-package-core
site-start comp comp-cstr cl-extra help-mode comp-common warnings rx
doom-themes-autoloads erc-irc-format-autoloads markdown-mode-autoloads
rainbow-delimiters-autoloads package browse-url url url-proxy
url-privacy url-expand url-methods url-history url-cookie
generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse
auth-source cl-seq eieio eieio-core cl-macs icons password-cache json
subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib
rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook
vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win
term/common-win touch-screen pgtk-dnd tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu
timer select scroll-bar mouse jit-lock font-lock syntax font-core
term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads dbusbind inotify
dynamic-setting system-font-setting font-render-setting cairo gtk pgtk
lcms2 multi-tty move-toolbar make-network-process native-compile emacs)

Memory information:
((conses 16 500111 22810) (symbols 48 25059 0)
 (strings 32 136321 3117) (string-bytes 1 3446568) (vectors 16 36929)
 (vector-slots 8 441561 14781) (floats 8 525 7600)
 (intervals 56 463 0) (buffers 992 9))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#78749; Package emacs. (Tue, 10 Jun 2025 18:40:10 GMT) Full text and rfc822 format available.

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

From: Alcor <alcor <at> tilde.club>
To: 78749 <at> debbugs.gnu.org
Subject: 30.1; M-| (`shell-command-on-region') does not respect
 `display-buffer-alist'
Date: Tue, 10 Jun 2025 20:39:42 +0200
I apologize for the noise. This was a mistake on my part - I wasn't
reading the documentation for `display-buffer-no-window' carefully and
missed the passage mentioning the allow-no-window symbol, which is
needed in this case.

Therefore, this is merely a user error/misconfiguration. This ticket can
be closed.




Reply sent to Robert Pluim <rpluim <at> gmail.com>:
You have taken responsibility. (Wed, 11 Jun 2025 09:09:01 GMT) Full text and rfc822 format available.

Notification sent to Alcor <alcor <at> tilde.club>:
bug acknowledged by developer. (Wed, 11 Jun 2025 09:09:01 GMT) Full text and rfc822 format available.

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

From: Robert Pluim <rpluim <at> gmail.com>
To: 78749-done <at> debbugs.gnu.org
Cc: Alcor <alcor <at> tilde.club>
Subject: Re: bug#78749: 30.1; M-| (`shell-command-on-region') does not
 respect `display-buffer-alist'
Date: Wed, 11 Jun 2025 11:08:34 +0200
>>>>> On Tue, 10 Jun 2025 20:39:42 +0200, Alcor via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org> said:

    Alcor> I apologize for the noise. This was a mistake on my part - I wasn't
    Alcor> reading the documentation for `display-buffer-no-window' carefully and
    Alcor> missed the passage mentioning the allow-no-window symbol, which is
    Alcor> needed in this case.

    Alcor> Therefore, this is merely a user error/misconfiguration. This ticket can
    Alcor> be closed.

Iʼm doing that with this message to 78749-done <at> debbugs.gnu.org, you
can do it yourself in future.

Robert
-- 




This bug report was last modified 3 days ago.

Previous Next


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