From: Ivan Shmakov <ivan@siamics.net>
To: 19250@debbugs.gnu.org
Subject: bug#19250: elisp-mode.el: completion-at-point fails at M-: for some buffers
Date: Tue, 02 Dec 2014 09:50:26 +0000 [thread overview]
Message-ID: <87fvcyqt25.fsf@violet.siamics.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 916 bytes --]
Package: emacs
Severity: minor
With a recently-built Emacs (287740d6; 2014-11-29 13:56:59Z),
the following sequence results in the backtrace MIMEd
(redacted.) I do not observe the issue with 24.3.1, so it
appears to be a regression.
$ emacs -Q
C-x b *xxx* RET
(#
M-: xx TAB
This seems to happen because elisp--local-variables tries to
gather variable names for completion from the contents of the
buffer M-: is invoked from, while such buffer does not
necessarily hold any (valid) Emacs Lisp code.
My suggestion would be to either make elisp--local-variables
fail more gracefully (say, using with-demoted-errors), or to
introduce a (derived-mode-p 'emacs-lisp-mode) guard to the code.
As a workaround, the following seems to help:
(setq elisp--local-variables-completion-table nil)
--
FSF associate member #7257 http://boycottsystemd.org/ … 3013 B6A0 230E 334A
[-- Attachment #2: Type: text/plain, Size: 1573 bytes --]
Debugger entered--Lisp error: (invalid-read-syntax "#")
read-from-string("(#elisp--witness--lisp)")
elisp--local-variables()
#[257 …]("xx")
#[771 …]("xx" nil nil)
try-completion("xx" #[771 …] nil)
#[257 …](#[771 …])
mapcar(#[257 …] (#[771 …] (closure (t) (&rest args) (apply (quote completion-table-with-predicate) …))))
#[771 …]("xx" nil nil)
try-completion("xx" #[771 …] nil)
completion-basic-try-completion("xx" #[771 …] nil 2)
#[257 …](basic)
completion--some(#[257 …] (basic partial-completion emacs22))
completion--nth-completion(1 "xx" #[771 …] nil 2 (metadata))
completion-try-completion("xx" #[771 …] nil 2 (metadata))
completion--do-completion(#<marker at 7 in *Minibuf-1*> 9)
completion--in-region-1(#<marker at 7 in *Minibuf-1*> 9)
#[1028 …](#<marker at 7 in *Minibuf-1*> … nil)
apply(#[1028 …] (#<marker at 7 in *Minibuf-1*> … nil))
#[771 …](nil nil (#<marker at 7 in *Minibuf-1*> … nil))
completion--in-region(#<marker at 7 in *Minibuf-1*> 9 #[771 …] nil)
completion-in-region(#<marker at 7 in *Minibuf-1*> 9 #[771 …] nil)
completion-at-point()
funcall-interactively(completion-at-point)
call-interactively(completion-at-point nil nil)
command-execute(completion-at-point)
read-from-minibuffer("Eval: " nil (keymap …) t read-expression-history)
read--expression("Eval: ")
byte-code(… [current-prefix-arg read--expression "Eval: "] 2)
call-interactively(eval-expression nil nil)
command-execute(eval-expression)
next reply other threads:[~2014-12-02 9:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-02 9:50 Ivan Shmakov [this message]
2014-12-03 18:23 ` bug#19250: elisp-mode.el: completion-at-point fails at M-: for some buffers Stefan Monnier
2014-12-03 19:39 ` Stefan Monnier
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=87fvcyqt25.fsf@violet.siamics.net \
--to=ivan@siamics.net \
--cc=19250@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 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.