desktop-read fails if desktop-file-name-format is set to "local"

Bug #599597 reported by Demitri Morgan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
emacs23 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: emacs23

(Encountered in Emacs from package 23.1+1-4ubuntu7, Ubuntu 10.04 LTS, )

Buffers won't restore during desktop-read if the variable desktop-file-name-format was set to local when the the desktop file was saved.

To replicate:
mkdir testdir
mkdir testsubdir
touch testdir/testsubdir/testfile
emacs
<in emacs> M-x desktop-change-directory testdir/testsubdir/
<in emacs> C-f testdir/testsubdir/testfile
<in emacs> M-x set-variable desktop-file-name-format local
<in emacs> M-x desktop-save-in-desktop-dir testdir/testsubdir/
<in emacs> C-x C-c
emacs
<in emacs> M-x desktop-change-directory testdir/testsubdir/

The buffer tied to testdir/testsubdir/testfile will fail to restore, in spite of its path relative to the desktop file being correct in the desktop file.

I found that the buffers listed in the desktop file will restore if I do the following:
1. M-x cd testdir/testsubdir
2. M-x desktop-change-directory testdir/testsubdir (buffers will fail to restore)
3. Repeat 1 & 2 (buffers will restore successfully this time around)
But why should this be necessary? Shouldn't they restore if the active directory is the same as the desktop directory in the first place?

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: emacs (not installed)
ProcVersionSignature: Ubuntu 2.6.32-22.35-generic-pae 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic-pae i686
Architecture: i386
Date: Mon Jun 28 15:21:03 2010
InstallationMedia: Ubuntu-Netbook-Remix 9.10 "Karmic Koala" - Release i386 (20091028.4)
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: emacs23

Mathew Hodson (mhodson)
tags: removed: desktop-file-name-format desktop-restore desktop-save desktop.el emacs emacs23
affects: emacs → ubuntu
no longer affects: ubuntu
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.