From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Ordering of command completions Date: Sun, 07 Dec 2014 21:34:13 +0100 Message-ID: References: <87zjaztimi.fsf@wanadoo.es> <87vblnthew.fsf@wanadoo.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1417984498 32032 80.91.229.3 (7 Dec 2014 20:34:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Dec 2014 20:34:58 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?iso-8859-1?Q?=D3scar?= Fuentes Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 07 21:34:52 2014 Return-path: Envelope-to: ged-emacs-devel@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 1XxiXb-0000SS-RQ for ged-emacs-devel@m.gmane.org; Sun, 07 Dec 2014 21:34:51 +0100 Original-Received: from localhost ([::1]:59099 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XxiXb-0004VP-36 for ged-emacs-devel@m.gmane.org; Sun, 07 Dec 2014 15:34:51 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59248) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XxiXS-0004RU-CB for emacs-devel@gnu.org; Sun, 07 Dec 2014 15:34:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XxiXM-0005UQ-Qh for emacs-devel@gnu.org; Sun, 07 Dec 2014 15:34:42 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:49455) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XxiXM-0005UJ-Jf for emacs-devel@gnu.org; Sun, 07 Dec 2014 15:34:36 -0500 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1XxiWz-0007mN-H4; Sun, 07 Dec 2014 21:34:13 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAALVBMVEV0amd8e3x7e3t5eXl3 d3d1dXVxcXF1dWh8fHx6enp4eHh2dnZ0dHRycnJhXFN9TSTiAAAAp0lEQVQ4jWPowAJOADEDuqBO ywowjSEBAyAJJVwSRiBGGxYJMGjCJYHNKCygB5dEpwZEohVDpgWLjm6wFiwSXcS7agUuiRm4JHAa RYaEB4TSoa4drbRyLsUSmPFKJ8shqcQTQ7x7BlCiHIuGJrBREZCoIcnybgzxXlw6dmKRWIHFjsYk sFuQJDwgVN87hhNAqsUCLoGSbOE6oGUBNudSLNGKJhGBLAkArSphRGl8sK8AAAAASUVORK5CYII= X-Now-Playing: X-TG's _The Final Report_: "Trope" X-Hashcash: 1:23:141207:emacs-devel@gnu.org::GSc8Msq3WdRn81Mu:000000000000000000000000000000000000000000Qm7s X-Hashcash: 1:23:141207:ofv@wanadoo.es::7lwP3X3Y80pCJQ4n:001wtxG In-Reply-To: <87vblnthew.fsf@wanadoo.es> (=?iso-8859-1?Q?=22=D3scar?= Fuentes"'s message of "Sun, 07 Dec 2014 19:59:35 +0100") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) X-MailScanner-ID: 1XxiWz-0007mN-H4 MailScanner-NULL-Check: 1418589253.79583@Nk2ZbLAfI48Xn83xOcbnVQ X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.224.195 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:179298 Archived-At: =D3scar Fuentes writes: >> That would be a lot less annotating, but it seems a bit kludgy... > > It seems a bit kludgy, but would be a lot less annotating... :-) Adding `(declare (mode foo-mode))' to interactive functions can almost be done automatically to most files. You basically search for "(interactive", go to the previous line, and insert "(declare (mode foo-mode))". Except for the ones that are global, which would (mostly) just be the ones that already have autoload cookies associated with them. So annotating should be as easy in any case -- you just have to write the declare-inserting-function. But having such a form in every command would be more clutter when reading the code, and when writing new commands. So I'm sympathetic to your file-wide cookie, too. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no