* bug#59961: [PATCH] ; * lib-src/emacsclient.c: Add parameters option information.
@ 2022-12-11 9:32 lu4nx
2022-12-11 10:26 ` Eli Zaretskii
0 siblings, 1 reply; 8+ messages in thread
From: lu4nx @ 2022-12-11 9:32 UTC (permalink / raw)
To: 59961; +Cc: lu4nx
---
lib-src/emacsclient.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c
index af488128ba..a0c5b84bc5 100644
--- a/lib-src/emacsclient.c
+++ b/lib-src/emacsclient.c
@@ -1669,10 +1669,10 @@ set_socket (bool no_exit_if_error)
/* No implicit or explicit socket, and no alternate editor. */
message (true, "%s: No socket or alternate editor. Please use:\n\n"
#ifdef SOCKETS_IN_FILE_SYSTEM
-"\t--socket-name\n"
+"\t--socket-name=SOCKET\n"
#endif
-"\t--server-file (or environment variable EMACS_SERVER_FILE)\n\
-\t--alternate-editor (or environment variable ALTERNATE_EDITOR)\n",
+"\t--server-file=SERVER (or environment variable EMACS_SERVER_FILE)\n\
+\t--alternate-editor=EDITOR (or environment variable ALTERNATE_EDITOR)\n",
progname);
exit (EXIT_FAILURE);
}
--
2.38.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* bug#59961: [PATCH] ; * lib-src/emacsclient.c: Add parameters option information.
2022-12-11 9:32 bug#59961: [PATCH] ; * lib-src/emacsclient.c: Add parameters option information lu4nx
@ 2022-12-11 10:26 ` Eli Zaretskii
2022-12-11 10:51 ` lux
0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2022-12-11 10:26 UTC (permalink / raw)
To: lu4nx; +Cc: 59961
> Cc: lu4nx <lx@shellcodes.org>
> From: lu4nx <lx@shellcodes.org>
> Date: Sun, 11 Dec 2022 17:32:32 +0800
>
> ---
> lib-src/emacsclient.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c
> index af488128ba..a0c5b84bc5 100644
> --- a/lib-src/emacsclient.c
> +++ b/lib-src/emacsclient.c
> @@ -1669,10 +1669,10 @@ set_socket (bool no_exit_if_error)
> /* No implicit or explicit socket, and no alternate editor. */
> message (true, "%s: No socket or alternate editor. Please use:\n\n"
> #ifdef SOCKETS_IN_FILE_SYSTEM
> -"\t--socket-name\n"
> +"\t--socket-name=SOCKET\n"
> #endif
> -"\t--server-file (or environment variable EMACS_SERVER_FILE)\n\
> -\t--alternate-editor (or environment variable ALTERNATE_EDITOR)\n",
> +"\t--server-file=SERVER (or environment variable EMACS_SERVER_FILE)\n\
> +\t--alternate-editor=EDITOR (or environment variable ALTERNATE_EDITOR)\n",
> progname);
> exit (EXIT_FAILURE);
> }
The --help message already says that. Why do we need that in an error
message as well?
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#59961: [PATCH] ; * lib-src/emacsclient.c: Add parameters option information.
2022-12-11 10:26 ` Eli Zaretskii
@ 2022-12-11 10:51 ` lux
2023-01-15 10:16 ` lux
0 siblings, 1 reply; 8+ messages in thread
From: lux @ 2022-12-11 10:51 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 59961
On Sun, 11 Dec 2022 12:26:16 +0200
Eli Zaretskii <eliz@gnu.org> wrote:
> The --help message already says that. Why do we need that in an error
> message as well?
Because when I forgot `server-start`, the information given was not
intuitive enough, and I needed to use `--help` again. And these three
parameters themselves need to provide value, so adding them will be
more intuitive. Thanks.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#59961: [PATCH] ; * lib-src/emacsclient.c: Add parameters option information.
2022-12-11 10:51 ` lux
@ 2023-01-15 10:16 ` lux
2023-01-15 10:40 ` Eli Zaretskii
0 siblings, 1 reply; 8+ messages in thread
From: lux @ 2023-01-15 10:16 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 59961
lux <lx@shellcodes.org> writes:
> On Sun, 11 Dec 2022 12:26:16 +0200
> Eli Zaretskii <eliz@gnu.org> wrote:
>
>> The --help message already says that. Why do we need that in an error
>> message as well?
>
> Because when I forgot `server-start`, the information given was not
> intuitive enough, and I needed to use `--help` again. And these three
> parameters themselves need to provide value, so adding them will be
> more intuitive. Thanks.
Hi, this question seems to be forgotten?
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#59961: [PATCH] ; * lib-src/emacsclient.c: Add parameters option information.
2023-01-15 10:16 ` lux
@ 2023-01-15 10:40 ` Eli Zaretskii
2024-01-10 22:35 ` Stefan Kangas
0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2023-01-15 10:40 UTC (permalink / raw)
To: lux; +Cc: 59961
> From: lux <lx@shellcodes.org>
> Cc: 59961@debbugs.gnu.org
> Date: Sun, 15 Jan 2023 18:16:43 +0800
>
> lux <lx@shellcodes.org> writes:
>
> > On Sun, 11 Dec 2022 12:26:16 +0200
> > Eli Zaretskii <eliz@gnu.org> wrote:
> >
> >> The --help message already says that. Why do we need that in an error
> >> message as well?
> >
> > Because when I forgot `server-start`, the information given was not
> > intuitive enough, and I needed to use `--help` again. And these three
> > parameters themselves need to provide value, so adding them will be
> > more intuitive. Thanks.
>
> Hi, this question seems to be forgotten?
No, not forgotten. I just don't think we should make this change, as
the text says which features/options to use, not how to use them.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#59961: [PATCH] ; * lib-src/emacsclient.c: Add parameters option information.
2023-01-15 10:40 ` Eli Zaretskii
@ 2024-01-10 22:35 ` Stefan Kangas
2024-01-11 10:28 ` Eli Zaretskii
0 siblings, 1 reply; 8+ messages in thread
From: Stefan Kangas @ 2024-01-10 22:35 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: lux, 59961
Eli Zaretskii <eliz@gnu.org> writes:
>> From: lux <lx@shellcodes.org>
>> Cc: 59961@debbugs.gnu.org
>> Date: Sun, 15 Jan 2023 18:16:43 +0800
>>
>> lux <lx@shellcodes.org> writes:
>>
>> > On Sun, 11 Dec 2022 12:26:16 +0200
>> > Eli Zaretskii <eliz@gnu.org> wrote:
>> >
>> >> The --help message already says that. Why do we need that in an error
>> >> message as well?
>> >
>> > Because when I forgot `server-start`, the information given was not
>> > intuitive enough, and I needed to use `--help` again. And these three
>> > parameters themselves need to provide value, so adding them will be
>> > more intuitive. Thanks.
>>
>> Hi, this question seems to be forgotten?
>
> No, not forgotten. I just don't think we should make this change, as
> the text says which features/options to use, not how to use them.
What's the drawback to being a bit more helpful though?
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#59961: [PATCH] ; * lib-src/emacsclient.c: Add parameters option information.
2024-01-10 22:35 ` Stefan Kangas
@ 2024-01-11 10:28 ` Eli Zaretskii
2024-01-11 20:21 ` Stefan Kangas
0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2024-01-11 10:28 UTC (permalink / raw)
To: Stefan Kangas; +Cc: lx, 59961
> From: Stefan Kangas <stefankangas@gmail.com>
> Date: Wed, 10 Jan 2024 14:35:00 -0800
> Cc: lux <lx@shellcodes.org>, 59961@debbugs.gnu.org
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> >> From: lux <lx@shellcodes.org>
> >> Cc: 59961@debbugs.gnu.org
> >> Date: Sun, 15 Jan 2023 18:16:43 +0800
> >>
> >> lux <lx@shellcodes.org> writes:
> >>
> >> > On Sun, 11 Dec 2022 12:26:16 +0200
> >> > Eli Zaretskii <eliz@gnu.org> wrote:
> >> >
> >> >> The --help message already says that. Why do we need that in an error
> >> >> message as well?
> >> >
> >> > Because when I forgot `server-start`, the information given was not
> >> > intuitive enough, and I needed to use `--help` again. And these three
> >> > parameters themselves need to provide value, so adding them will be
> >> > more intuitive. Thanks.
> >>
> >> Hi, this question seems to be forgotten?
> >
> > No, not forgotten. I just don't think we should make this change, as
> > the text says which features/options to use, not how to use them.
>
> What's the drawback to being a bit more helpful though?
The message becomes longer. And it only added the info to the
command-line options, but not to the corresponding environment
variables. Finally, the meaning of SOCKET and SERVER are never
explained.
So it simply sounded to me like a personal issue that is not
necessarily relevant to everyone else.
^ permalink raw reply [flat|nested] 8+ messages in thread
* bug#59961: [PATCH] ; * lib-src/emacsclient.c: Add parameters option information.
2024-01-11 10:28 ` Eli Zaretskii
@ 2024-01-11 20:21 ` Stefan Kangas
0 siblings, 0 replies; 8+ messages in thread
From: Stefan Kangas @ 2024-01-11 20:21 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: lx, 59961
tags 59961 + wontfix
close 59961
thanks
Eli Zaretskii <eliz@gnu.org> writes:
> The message becomes longer. And it only added the info to the
> command-line options, but not to the corresponding environment
> variables. Finally, the meaning of SOCKET and SERVER are never
> explained.
>
> So it simply sounded to me like a personal issue that is not
> necessarily relevant to everyone else.
Taking another look, I can see where you're coming from. Adding more
text doesn't add significant information in this case, and it does make
it longer.
I'm closing the bug as wontfix, with apologies to lux for not accepting
the patch. Thanks for sending it.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2024-01-11 20:21 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-11 9:32 bug#59961: [PATCH] ; * lib-src/emacsclient.c: Add parameters option information lu4nx
2022-12-11 10:26 ` Eli Zaretskii
2022-12-11 10:51 ` lux
2023-01-15 10:16 ` lux
2023-01-15 10:40 ` Eli Zaretskii
2024-01-10 22:35 ` Stefan Kangas
2024-01-11 10:28 ` Eli Zaretskii
2024-01-11 20:21 ` Stefan Kangas
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.