all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: Dmitry Gutov <dmitry@gutov.dev>
Cc: emacs-devel@gnu.org,  Po Lu <luangruo@yahoo.com>
Subject: Re: master 1aa83da46d1 2/2: ; * etc/NEWS: Rename read-process-output-fast here also.
Date: Tue, 11 Jun 2024 14:35:32 +0200	[thread overview]
Message-ID: <87cyonbqsr.fsf@gmail.com> (raw)
In-Reply-To: <fb40ff9a-6b82-4a68-8e2d-587e524555a3@gutov.dev> (Dmitry Gutov's message of "Tue, 11 Jun 2024 15:28:44 +0300")

>>>>> On Tue, 11 Jun 2024 15:28:44 +0300, Dmitry Gutov <dmitry@gutov.dev> said:

    Dmitry> On 11/06/2024 11:32, Robert Pluim wrote:
    >> Po Lu> -To undo the change, set 'read-process-output-fast' to nil.
    >> Po Lu> +To undo the change, set 'fast-read-process-output' to nil.
    >> I realise weʼve renamed this one already, but would it not make
    >> more
    >> sense for the variable to be called something starting with
    >> 'process-', such as 'process-fast-read-output'? Thatʼs in line with
    >> other variables affecting the processes process data, such as
    >> `process-adaptive-read-buffering'.

    Dmitry> The idea behind this name was to match one specific C function (which
    Dmitry> might be familiar to many who read Emacs's code), but I don't have a
    Dmitry> strong opinion either way. process-read-output-fast, maybe?

If I was being pedantic [1] Iʼd say it should be
'process-read-output-simple', the 'fast' bit is just the side effect
;-)

More seriously: the variable name should describe the semantics. What
underlying function is used as a result is not relevant to users of
the variable.

    Dmitry> Also note that both previous names have been already mentioned in
    Dmitry> bug#71452 comments, so I suppose the new one should be mentioned too,
    Dmitry> in order to avoid keeping an outdated source on that subject.

Investigation for me normally goes

'search bug# in commit log' -> git show <revision> 

so it doesnʼt really matter if the bug comments match the code.

Robert

Footnotes:
[1]  Moi, pedantic? Never.

-- 



  reply	other threads:[~2024-06-11 12:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <171808806905.4080.7963946550063771118@vcs2.savannah.gnu.org>
     [not found] ` <20240611064113.5E651C1FB57@vcs2.savannah.gnu.org>
2024-06-11  8:32   ` master 1aa83da46d1 2/2: ; * etc/NEWS: Rename read-process-output-fast here also Robert Pluim
2024-06-11  8:35     ` Po Lu
2024-06-11  8:36       ` Po Lu
2024-06-11 12:28     ` Dmitry Gutov
2024-06-11 12:35       ` Robert Pluim [this message]
2024-06-11 13:03         ` Dmitry Gutov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87cyonbqsr.fsf@gmail.com \
    --to=rpluim@gmail.com \
    --cc=dmitry@gutov.dev \
    --cc=emacs-devel@gnu.org \
    --cc=luangruo@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.