From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xavier Maillard Newsgroups: gmane.emacs.help Subject: Can't compile Date: Sat, 24 Feb 2007 11:28:56 +0100 Message-ID: <11365.1172312936@localhost> NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1172342324 22223 80.91.229.12 (24 Feb 2007 18:38:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 24 Feb 2007 18:38:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 24 19:38:38 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HL1n3-0000Kv-DB for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Feb 2007 19:38:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HL1n3-0006Y5-67 for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Feb 2007 13:38:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HL1mp-0006Xh-4w for help-gnu-emacs@gnu.org; Sat, 24 Feb 2007 13:38:23 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HL1mm-0006Wv-Rb for help-gnu-emacs@gnu.org; Sat, 24 Feb 2007 13:38:22 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HL1mm-0006Ws-PW for help-gnu-emacs@gnu.org; Sat, 24 Feb 2007 13:38:20 -0500 Original-Received: from smtp5-g19.free.fr ([212.27.42.35]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HL1mm-00070k-58 for help-gnu-emacs@gnu.org; Sat, 24 Feb 2007 13:38:20 -0500 Original-Received: from localhost.localdomain (chn51-3-88-163-173-156.fbx.proxad.net [88.163.173.156]) by smtp5-g19.free.fr (Postfix) with ESMTP id 7DBE835902 for ; Sat, 24 Feb 2007 19:38:19 +0100 (CET) Original-Received: from localhost (IDENT:1001@localhost [127.0.0.1]) by zogzog.home (8.13.8/8.13.8) with ESMTP id l1OASunv011366 for ; Sat, 24 Feb 2007 11:30:16 +0100 X-Mailer: MH-E 8.0.2; nmh 1.2; GNU Emacs 22.0.51 X-detected-kernel: Linux 2.4 (Google crawlbot) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41445 Archived-At: Hi, I am trying to byte-compile nero.el[1] but it just fails with this error: In nero-restore-match: nero.el:1526:17:Warning: `string-to-int' is an obsolete function (as of Emacs 22.1); use `string-to-number' instead. nero.el:2119:1:Error: Symbol's function definition is void: nero-follow-numbers make: *** [nero.elc] Error 1 The first warning is easy to fix (and I fixed it) but what about the second error ? nero-follow-numbers is a (defined) function used in a macro. Here is the defun: (defun nero-follow-numbers (lis handler) "Used by `nero-defjump' to add a nested list of actions. Each action corresponds to following a given numbered link in LIS. The last link in the list is followed using HANDLER." (let (ret) (nero-recursively-add-number-actions (reverse lis) handler ret))) And the macro: (defmacro nero-defjump (name baseurl &optional handler run-after-load &rest numbers) "Create a jump to be used with nero. Nero jumps are like bookmarks or \"webjumps\", but they can do a bit more. The most basic nero jump is essentially just a bookmark. The reason you might want more is that sometimes urls change, you know a consistent way to find them, starting from some \"landmark\". You don't want to redefine your bookmark every time the url changes, but you don't want to physically go through the process of browsing to the final url either. What to do? This macro takes the approach of having nero do the browsing for you. NAME is how you might refer to this jump in prose. BASEURL is the URL to start from. NUMBERS, if present, indicate the numbered links to follow, in order. A function called \"nero-jump-to-\" NAME (suitably marked up) will be created when this macro runs. HANDLER can be used to specify alternative instructions on how to load the final page accessed by the jump. For one example, see `nero-oddmuse-recent-changes-handler'." (declare (indent defun)) `(add-to-list 'nero-jumps (cons ,name (defun ,(intern (concat "nero-jump-to-" (downcase (replace-regexp-in-string " " "-" name)))) (&optional insert) (interactive "P") (if insert (insert ,baseurl) (nero-browse-url ,baseurl nil ;; this is last, ;; use the handler (unless ,(car numbers) ,handler) nil ;; the action we take once the page has loaded ;; (typically involves following numbered links) ,(nero-follow-numbers numbers handler) ;; the first page is not the last page; be ephemeral (when ,(car numbers) t) ;; maybe revise, otherwise, add. (when ,(equal (nero-current-url) baseurl) t))))))) I can not find a way to "silent" the byte-compiler. Can you help ? Thank you Footnotes: [1] http://www.ma.utexas.edu/~jcorneli/a/elisp/nero.el