emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IELM prompt


From: Juanma Barranquero
Subject: Re: IELM prompt
Date: Sun, 25 Apr 2004 01:31:05 +0200

On Fri, 23 Apr 2004 17:59:11 -0500 (CDT), Luc Teirlinck <address@hidden> wrote:

> The ":run" may not provide that
> much information, but, on the other hand, it is not completely
> redundant.

[snip]

> People can
> customize the modeline any way they want, or even elect to have no
> modeline.

You're right on both accounts.

What about this much less intrusive patch, then?

                                                           /L/e/k/t/u


Index: ielm.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/ielm.el,v
retrieving revision 1.37
diff -u -2 -r1.37 ielm.el
--- ielm.el     23 Apr 2004 21:33:38 -0000      1.37
+++ ielm.el     24 Apr 2004 23:26:15 -0000
@@ -415,6 +415,6 @@
 is preserved between successive evaluations.  In this way, expressions
 may be evaluated in a different buffer than the *ielm* buffer.
-Display the name of the working buffer with \\[ielm-print-working-buffer],
-or the buffer itself with \\[ielm-display-working-buffer].
+By default, its name is shown on the mode line; you can always display
+it with \\[ielm-print-working-buffer], or the buffer itself with 
\\[ielm-display-working-buffer].
 
 During evaluations, the values of the variables `*', `**', and `***'
@@ -453,4 +453,5 @@
   (setq major-mode 'inferior-emacs-lisp-mode)
   (setq mode-name "IELM")
+  (setq mode-line-process '(":%s on " (:eval (buffer-name 
ielm-working-buffer))))
   (use-local-map ielm-map)
   (set-syntax-table emacs-lisp-mode-syntax-table)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]