all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Martin Fischer <parozusa@web.de>
To: emacs-devel@gnu.org
Cc: emacs-pretest-bug@gnu.org
Subject: Re: 22.1.90; desktop-save throws (error "No buffer named <uniquified buffername>")
Date: Wed, 27 Feb 2008 13:43:22 +0100	[thread overview]
Message-ID: <92ve4aefit.fsf@nospam.net> (raw)
In-Reply-To: qkir12kqs0.fsf@nospam.net


  >>>>> Martin Fischer writes:
  > Date: Wed, 06 Feb 2008 17:12:31 +0100

8<--------------------------------------------------------------------

  >   ...\emacs-22.1.90\bin\runemacs.exe -Q
  > 
  >   Customize the variable uniquify-buffer-name-style to "reverse".
  > 
  >   List the directories c:\otto\ludwig and c:\karl\ludwig with dired.
  > 
  >   M-x toggle-debug-on-error RET
  > 
  >   M-x desktop-save RET
  > 
  >     Debugger entered--Lisp error: (error "No buffer named ludwig")
  >       desktop-save-buffer-p(nil "ludwig" dired-mode nil 185 (nil
  >       nil) t ("c:/otto/ludwig/") nil)
  >       apply(desktop-save-buffer-p (nil "ludwig" dired-mode nil 185
  >       (nil nil) t ("c:/otto/ludwig/") nil))
  >       desktop-save("~/")
  >       call-interactively(desktop-save)
  >       execute-extended-command(nil)
  >       call-interactively(execute-extended-command)
  > 
  >   M-x list-buffers RET
  > 
  >     .%* *Backtrace*            392  Debugger
  >      %  *Completions*          167  Completion List
  >      %  ludwig\karl\           184  Dired by name	  c:/karl/ludwig/
  >      %  ludwig\otto\           184  Dired by name	  c:/otto/ludwig/
  >         *scratch*                0  Lisp Interaction
  >       * *Messages*             957  Fundamental

8<--------------------------------------------------------------------

Hi,

thanks to Stefan and Juanma for solving this problem in the new
pretest version (emacs-22.1.91).

Nevertheless the solution opened up a new one:

  If I look at the root directory of a windows partition in dired mode
  (uniquify-managed), desktop-save creates an entry with an empty
  buffer name (uniquify-buffer-base-name seems to return that) in the
  .emacs.desktop file:

    (desktop-create-buffer 206
      nil
  --> ""
      'dired-mode
      nil
      118
      '(nil nil)
      t
      '("c:/")
      nil)

  This in turn prevents desktop-read to continue processing the rest of
  the .emacs.desktop file after issuing the message

    "setq: Empty string is invalid as a buffer name".

  .emacs:

    (custom-set-variables
      ;; custom-set-variables was added by Custom.
      ;; If you edit it by hand, you could mess it up, so be careful.
      ;; Your init file should contain only one such instance.
      ;; If there is more than one, they won't work right.
     '(desktop-save-mode t)
     '(uniquify-buffer-name-style (quote reverse) nil (uniquify)))
    (custom-set-faces
      ;; custom-set-faces was added by Custom.
      ;; If you edit it by hand, you could mess it up, so be careful.
      ;; Your init file should contain only one such instance.
      ;; If there is more than one, they won't work right.
     )

Sorry for being a nuisance.

Martin
-- 
parozusa at web dot de





  parent reply	other threads:[~2008-02-27 12:43 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-06 16:12 22.1.90; desktop-save throws (error "No buffer named <uniquified buffername>") Martin Fischer
2008-02-07  0:23 ` Juanma Barranquero
2008-02-08 16:59 ` Juanma Barranquero
2008-02-08 18:30   ` Stefan Monnier
2008-02-08 19:00     ` Juanma Barranquero
2008-02-08 21:17       ` Stefan Monnier
2008-02-12  0:44         ` Juanma Barranquero
2008-02-12  3:39           ` Stefan Monnier
2008-02-12  4:15             ` Juanma Barranquero
2008-02-27 12:43 ` Martin Fischer [this message]
2008-02-27 12:48   ` Juanma Barranquero
2008-02-27 16:28     ` Juanma Barranquero
2008-02-27 21:18       ` Stefan Monnier
2008-02-27 22:17         ` Juanma Barranquero
2008-02-27 22:37           ` Stefan Monnier
2008-02-27 23:00             ` Juanma Barranquero
2008-02-28  1:54               ` Stefan Monnier
2008-02-28  9:14                 ` Juanma Barranquero
2008-02-28 17:09                   ` Stefan Monnier
2008-02-28 13:27   ` Martin Fischer
2008-02-28 16:29     ` Juanma Barranquero
2008-02-29 10:07       ` Martin Fischer
2008-02-29 10:49         ` Juanma Barranquero
2008-02-29 13:17           ` Martin Fischer
2008-02-29 14:24             ` Juanma Barranquero
2008-02-29 14:48               ` Jason Rumney
2008-02-29 15:03                 ` Juanma Barranquero
2008-02-29 15:16                   ` Lennart Borgman (gmail)
2008-02-29 15:19                     ` Juanma Barranquero

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=92ve4aefit.fsf@nospam.net \
    --to=parozusa@web.de \
    --cc=emacs-devel@gnu.org \
    --cc=emacs-pretest-bug@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.