all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* ielm uses the cat program
@ 2003-01-30 12:19 Alex Schroeder
  2003-01-30 12:52 ` Juanma Barranquero
       [not found] ` <mailman.1181.1043931343.21513.bug-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 4+ messages in thread
From: Alex Schroeder @ 2003-01-30 12:19 UTC (permalink / raw)


ielm.el contains the following:

  ;; A dummy process to keep comint happy. It will never get any input
  (if (comint-check-proc (current-buffer)) nil
    (start-process "ielm" (current-buffer) "cat")

When I just installed Emacs 21 on a friend's windows machine without
any unix-like tools on it, M-x ielm would not work because he did not
have cat installed.  Can we replace the cat program with anything
else?

Alex.








This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.2.1 (i386-msvc-nt5.1.2600)
 of 2002-03-19 on buffy
configured using `configure --with-msvc (12.00)'
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: DES
  locale-coding-system: iso-latin-1
  default-enable-multibyte-characters: t

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:




Recent input:
<tab> / l i s <tab> l i <tab> <backspace> <backspace> 
e m <tab> a c s - l i <tab> i e l <tab> <backspace> 
<backspace> <tab> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> i e 
<tab> <return> C-s c a t C-s C-s C-s C-t C-t C-_ C-_ 
C-r C-r C-r C-s C-s C-s C-s C-s C-s C-s C-s C-s C-r 
C-r C-s C-s <down-mouse-1> <mouse-1> <double-down-mouse-1> 
<double-mouse-1> <down-mouse-1> <mouse-1> <down-mouse-1> 
<mouse-movement> <mouse-movement> <mouse-movement> 
<drag-mouse-1> <down-mouse-1> <mouse-1> <escape> x 
r e p o r t - e m a c s <tab> <return>

Recent messages:
Mark set
NOTICE: -irc.freenode.net- *** Your host is kbs21.informatik.uni-bremen.de[kbs21.informatik.uni-bremen.de/6667], running version dancer-ircd-1.0.31+maint8-fn6
Type M-x switch-to-buffer-other-window RET to restore the other window.  C-v to scroll the help.
Quit
call-interactively: End of buffer
Making completion list...
Mark saved where search started
Undo! [2 times]
Mark saved where search started
Loading emacsbug...done

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

* Re: ielm uses the cat program
  2003-01-30 12:19 ielm uses the cat program Alex Schroeder
@ 2003-01-30 12:52 ` Juanma Barranquero
       [not found] ` <mailman.1181.1043931343.21513.bug-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 4+ messages in thread
From: Juanma Barranquero @ 2003-01-30 12:52 UTC (permalink / raw)
  Cc: bug-gnu-emacs

On 30 Jan 2003 13:19:07 +0100, Alex Schroeder <a.schroeder@bsiag.com> wrote:

> ielm.el contains the following:
> 
>   ;; A dummy process to keep comint happy. It will never get any input
>   (if (comint-check-proc (current-buffer)) nil
>     (start-process "ielm" (current-buffer) "cat")
> 
> When I just installed Emacs 21 on a friend's windows machine without
> any unix-like tools on it, M-x ielm would not work because he did not
> have cat installed.  Can we replace the cat program with anything
> else?

On the trunk it's already fixed:

  ;; A dummy process to keep comint happy. It will never get any input
  (unless (comint-check-proc (current-buffer))
    ;; Was cat, but on non-Unix platforms that might not exist, so
    ;; use hexl instead, which is part of the Emacs distribution.
    (condition-case nil
	(start-process "ielm" (current-buffer) "hexl")
      (file-error (start-process "ielm" (current-buffer) "cat")))
    (process-kill-without-query (ielm-process))
    (goto-char (point-max))
    

I'd suggest doing the same for EMACS_21_1_RC.

                                                           /L/e/k/t/u

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

* Re: ielm uses the cat program
       [not found] ` <mailman.1181.1043931343.21513.bug-gnu-emacs@gnu.org>
@ 2003-01-30 19:25   ` Kevin Rodgers
  2003-01-30 23:15     ` Juanma Barranquero
  0 siblings, 1 reply; 4+ messages in thread
From: Kevin Rodgers @ 2003-01-30 19:25 UTC (permalink / raw)


Juanma Barranquero wrote:

> On the trunk it's already fixed:
> 
>   ;; A dummy process to keep comint happy. It will never get any input
>   (unless (comint-check-proc (current-buffer))
>     ;; Was cat, but on non-Unix platforms that might not exist, so
>     ;; use hexl instead, which is part of the Emacs distribution.
>     (condition-case nil
> 	(start-process "ielm" (current-buffer) "hexl")
>       (file-error (start-process "ielm" (current-buffer) "cat")))
>     (process-kill-without-query (ielm-process))
>     (goto-char (point-max))


If hexl is distributed with Emacs, how could start-process signal a file-error?

And if it doess, why is cat considered a viable fallback?

-- 
<a href="mailto:&lt;kevin.rodgers&#64;ihs.com&gt;">Kevin Rodgers</a>

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

* Re: ielm uses the cat program
  2003-01-30 19:25   ` Kevin Rodgers
@ 2003-01-30 23:15     ` Juanma Barranquero
  0 siblings, 0 replies; 4+ messages in thread
From: Juanma Barranquero @ 2003-01-30 23:15 UTC (permalink / raw)
  Cc: gnu-emacs-bug


On Thu, 30 Jan 2003 12:25:20 -0700
Kevin Rodgers <kevin.rodgers@ihs.com> wrote:

> If hexl is distributed with Emacs, how could start-process signal a file-error?

The user could delete hexl, if he doesn't use hexl-mode and doesn't want
to have the binary 'round. It's a long shot, but it is certainly posible.
Also, it could have failed building for some reason or other.

> And if it doess, why is cat considered a viable fallback?

I don't know, I didn't write the code, but I suppose the reasoning is
that one or the other are very likely to be around... and if they don't,
well, you'll get an error anyway.

-- 
Juanma Barranquero <lektu@terra.es>

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

end of thread, other threads:[~2003-01-30 23:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-30 12:19 ielm uses the cat program Alex Schroeder
2003-01-30 12:52 ` Juanma Barranquero
     [not found] ` <mailman.1181.1043931343.21513.bug-gnu-emacs@gnu.org>
2003-01-30 19:25   ` Kevin Rodgers
2003-01-30 23:15     ` Juanma Barranquero

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.