GNU bug report logs -
#17155
24.3; ELPA files should not appear in recentf
Previous Next
Reported by: Jonathan H <pythonnut <at> gmail.com>
Date: Mon, 31 Mar 2014 22:45:02 UTC
Severity: minor
Merged with 17821
Found in version 24.3
Done: Dmitry Gutov <dgutov <at> yandex.ru>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On 20.05.2014 09:16, Glenn Morris wrote:
> I don't like the idea of using an undocumented subroutine of
> basic-save-buffer outside of basic-save-buffer itself.
> (I see ruby-mode is the only other file to do so.)
> Will plain write-region not work?
Okay, this also seems to work fine. Should it be installed in emacs-24?
=== modified file 'lisp/emacs-lisp/package.el'
--- lisp/emacs-lisp/package.el 2014-03-28 22:47:46 +0000
+++ lisp/emacs-lisp/package.el 2014-05-20 12:16:25 +0000
@@ -1244,10 +1244,7 @@
;; may fetch a URL redirect page).
(when (listp (read (current-buffer)))
(make-directory dir t)
- (setq buffer-file-name (expand-file-name file dir))
- (let ((version-control 'never)
- (require-final-newline nil))
- (save-buffer))))
+ (write-region nil nil (expand-file-name file dir) nil 'silent)))
(when good-signatures
;; Write out good signatures into archive-contents.signed file.
(write-region (mapconcat #'epg-signature-to-string
good-signatures "\n")
@@ -1493,11 +1490,13 @@
(package--with-work-buffer
(package-archive-base desc)
(format "%s-readme.txt" name)
- (setq buffer-file-name
- (expand-file-name readme package-user-dir))
- (let ((version-control 'never)
- (require-final-newline t))
- (save-buffer))
+ (save-excursion
+ (goto-char (point-max))
+ (unless (bolp)
+ (insert ?\n)))
+ (write-region nil nil
+ (expand-file-name readme
package-user-dir)
+ nil 'silent)
(setq readme-string (buffer-string))
t))
(error nil))
This bug report was last modified 10 years and 336 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.