From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23648: [PATCH] `defun-declarations-alist' can be unintentionally modified Date: Mon, 18 Jul 2016 22:08:49 +0300 Message-ID: <83inw2227y.fsf@gnu.org> References: <87twfnd50u.fsf@users.sourceforge.net> <83wpkj10eg.fsf@gnu.org> <83k2gi24nz.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1468869029 5569 80.91.229.3 (18 Jul 2016 19:10:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Jul 2016 19:10:29 +0000 (UTC) Cc: 23648@debbugs.gnu.org, pogonyshev@gmail.com To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 18 21:10:18 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bPDvk-0006fq-23 for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Jul 2016 21:10:16 +0200 Original-Received: from localhost ([::1]:49849 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPDvj-0003ZL-07 for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Jul 2016 15:10:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53442) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPDvb-0003Y2-W2 for bug-gnu-emacs@gnu.org; Mon, 18 Jul 2016 15:10:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bPDvV-0004tF-Uw for bug-gnu-emacs@gnu.org; Mon, 18 Jul 2016 15:10:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43678) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPDvV-0004tA-RU for bug-gnu-emacs@gnu.org; Mon, 18 Jul 2016 15:10:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bPDvV-0006HE-Kl for bug-gnu-emacs@gnu.org; Mon, 18 Jul 2016 15:10:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 18 Jul 2016 19:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23648 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 23648-submit@debbugs.gnu.org id=B23648.146886896024074 (code B ref 23648); Mon, 18 Jul 2016 19:10:01 +0000 Original-Received: (at 23648) by debbugs.gnu.org; 18 Jul 2016 19:09:20 +0000 Original-Received: from localhost ([127.0.0.1]:56015 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bPDuq-0006GE-Ld for submit@debbugs.gnu.org; Mon, 18 Jul 2016 15:09:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34070) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bPDup-0006G1-4q for 23648@debbugs.gnu.org; Mon, 18 Jul 2016 15:09:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bPDue-0004kV-Th for 23648@debbugs.gnu.org; Mon, 18 Jul 2016 15:09:13 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58051) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPDue-0004kN-QQ; Mon, 18 Jul 2016 15:09:08 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2946 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bPDua-0005SV-Tk; Mon, 18 Jul 2016 15:09:07 -0400 In-reply-to: (message from Noam Postavsky on Mon, 18 Jul 2016 14:58:20 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:121235 Archived-At: > From: Noam Postavsky > Date: Mon, 18 Jul 2016 14:58:20 -0400 > Cc: Paul Pogonyshev , 23648@debbugs.gnu.org > > >> 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") > > > > Sorry, I'm not following: what do you mean by "macroexpanding" in this > > context? > > Calling macroexpand on the defun form. The most convenient method for > testing is to put point at the closing bracket of the defun, and then > `M-x pp-macroexpand-last-sexp'. > > > When you wrote "when performing completion", I expected to > > see some simple completion gesture that leads to an error, but it > > sounds like I'm missing something. > > The simple completion gesture would be the C-M-i I mentioned, which > (silently) destroys the value of defun-declarations-alist. The > symptoms of the wrong value can be seen when defun is macroexpanded. Sorry, I guess I'm too stupid to understand this advanced stuff. Or maybe it's too late. Thanks.