From: Noam Postavsky <npostavs@users.sourceforge.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 23648@debbugs.gnu.org, Paul Pogonyshev <pogonyshev@gmail.com>
Subject: bug#23648: [PATCH] `defun-declarations-alist' can be unintentionally modified
Date: Mon, 18 Jul 2016 11:53:42 -0400 [thread overview]
Message-ID: <CAM-tV--7LmW0EbuotSBSToZ8T0LsbtnhMqRheBAFF2b4wy8U6A@mail.gmail.com> (raw)
In-Reply-To: <83wpkj10eg.fsf@gnu.org>
On Mon, Jul 18, 2016 at 10:33 AM, Eli Zaretskii <eliz@gnu.org> wrote:
>> From: npostavs@users.sourceforge.net
>> Date: Sun, 17 Jul 2016 23:00:33 -0400
>> Cc: 23648@debbugs.gnu.org
>>
>> I agree with analysis and patch here. Since this just appends another
>> nil, it should be safe for emacs-25, right?
>
> I'm not sure, actually. How probable is the situation where this
> problem pops up?
It happens with 100% probability when performing completion inside a
(declare ...) form. Starting from emacs -Q, put into *scratch*
(defun foo ()
(declare (indent 1))
nil)
Macroexpanding this gives:
(prog1
(defalias 'foo
#'(lambda nil nil))
(put 'foo 'lisp-indent-function '1))
Now move point to just after "indent" and type C-M-i (this gives
message "Sole completion"), macroexpanding now gives
(prog1
(defalias 'foo
#'(lambda nil nil))
"Warning: Unknown defun property `indent' in foo")
> And when was the bug introduced?
Code seems to have been that way since it was introduced in 24.4:
dd8791e9 "* lisp/emacs-lisp/lisp.el (lisp-completion-at-point):
Provide specialized
completion tables when completing error conditions and
`declare' arguments...."
next prev parent reply other threads:[~2016-07-18 15:53 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-29 14:11 bug#23648: [PATCH] `defun-declarations-alist' can be unintentionally modified Paul Pogonyshev
2016-07-18 3:00 ` npostavs
2016-07-18 14:33 ` Eli Zaretskii
2016-07-18 15:53 ` Noam Postavsky [this message]
2016-07-18 18:16 ` Eli Zaretskii
2016-07-18 18:58 ` Noam Postavsky
2016-07-18 19:08 ` Eli Zaretskii
2016-07-18 21:28 ` Michael Heerdegen
2016-07-19 2:40 ` Eli Zaretskii
2016-07-21 1:09 ` npostavs
2016-07-21 14:22 ` Eli Zaretskii
2016-07-21 21:27 ` Noam Postavsky
2016-07-23 8:54 ` Eli Zaretskii
2016-07-23 14:18 ` npostavs
2016-07-24 17:07 ` Paul Pogonyshev
2016-07-24 17:31 ` Eli Zaretskii
2016-07-18 19:17 ` Dmitry Gutov
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=CAM-tV--7LmW0EbuotSBSToZ8T0LsbtnhMqRheBAFF2b4wy8U6A@mail.gmail.com \
--to=npostavs@users.sourceforge.net \
--cc=23648@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=pogonyshev@gmail.com \
/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.