From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] trunk r113747: lisp/frameset.el: Convert `frameset' to vector and add new slots. Date: Thu, 8 Aug 2013 19:34:54 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1375983351 19232 80.91.229.3 (8 Aug 2013 17:35:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 Aug 2013 17:35:51 +0000 (UTC) Cc: Emacs developers To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 08 19:35:54 2013 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 1V7U7h-0003lG-II for ged-emacs-devel@m.gmane.org; Thu, 08 Aug 2013 19:35:41 +0200 Original-Received: from localhost ([::1]:56061 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7U7h-0004S5-4S for ged-emacs-devel@m.gmane.org; Thu, 08 Aug 2013 13:35:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58712) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7U7d-0004OI-2y for emacs-devel@gnu.org; Thu, 08 Aug 2013 13:35:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V7U7b-0006aD-Sq for emacs-devel@gnu.org; Thu, 08 Aug 2013 13:35:37 -0400 Original-Received: from mail-ea0-x22c.google.com ([2a00:1450:4013:c01::22c]:32980) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7U7b-0006a5-MD for emacs-devel@gnu.org; Thu, 08 Aug 2013 13:35:35 -0400 Original-Received: by mail-ea0-f172.google.com with SMTP id r16so1573891ead.17 for ; Thu, 08 Aug 2013 10:35:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=Vf5qRkS9ZBz7Ukv355lG7/5+IesDDeTbZIqTrYiBTCs=; b=c8ZTi62cxhVt+eRtclmMAzVKn7a4QY3gDmcK273xJTA5juLcz4e5bl+Sb5QSqiBr4x PP44FaJA8L8YZbe7gBw/Oz8kkqqtbETI94xK/9MPgxS6zOUTb1fADq+W5NNYfVW8JSJ7 JnorY19mYZmN1taD0LSa+rLeIjcZ4Gt+gCxqjZRNuO4oQquvUQhqjx4L/sSaXZUmmOTo LouYuB7TxcDlUBOEZKs0nYrUWB3qfCOcFxCbxdNRx1+lqvi1b2WQc5hHvUwypJbakpL0 NBxeUddAvjsar+4YR6cGVd5exP5RosGBzKaawuuWpi1mpx8pmccyrDDuQ3BnhleQnQHp CNqA== X-Received: by 10.14.48.5 with SMTP id u5mr9333275eeb.89.1375983334735; Thu, 08 Aug 2013 10:35:34 -0700 (PDT) Original-Received: by 10.14.133.15 with HTTP; Thu, 8 Aug 2013 10:34:54 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c01::22c 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:162530 Archived-At: On Thu, Aug 8, 2013 at 7:30 PM, Stefan Monnier wrote: > ;;;###autoload (autoload 'frameset-p "frameset" > ;;;###autoload "Return non-nil if OBJECT is a frameset, nil otherwise." nil) > which has the advantage tht this code is not run when loading frameset. OK, I'll do that. > Or you could do it by replacing the declare-function call (in > register.el) by a call to `autoload'. Well, register.el is preloaded so that would make frameset-p autoloadable in emacs -Q. But it seems cleaner to me to have this stuff in frameset.el. > Agreed. I only meant to say that there's no way to do it "cleanly" > (e.g. such that the arguments to `autoload' are constructed > automatically from contextual information). Ah, OK. As for moving the frameset stuff out of register.el, I'll give it a bit of thought tonight. I suppose it will be possible to add the arg to the :jump-func call in a back-compatible way. J