From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Martin Fischer Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 22.1.90; desktop-save throws (error "No buffer named ") Date: Wed, 27 Feb 2008 13:43:22 +0100 Message-ID: <92ve4aefit.fsf@nospam.net> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1204116281 20293 80.91.229.12 (27 Feb 2008 12:44:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Feb 2008 12:44:41 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 27 13:45:07 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JULeX-0006kH-KD for ged-emacs-devel@m.gmane.org; Wed, 27 Feb 2008 13:44:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JULe1-0006Uw-SY for ged-emacs-devel@m.gmane.org; Wed, 27 Feb 2008 07:44:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JULdt-0006Q3-2X for emacs-devel@gnu.org; Wed, 27 Feb 2008 07:44:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JULdr-0006NA-2T for emacs-devel@gnu.org; Wed, 27 Feb 2008 07:44:11 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JULdq-0006Mh-Hr for emacs-devel@gnu.org; Wed, 27 Feb 2008 07:44:10 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JULdp-0006nN-NE for emacs-devel@gnu.org; Wed, 27 Feb 2008 07:44:09 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JULdi-0007WD-Ig for emacs-devel@gnu.org; Wed, 27 Feb 2008 12:44:02 +0000 Original-Received: from port-83-236-239-162.static.qsc.de ([83.236.239.162]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Feb 2008 12:44:02 +0000 Original-Received: from parozusa by port-83-236-239-162.static.qsc.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 Feb 2008 12:44:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 86 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: port-83-236-239-162.static.qsc.de X-Shakespeare: "See, how she leans her cheek upon her hand! O, that I were a glove upon that hand, That I might touch that cheek!" -- Romeo and Juliet, II.2.23-5 User-Agent: Emacs Gnus Cancel-Lock: sha1:RToDHQSdIjQpASFxtb7KJWQaln0= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:90598 gmane.emacs.pretest.bugs:21309 Archived-At: >>>>> 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