From: Richard Stallman <rms@gnu.org>
To: emacs-devel@gnu.org
Subject: [herring@lanl.gov: Re: desktop.el ugliness]
Date: Sat, 21 Jul 2007 00:51:27 -0400 [thread overview]
Message-ID: <E1IC6wB-0000XB-GJ@fencepost.gnu.org> (raw)
[I sent this message a week ago but did not get a response.]
Would someone please install this in Emacs 22 and the trunk,
then ack?
------- Start of forwarded message -------
X-Spam-Status: No, score=-0.0 required=5.0 tests=SPF_PASS autolearn=failed
version=3.1.0
In-Reply-To: <E1I968r-0002z2-AO@fencepost.gnu.org>
Date: Thu, 12 Jul 2007 15:29:07 -0700 (PDT)
Subject: Re: desktop.el ugliness
From: "Davis Herring" <herring@lanl.gov>
To: "Richard Stallman" <rms@gnu.org>
Cc: emacs-devel@gnu.org
Reply-To: herring@lanl.gov
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
> desktop-buffer-info refers to the free variable dirname, which comes
> from desktop-save. Would someone please clean that up?
> Then please ack.
Sorry; `desktop-buffer-info' was once a lambda in `desktop-save', and I
didn't think to separate it cleanly. Here's a trivial patch which also
corrects the handling of relative names in `desktop-save'.
Davis
2007-07-12 Davis Herring <herring@lanl.gov>
* desktop.el (desktop-buffer-info, desktop-save): Use
`desktop-dirname' instead of `dirname'.
*** desktop.el 12 Jul 2007 16:23:06 -0600 1.112
- --- desktop.el 12 Jul 2007 16:25:35 -0600
***************
*** 652,658 ****
(set-buffer buffer)
(list
;; basic information
! (desktop-file-name (buffer-file-name) dirname)
(buffer-name)
major-mode
;; minor modes
- --- 652,658 ----
(set-buffer buffer)
(list
;; basic information
! (desktop-file-name (buffer-file-name) desktop-dirname)
(buffer-name)
major-mode
;; minor modes
***************
*** 673,679 ****
buffer-read-only
;; auxiliary information
(when (functionp desktop-save-buffer)
! (funcall desktop-save-buffer dirname))
;; local variables
(let ((locals desktop-locals-to-save)
(loclist (buffer-local-variables))
- --- 673,679 ----
buffer-read-only
;; auxiliary information
(when (functionp desktop-save-buffer)
! (funcall desktop-save-buffer desktop-dirname))
;; local variables
(let ((locals desktop-locals-to-save)
(loclist (buffer-local-variables))
***************
*** 896,902 ****
(insert "\n " (desktop-value-to-string e)))
(insert ")\n\n")))
! (setq default-directory dirname)
(let ((coding-system-for-write 'emacs-mule))
(write-region (point-min) (point-max) (desktop-full-file-name) nil
'nomessage))
;; We remember when it was modified (which is presumably just now).
- --- 896,902 ----
(insert "\n " (desktop-value-to-string e)))
(insert ")\n\n")))
! (setq default-directory desktop-dirname)
(let ((coding-system-for-write 'emacs-mule))
(write-region (point-min) (point-max) (desktop-full-file-name) nil
'nomessage))
;; We remember when it was modified (which is presumably just now).
------- End of forwarded message -------
next reply other threads:[~2007-07-21 4:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-21 4:51 Richard Stallman [this message]
2007-07-26 13:18 ` [herring@lanl.gov: Re: desktop.el ugliness] Juanma Barranquero
-- strict thread matches above, loose matches on Subject: below --
2007-07-13 18:38 Richard Stallman
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=E1IC6wB-0000XB-GJ@fencepost.gnu.org \
--to=rms@gnu.org \
--cc=emacs-devel@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.