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: Fri, 29 Feb 2008 11:07:27 +0100 Message-ID: References: <92ve4aefit.fsf@nospam.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1204280506 12649 80.91.229.12 (29 Feb 2008 10:21:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Feb 2008 10:21:46 +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 Fri Feb 29 11:22:12 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 1JV2NP-00084T-PX for ged-emacs-devel@m.gmane.org; Fri, 29 Feb 2008 11:22:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JV2Ms-0007JG-A4 for ged-emacs-devel@m.gmane.org; Fri, 29 Feb 2008 05:21:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JV29V-0003HT-Qp for emacs-devel@gnu.org; Fri, 29 Feb 2008 05:07:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JV29T-0003FF-M7 for emacs-devel@gnu.org; Fri, 29 Feb 2008 05:07:41 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JV29T-0003F8-DC for emacs-devel@gnu.org; Fri, 29 Feb 2008 05:07:39 -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 1JV29S-0000Xh-Ec for emacs-devel@gnu.org; Fri, 29 Feb 2008 05:07:39 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JV29O-0003we-Nx for emacs-devel@gnu.org; Fri, 29 Feb 2008 10:07:34 +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 ; Fri, 29 Feb 2008 10:07:34 +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 ; Fri, 29 Feb 2008 10:07:34 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 89 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: port-83-236-239-162.static.qsc.de X-Shakespeare: "The first thing we do, let's kill all the lawyers." -- King Henry VI, Part 2, IV.2 User-Agent: Emacs Gnus Cancel-Lock: sha1:O68HV5Nr1ixQoxQbIa3p0lai4v4= 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:90855 gmane.emacs.pretest.bugs:21351 Archived-At: >>>>> Juanma Barranquero writes: > Date: Thu, 28 Feb 2008 17:29:15 +0100 > > On Thu, Feb 28, 2008 at 2:27 PM, Martin Fischer wrote: > >> I wasn't thorough enough ;-), it isn't a new problem. >> >> It already exists in >> >> GNU Emacs 22.1.50.1 (i386-mingw-nt5.1.2600) of 2007-08-18 on TPAD >> >> where desktop doesn't depend on uniquify. > > Could you elaborate, please? > > Juanma Hi, being thorough again: - Customize uniquify-buffer-name-style. (custom-set-variables '(uniquify-buffer-name-style (quote reverse) nil (uniquify))) - Create buffers for some file and a root directory and save the configuration. M-x find-file RET c:/AUTOEXEC.BAT RET M-x dired RET c:/ RET M-x desktop-save RET c:/ RET - look at .emacs.desktop: (desktop-create-buffer 206 nil --> "" 'dired-mode nil 118 '(nil nil) t '("c:/") nil) (desktop-create-buffer 206 "c:/AUTOEXEC.BAT" "AUTOEXEC.BAT" 'fundamental-mode nil 1 '(nil nil) nil nil nil) - if you remove both buffers and try to restore them by reading .emacs.desktop with desktop-read, you get "setq: Empty string is invalid as a buffer name" in the *Message* buffer. Nonetheless the dired buffer is created correctly, but not the other one, which means processing of .emacs.desktop stopped. - Here is the backtrace after toggle-debug-on-error: Debugger entered--Lisp error: (error "Empty string is invalid as a buffer name") ad-Orig-rename-buffer("" t) (setq ad-return-value (ad-Orig-rename-buffer newname unique)) (let (ad-return-value) (setq ad-return-value (ad-Orig-rename-buffer newname unique)) (uniquify-maybe-rerationalize-w/o-cb) (if (null unique) (setq uniquify-managed nil) (when uniquify-buffer-name-style ... ...)) ad-return-value) rename-buffer("" t) desktop-create-buffer(206 nil "" dired-mode nil 118 (nil nil) t ("c:/") nil) eval-buffer(# nil "c:/Dokumente und Einstellungen/aemf/empty/.emacs.desktop" nil t) ; Reading at buffer position 690 load-with-code-conversion("c:/Dokumente und Einstellungen/aemf/empty/.emacs.desktop" "c:/Dokumente und Einstellungen/aemf/empty/.emacs.desktop" t t) load("c:/Dokumente und Einstellungen/aemf/empty/.emacs.desktop" t t t) desktop-read() call-interactively(desktop-read) execute-extended-command(nil) call-interactively(execute-extended-command) Cheers Martin -- parozusa at web dot de