all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#10989: --eval block sent to server don't handle errors quite right
@ 2012-03-11  4:07 Le Wang
  2012-03-11 11:55 ` Andreas Schwab
  0 siblings, 1 reply; 8+ messages in thread
From: Le Wang @ 2012-03-11  4:07 UTC (permalink / raw)
  To: 10989

[-- Attachment #1: Type: text/plain, Size: 531 bytes --]

To wit:

~ [le-master]
% /Applications/Emacs.app/Contents/MacOS/Emacs --daemon -q -eval
"(server-start)"                                     Sun 12:00:40
("/Applications/Emacs.app/Contents/MacOS/Emacs" "-eval" "(server-start)")
Starting Emacs daemon.
Restarting server

~ [le-master]
% emacsclient --eval "(error
\"foo\")"
Sun 12:03:07
*ERROR*: foo

This is okay.

~ [le-master]
% emacsclient  --eval "(error
\"foo\")"
Sun 12:05:16
*ERROR*: foo

hangs I have to C-c to break out of it


So it only handles (signal 'error).

-- 
Le

[-- Attachment #2: Type: text/html, Size: 923 bytes --]

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

* bug#10989: --eval block sent to server don't handle errors quite right
  2012-03-11  4:07 bug#10989: --eval block sent to server don't handle errors quite right Le Wang
@ 2012-03-11 11:55 ` Andreas Schwab
  2012-03-11 13:24   ` Le Wang
  0 siblings, 1 reply; 8+ messages in thread
From: Andreas Schwab @ 2012-03-11 11:55 UTC (permalink / raw)
  To: Le Wang; +Cc: 10989

Does it work better now?

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





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

* bug#10989: --eval block sent to server don't handle errors quite right
  2012-03-11 11:55 ` Andreas Schwab
@ 2012-03-11 13:24   ` Le Wang
  2012-03-12 16:11     ` Le Wang
  0 siblings, 1 reply; 8+ messages in thread
From: Le Wang @ 2012-03-11 13:24 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: 10989

