unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#68732: 29.1; shell-command-default-error-buffer is not interactive
@ 2024-01-26 11:04 Christopher Yeleighton
  2024-01-26 12:38 ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: Christopher Yeleighton @ 2024-01-26 11:04 UTC (permalink / raw)
  To: 68732



M-x set-variable RET shell-command-default-error-buffer RET

 > shell-command-default-error-buffer [No match]


In GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38,
cairo version 1.17.8)
Windowing system distributor 'The X.Org Foundation', version 11.0.12101010
System Description: Arch Linux

Configured using:
'configure --sysconfdir=/etc --prefix=/usr --libexecdir=/usr/lib
--with-tree-sitter --localstatedir=/var --with-cairo
--disable-build-details --with-harfbuzz --with-libsystemd
--with-modules --with-x-toolkit=gtk3 'CFLAGS=-march=x86-64
-mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2
-Wformat -Werror=format-security -fstack-clash-protection
-fcf-protection -g
-ffile-prefix-map=/build/emacs/src=/usr/src/debug/emacs -flto=auto'
'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto''

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

Important settings:
value of $LANG: pl_PL.UTF-8
locale-coding-system: utf-8-unix

Major mode: Help

Minor modes in effect:
shell-dirtrack-mode: t
outline-minor-mode: t
tooltip-mode: t
global-eldoc-mode: t
show-paren-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
isearch-fold-quotes-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
buffer-read-only: t
line-number-mode: t
indent-tabs-mode: t
transient-mark-mode: (only . t)
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message yank-media puny rfc822 mml
mml-sec epa derived epg rfc6068 epg-config gnus-util mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail
rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils browse-url url
url-proxy url-privacy url-expand url-methods url-history url-cookie
generate-lisp-file url-domsuf url-util url-parse url-vars mailcap
mule-util info tar-mode arc-mode archive-mode sh-script rx smie treesit
executable files-x conf-mode shell pcomplete comint ansi-osc ansi-color
ring dired-aux dired dired-loaddefs noutline outline icons two-column
kmacro debug backtrace find-func face-remap shortdoc
text-property-search cl-extra cl-print erc-lang erc-goodies erc iso8601
auth-source cl-seq eieio eieio-core cl-macs password-cache json map pp
format-spec erc-backend erc-networks byte-opt gv bytecomp byte-compile
erc-common erc-compat erc-loaddefs thingatpt help-fns radix-tree
jka-compr misearch multi-isearch time-date subr-x rfc1345 quail
help-mode cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren
electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel
term/x-win x-win term/common-win x-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 lcms2
dynamic-setting system-font-setting font-render-setting cairo
move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process
emacs)

Memory information:
((conses 16 246121 11289)
(symbols 48 12581 0)
(strings 32 50530 2914)
(string-bytes 1 1400440)
(vectors 16 34472)
(vector-slots 8 1105840 124415)
(floats 8 103 310)
(intervals 56 13789 279)
(buffers 984 35))






^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#68732: 29.1; shell-command-default-error-buffer is not interactive
  2024-01-26 11:04 bug#68732: 29.1; shell-command-default-error-buffer is not interactive Christopher Yeleighton
@ 2024-01-26 12:38 ` Eli Zaretskii
  2024-01-26 14:23   ` Krzysztof Żelechowski
  0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2024-01-26 12:38 UTC (permalink / raw)
  To: Christopher Yeleighton; +Cc: 68732

tags 68732 notabug
thanks

> Date: Fri, 26 Jan 2024 11:04:30 +0000
> From: Christopher Yeleighton <giecrilj@stegny.2a.pl>
> 
> 
> 
> M-x set-variable RET shell-command-default-error-buffer RET
> 
>  > shell-command-default-error-buffer [No match]

