From: Juanma Barranquero <lekktu@gmail.com>
To: Angelo Graziosi <angelo.graziosi@alice.it>
Cc: Emacs <emacs-devel@gnu.org>
Subject: Re: bootstrap failure
Date: Fri, 7 May 2010 02:14:05 +0200 [thread overview]
Message-ID: <k2zf7ccd24b1005061714sff0e7805nf3edf89704636ee7@mail.gmail.com> (raw)
In-Reply-To: <4BE355CA.6070802@alice.it>
On Fri, May 7, 2010 at 01:50, Angelo Graziosi <angelo.graziosi@alice.it> wrote:
> So, even enabling scroll-bars, the trunk bootstrap fails. :(
It's not related to the scrollbars, but the auto-save-mode change, as
Stephen pointed out.
I think just reverting this part of the commit is enough to bootstrap.
Juanma
=== modified file 'lisp/files.el'
--- lisp/files.el 2010-05-06 23:14:54 +0000
+++ lisp/files.el 2010-05-06 02:53:56 +0000
@@ -5150,29 +5150,25 @@
(kill-buffer-ask buffer)))))
-(defun auto-save-mode (arg)
+(define-minor-mode auto-save-mode
"Toggle auto-saving of contents of current buffer.
With prefix argument ARG, turn auto-saving on if positive, else off."
- (interactive "P")
- (setq buffer-auto-save-file-name
- (and (if (null arg)
- (or (not buffer-auto-save-file-name)
- ;; If auto-save is off because buffer has shrunk,
- ;; then toggling should turn it on.
- (< buffer-saved-size 0))
- (or (eq arg t) (listp arg) (and (integerp arg) (> arg 0))))
- (if (and buffer-file-name auto-save-visited-file-name
- (not buffer-read-only))
- buffer-file-name
- (make-auto-save-file-name))))
+ :variable ((and buffer-auto-save-file-name
+ ;; If auto-save is off because buffer has shrunk,
+ ;; then toggling should turn it on.
+ (>= buffer-saved-size 0))
+ . (lambda (val)
+ (setq buffer-auto-save-file-name
+ (cond
+ ((null val) nil)
+ ((and buffer-file-name auto-save-visited-file-name
+ (not buffer-read-only))
+ buffer-file-name)
+ (t (make-auto-save-file-name))))))
;; If -1 was stored here, to temporarily turn off saving,
;; turn it back on.
(and (< buffer-saved-size 0)
- (setq buffer-saved-size 0))
- (if (called-interactively-p 'interactive)
- (message "Auto-save %s (in this buffer)"
- (if buffer-auto-save-file-name "on" "off")))
- buffer-auto-save-file-name)
+ (setq buffer-saved-size 0)))
(defun rename-auto-save-file ()
"Adjust current buffer's auto save file name for current conditions.
next prev parent reply other threads:[~2010-05-07 0:14 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-06 23:50 bootstrap failure Angelo Graziosi
2010-05-07 0:14 ` Juanma Barranquero [this message]
[not found] <s0d1qc1xxa1.fsf.ref@yahoo.com>
2023-12-05 1:17 ` Bootstrap failure Po Lu
2023-12-05 3:32 ` Eli Zaretskii
[not found] <874jmxy7iy.fsf.ref@yahoo.com>
2023-06-24 1:27 ` Po Lu
2023-06-24 2:25 ` Michael Heerdegen
2023-06-24 23:49 ` Michael Heerdegen
-- strict thread matches above, loose matches on Subject: below --
2013-11-25 18:54 Dani Moncayo
2013-11-25 18:56 ` Paul Eggert
2013-11-25 19:18 ` Dani Moncayo
2010-05-06 9:07 bootstrap failure Stephen Berman
2010-05-07 17:52 ` Stefan Monnier
2010-05-07 21:19 ` Stephen Berman
2010-04-20 17:28 Juanma Barranquero
2010-04-20 18:31 ` Stefan Monnier
2010-04-20 19:19 ` Juanma Barranquero
2009-12-08 0:14 Bootstrap failure Angelo Graziosi
2009-11-12 10:44 Romain Francoise
2009-11-12 20:36 ` Sven Joachim
2009-11-14 15:14 ` Chong Yidong
2009-11-14 19:49 ` Bruce Stephens
2009-11-14 20:33 ` Jan Djärv
2009-11-15 1:31 ` Stefan Monnier
2009-11-15 3:48 ` YAMAMOTO Mitsuharu
2009-11-15 12:10 ` Bruce Stephens
2009-11-15 14:56 ` Romain Francoise
2009-11-15 9:30 ` Jan Djärv
2004-12-14 7:30 Dee Zsombor
2004-12-05 13:17 Jérôme Marant
2004-12-05 15:24 ` Luc Teirlinck
2004-12-05 15:28 ` Luc Teirlinck
2004-12-05 15:55 ` Luc Teirlinck
2004-12-05 18:16 ` Jérôme Marant
2004-11-20 0:14 bootstrap failure Luc Teirlinck
2004-11-20 1:24 ` Andreas Schwab
2004-11-20 1:29 ` Luc Teirlinck
2004-11-20 10:38 ` Thien-Thi Nguyen
2004-11-20 3:07 ` Luc Teirlinck
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=k2zf7ccd24b1005061714sff0e7805nf3edf89704636ee7@mail.gmail.com \
--to=lekktu@gmail.com \
--cc=angelo.graziosi@alice.it \
--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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).