[-- Attachment #1: Type: text/plain, Size: 380 bytes --]

On Sun, Mar 11, 2012 at 7:55 PM, Andreas Schwab <schwab@linux-m68k.org>wrote:

> Does it work better now?


I recompiled with your latest commits, but still observe the same behaviour.


> Andreas.
>
> --
> Andreas Schwab, schwab@linux-m68k.org
> GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
> "And now for something completely different."
>



-- 
Le

[-- Attachment #2: Type: text/html, Size: 921 bytes --]

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

* bug#10989: --eval block sent to server don't handle errors quite right
  2012-03-11 13:24   ` Le Wang
@ 2012-03-12 16:11     ` Le Wang
  2012-03-12 17:30       ` Andreas Schwab
  2018-09-04 23:07       ` Noam Postavsky
  0 siblings, 2 replies; 8+ messages in thread
From: Le Wang @ 2012-03-12 16:11 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: 10989

[-- Attachment #1: Type: text/plain, Size: 627 bytes --]

On Sun, Mar 11, 2012 at 9:24 PM, Le Wang <l26wang@gmail.com> wrote:

I mis-edited the original bug report, it should be this:


~ [le-master]
% /Applications/Emacs.app/Contents/MacOS/Emacs --daemon -q -eval
"(server-start)"                                     Tue 00:09:31
("/Applications/Emacs.app/Contents/MacOS/Emacs" "-eval" "(server-start)")
Starting Emacs daemon.
Restarting server

~ [le-master]
% emacsclient --eval "(error
\"foo\")"
Tue 00:09:41
*ERROR*: foo

~ [le-master]
% emacsclient  --eval "(signal 'foo
nil)"
Tue 00:09:53
^C

hangs I have to C-c to break out of it


So it only handles (signal 'error).

-- 
Le

[-- Attachment #2: Type: text/html, Size: 1068 bytes --]

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

* bug#10989: --eval block sent to server don't handle errors quite right
  2012-03-12 16:11     ` Le Wang
@ 2012-03-12 17:30       ` Andreas Schwab
  2012-03-13 13:23         ` Le Wang
  2018-09-04 23:07       ` Noam Postavsky
  1 sibling, 1 reply; 8+ messages in thread
From: Andreas Schwab @ 2012-03-12 17:30 UTC (permalink / raw)
  To: Le Wang; +Cc: 10989

Le Wang <l26wang@gmail.com> writes:

> ~ [le-master]
> % emacsclient  --eval "(signal 'foo
> nil)"
> Tue 00:09:53
> ^C
>
> hangs I have to C-c to break out of it

Does it exit after 5 seconds?

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





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

* bug#10989: --eval block sent to server don't handle errors quite right
  2012-03-12 17:30       ` Andreas Schwab
@ 2012-03-13 13:23         ` Le Wang
  2012-03-13 13:48           ` Andreas Schwab
  0 siblings, 1 reply; 8+ messages in thread
From: Le Wang @ 2012-03-13 13:23 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: 10989

[-- Attachment #1: Type: text/plain, Size: 587 bytes --]

On Tue, Mar 13, 2012 at 1:30 AM, Andreas Schwab <schwab@linux-m68k.org>wrote:

> Le Wang <l26wang@gmail.com> writes:
>
> > ~ [le-master]
> > % emacsclient  --eval "(signal 'foo
> > nil)"
> > Tue 00:09:53
> > ^C
> >
> > hangs I have to C-c to break out of it
>
>
I just pulled and recompiled.  The bug is still there.  I have to C-c to
greak out of emacsclient.

Does it exit after 5 seconds?
>
> Andreas.
>
> --
> Andreas Schwab, schwab@linux-m68k.org
> GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
> "And now for something completely different."
>



-- 
Le

[-- Attachment #2: Type: text/html, Size: 1278 bytes --]

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

* bug#10989: --eval block sent to server don't handle errors quite right
  2012-03-13 13:23         ` Le Wang
@ 2012-03-13 13:48           ` Andreas Schwab
  0 siblings, 0 replies; 8+ messages in thread
From: Andreas Schwab @ 2012-03-13 13:48 UTC (permalink / raw)
  To: Le Wang; +Cc: 10989

Le Wang <l26wang@gmail.com> writes:

> I just pulled and recompiled.  The bug is still there.  I have to C-c to
> greak out of emacsclient.

Does it exit after 5 seconds?

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





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

* bug#10989: --eval block sent to server don't handle errors quite right
  2012-03-12 16:11     ` Le Wang
  2012-03-12 17:30       ` Andreas Schwab
@ 2018-09-04 23:07       ` Noam Postavsky
  1 sibling, 0 replies; 8+ messages in thread
From: Noam Postavsky @ 2018-09-04 23:07 UTC (permalink / raw)
  To: Le Wang; +Cc: Andreas Schwab, 10989

tags 10989 fixed
close 10989 27.1
quit

Le Wang <l26wang@gmail.com> writes:
>
> ~ [le-master]
> % emacsclient  --eval "(signal 'foo
> nil)"
> Tue 00:09:53
> ^C
>
> hangs I have to C-c to break out of it
>
>
> So it only handles (signal 'error).

Fixed in master (it required also fixing Bug#24618 first).

[1: c0f688808e]: 2018-09-04 18:50:29 -0400
  Handle non-error signals in emacsclient --eval (Bug#10989)
  https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=c0f688808eadb670ffa9d442891adb7bb70c4ade





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

end of thread, other threads:[~2018-09-04 23:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-11  4:07 bug#10989: --eval block sent to server don't handle errors quite right Le Wang
2012-03-11 11:55 ` Andreas Schwab
2012-03-11 13:24   ` Le Wang
2012-03-12 16:11     ` Le Wang
2012-03-12 17:30       ` Andreas Schwab
2012-03-13 13:23         ` Le Wang
2012-03-13 13:48           ` Andreas Schwab
2018-09-04 23:07       ` Noam Postavsky

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.