From: Artur Malabarba <bruce.connor.am@gmail.com>
To: 21201@debbugs.gnu.org
Subject: bug#21201: 25.0.50; (buffer-modified-p) errors inside cl-letf
Date: Thu, 6 Aug 2015 20:47:34 +0100 [thread overview]
Message-ID: <CAAdUY-LT61iKcFV=2zhJZN-MYyYbNvLQcwGTwBZXESv-DXUFWQ@mail.gmail.com> (raw)
From emacs -Q, run the following:
(cl-letf (((buffer-modified-p)))
(insert "ookok"))
You'll get an error from trying to set a nil buffer.
Using `(buffer-modified-p (current-buffer))' instead works.
Backtrace:
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
set-buffer(nil)
(save-current-buffer (set-buffer nil) (set-buffer-modified-p old))
(unwind-protect (insert "ookok") (save-current-buffer (set-buffer
nil) (set-buffer-modified-p old)))
(let* ((old (buffer-modified-p))) (unwind-protect (insert "ookok")
(save-current-buffer (set-buffer nil) (set-buffer-modified-p old))))
eval((let* ((old (buffer-modified-p))) (unwind-protect (insert
"ookok") (save-current-buffer (set-buffer nil) (set-buffer-modified-p
old)))) nil)
elisp--eval-last-sexp(nil)
eval-last-sexp(nil)
funcall-interactively(eval-last-sexp nil)
call-interactively(eval-last-sexp nil nil)
command-execute(eval-last-sexp)
next reply other threads:[~2015-08-06 19:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-06 19:47 Artur Malabarba [this message]
2015-08-06 20:07 ` bug#21201: 25.0.50; (buffer-modified-p) errors inside cl-letf Nicolas Richard
2015-08-06 21:44 ` Artur Malabarba
2015-08-06 22:50 ` Nicolas Richard
2018-07-17 12:16 ` Noam Postavsky
2018-08-28 0:01 ` Noam Postavsky
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='CAAdUY-LT61iKcFV=2zhJZN-MYyYbNvLQcwGTwBZXESv-DXUFWQ@mail.gmail.com' \
--to=bruce.connor.am@gmail.com \
--cc=21201@debbugs.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).