It is not intended to be customizable by users.  set-variable only
allows you to change values of customizable variables (a.k.a. "user
options").  Use "M-: (setq ...) RET" for the rest.

This is not a bug, but the intended behavior.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#68732: 29.1; shell-command-default-error-buffer is not interactive
  2024-01-26 12:38 ` Eli Zaretskii
@ 2024-01-26 14:23   ` Krzysztof Żelechowski
  2024-01-26 14:41     ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: Krzysztof Żelechowski @ 2024-01-26 14:23 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 68732

[-- Attachment #1: Type: text/html, Size: 2509 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#68732: 29.1; shell-command-default-error-buffer is not interactive
  2024-01-26 14:23   ` Krzysztof Żelechowski
@ 2024-01-26 14:41     ` Eli Zaretskii
  2024-01-26 15:16       ` Krzysztof Żelechowski
  0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2024-01-26 14:41 UTC (permalink / raw)
  To: Krzysztof Żelechowski; +Cc: 68732

> Date: Fri, 26 Jan 2024 15:23:13 +0100
> From: Krzysztof Żelechowski <giecrilj@stegny.2a.pl>
> Cc: 68732@debbugs.gnu.org
> 
> Suppose I am not a software developer but a system administrator.  I prefer not to use the scratch
> buffer or M-:.  

Then you should consider asking the software developer to write a
command for you which modifies the variable and then invokes
shell-command.

>    If the variable shell-command-default-error-buffer is not interactive by design, how am I supposed to
> get a clean output from M-! grub-mkconfig RET, for example?

By writing a new command which does that and is otherwise a thin
wrapper around shell-command, for example.

> The design looks inconsistent in that the variable affects only interactive behaviour while being
> non-interactive itself.  What is the use case for it?  Who is supposed to modify its value?

Variables that are not user options are supposed to be modified by
Lisp programs.

(But I also fail to see a problem with using setq by users.  It isn't
like that is forbidden or "not kosher" in some way.  We even show
examples of that in the user manual.  So why is this such a big
problem?)





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#68732: 29.1; shell-command-default-error-buffer is not interactive
  2024-01-26 14:41     ` Eli Zaretskii
@ 2024-01-26 15:16       ` Krzysztof Żelechowski
  2024-01-26 16:19         ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: Krzysztof Żelechowski @ 2024-01-26 15:16 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 68732

[-- Attachment #1: Type: text/html, Size: 2607 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#68732: 29.1; shell-command-default-error-buffer is not interactive
  2024-01-26 15:16       ` Krzysztof Żelechowski
@ 2024-01-26 16:19         ` Eli Zaretskii
  2024-01-26 17:14           ` Krzysztof Żelechowski
  0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2024-01-26 16:19 UTC (permalink / raw)
  To: Krzysztof Żelechowski; +Cc: 68732

> Date: Fri, 26 Jan 2024 16:16:21 +0100
> From: Krzysztof Żelechowski <giecrilj@stegny.2a.pl>
> Cc: 68732@debbugs.gnu.org
> 
> The point is, the function shell-command does not use this variable because it only affects interactive
> use.  So indeed, writing a command that invokes shell-command is an option, but it does make a use
> case for the existence of this variable.
> 
> My POV is splitting standard output and standard error (maybe on demand) is a basic usability
> requirement and should not require writing custom commands.
> 
> The problem is not with using setq by users, it is with getting non-developers to write and execute
> Lisp scripts to accomplish basic tasks, including scripts that just invoke setq.  The latter obviously is
> not a problem when you are a scientist, but I imagine that the front end would be much cleaner if
> operable cleanly without scripting (again, this concept limited to basic tasks obviously).

We cannot possibly make every variable a defcustom, just because
someone somewhere will need to set a variable while not being a
programmer, can we?

So, while I understand your motivation, it still doesn't convince me
to make the variable a user option.  Splitting stdout and stderr might
be a basic usability requirement in your eyes, but IME users rarely
send stderr to a separate place, which is why this variable is not a
defcustom.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#68732: 29.1; shell-command-default-error-buffer is not interactive
  2024-01-26 16:19         ` Eli Zaretskii
@ 2024-01-26 17:14           ` Krzysztof Żelechowski
  0 siblings, 0 replies; 7+ messages in thread
From: Krzysztof Żelechowski @ 2024-01-26 17:14 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 68732

[-- Attachment #1: Type: text/html, Size: 1261 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-01-26 17:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-26 11:04 bug#68732: 29.1; shell-command-default-error-buffer is not interactive Christopher Yeleighton
2024-01-26 12:38 ` Eli Zaretskii
2024-01-26 14:23   ` Krzysztof Żelechowski
2024-01-26 14:41     ` Eli Zaretskii
2024-01-26 15:16       ` Krzysztof Żelechowski
2024-01-26 16:19         ` Eli Zaretskii
2024-01-26 17:14           ` Krzysztof Żelechowski

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).