all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#8966: 24.0.50; Strange message in the echo area after creating a new file
@ 2011-06-30 16:12 Dani Moncayo
  2011-06-30 16:36 ` Dani Moncayo
  2011-06-30 18:25 ` Eli Zaretskii
  0 siblings, 2 replies; 3+ messages in thread
From: Dani Moncayo @ 2011-06-30 16:12 UTC (permalink / raw)
  To: 8966

Package: emacs
Version: 24.0.50

From "emacs -Q", eval (find-file "<path-to-new-file>"), where
<path-to-new-file> denotes the name (with path) of a nonexistent file
(which we are creating right now).

After doing that, the echo area shows "#<buffer <path-to-new-file>>",
but it should show "(New file)", as when you do the same interactively
with C-x C-f.


In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
 of 2011-06-27 on 3249CTO
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.5) --no-opt --cflags
-Ic:/build/include'

-- 
Dani Moncayo





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

* bug#8966: 24.0.50; Strange message in the echo area after creating a new file
  2011-06-30 16:12 bug#8966: 24.0.50; Strange message in the echo area after creating a new file Dani Moncayo
@ 2011-06-30 16:36 ` Dani Moncayo
  2011-06-30 18:25 ` Eli Zaretskii
  1 sibling, 0 replies; 3+ messages in thread
From: Dani Moncayo @ 2011-06-30 16:36 UTC (permalink / raw)
  To: 8966

I've just realized that the same strange message appears also when the
visited file already exists.  (If you do it interactively, the echo
area ends empty).

-- 
Dani Moncayo





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

* bug#8966: 24.0.50; Strange message in the echo area after creating a new file
  2011-06-30 16:12 bug#8966: 24.0.50; Strange message in the echo area after creating a new file Dani Moncayo
  2011-06-30 16:36 ` Dani Moncayo
@ 2011-06-30 18:25 ` Eli Zaretskii
  1 sibling, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2011-06-30 18:25 UTC (permalink / raw)
  To: Dani Moncayo; +Cc: 8966-done

> Date: Thu, 30 Jun 2011 18:12:51 +0200
> From: Dani Moncayo <dmoncayo@gmail.com>
> 
> >From "emacs -Q", eval (find-file "<path-to-new-file>"), where
> <path-to-new-file> denotes the name (with path) of a nonexistent file
> (which we are creating right now).
> 
> After doing that, the echo area shows "#<buffer <path-to-new-file>>",
> but it should show "(New file)", as when you do the same interactively
> with C-x C-f.

Not a bug.  Evaluating an expression causes its value to be displayed
in the echo area.  find-file returns the buffer it creates, and that's
what you see.  Check out the section in the ELisp manual about the
buffer object reading syntax.

The "(New file)" message gets overwritten by that, but you can still
find it in the *Messages* buffer.

I'm closing this bug.





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

end of thread, other threads:[~2011-06-30 18:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-30 16:12 bug#8966: 24.0.50; Strange message in the echo area after creating a new file Dani Moncayo
2011-06-30 16:36 ` Dani Moncayo
2011-06-30 18:25 ` Eli Zaretskii

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.