unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: master a154f0aa73b: shell-command-mode: New major mode for async-shell-command
       [not found] ` <20240601150416.5D061C5400F@vcs2.savannah.gnu.org>
@ 2024-09-12 11:58   ` Robert Pluim
  2024-09-12 22:25     ` Dmitry Gutov
  0 siblings, 1 reply; 3+ messages in thread
From: Robert Pluim @ 2024-09-12 11:58 UTC (permalink / raw)
  To: emacs-devel; +Cc: Dmitry Gutov

>>>>> On Sat,  1 Jun 2024 11:04:16 -0400 (EDT), Dmitry Gutov <dgutov@yandex.ru> said:

    Dmitry> branch: master
    Dmitry> commit a154f0aa73bceeaaeefcd243e7db9d09e3f450d7
    Dmitry> Author: Dmitry Gutov <dmitry@gutov.dev>
    Dmitry> Commit: Dmitry Gutov <dmitry@gutov.dev>

    Dmitry>     shell-command-mode: New major mode for async-shell-command
    
    Dmitry>     * etc/NEWS: Mention the additions.
    
    Dmitry>     * lisp/shell.el (shell-command-mode): New major mode (bug#71049).
    
    Dmitry>     * lisp/simple.el (async-shell-command-mode):
    Dmitry>     New variable, with default value pointing to that mode.
    Dmitry>     (shell-command): Refer to it here.
    Dmitry>     (async-shell-command): Update docstring.
    
    Dmitry>     * lisp/net/tramp.el (tramp-handle-shell-command):
    Dmitry>     Use the new variable when available.
    Dmitry> ---
 
    Dmitry> +(defvar async-shell-command-mode 'shell-command-mode
    Dmitry> +  "Major mode to use for the output of asynchronous `shell-command'.")
    Dmitry> +

Itʼs probably too late to change for emacs-30, but any particular
reason this is a `defvar' instead of a `defcustom'?

Robert
-- 



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

* Re: master a154f0aa73b: shell-command-mode: New major mode for async-shell-command
  2024-09-12 11:58   ` master a154f0aa73b: shell-command-mode: New major mode for async-shell-command Robert Pluim
@ 2024-09-12 22:25     ` Dmitry Gutov
  2024-09-13  7:31       ` Robert Pluim
  0 siblings, 1 reply; 3+ messages in thread
From: Dmitry Gutov @ 2024-09-12 22:25 UTC (permalink / raw)
  To: Robert Pluim, emacs-devel

On 12/09/2024 14:58, Robert Pluim wrote:
> Itʼs probably too late to change for emacs-30, but any particular
> reason this is a `defvar' instead of a `defcustom'?

A user option implies validity of different options, but as you can see 
the new major mode is there to fix a bug (a long-standing one, I guess), 
and the defvar is for any users who feel their workflows break because 
of that.

Not sure who would be the target audience, though.



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

* Re: master a154f0aa73b: shell-command-mode: New major mode for async-shell-command
  2024-09-12 22:25     ` Dmitry Gutov
@ 2024-09-13  7:31       ` Robert Pluim
  0 siblings, 0 replies; 3+ messages in thread
From: Robert Pluim @ 2024-09-13  7:31 UTC (permalink / raw)
  To: Dmitry Gutov; +Cc: emacs-devel

>>>>> On Fri, 13 Sep 2024 01:25:01 +0300, Dmitry Gutov <dmitry@gutov.dev> said:

    Dmitry> On 12/09/2024 14:58, Robert Pluim wrote:
    >> Itʼs probably too late to change for emacs-30, but any particular
    >> reason this is a `defvar' instead of a `defcustom'?

    Dmitry> A user option implies validity of different options, but as you can
    Dmitry> see the new major mode is there to fix a bug (a long-standing one, I
    Dmitry> guess), and the defvar is for any users who feel their workflows break
    Dmitry> because of that.

Well, the `defvar' also implies that some people might prefer the old
behaviour ☺️. But those people almost certainly know how to wield `setq'.

    Dmitry> Not sure who would be the target audience, though.

If you code it they will come.

Robert
-- 



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

end of thread, other threads:[~2024-09-13  7:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <171725425592.12207.12803647035618659064@vcs2.savannah.gnu.org>
     [not found] ` <20240601150416.5D061C5400F@vcs2.savannah.gnu.org>
2024-09-12 11:58   ` master a154f0aa73b: shell-command-mode: New major mode for async-shell-command Robert Pluim
2024-09-12 22:25     ` Dmitry Gutov
2024-09-13  7:31       ` Robert Pluim

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).