all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Xavier Maillard <zedek@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Can't compile
Date: Sat, 24 Feb 2007 11:28:56 +0100	[thread overview]
Message-ID: <11365.1172312936@localhost> (raw)

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

             reply	other threads:[~2007-02-24 10:28 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-24 10:28 Xavier Maillard [this message]
2007-02-24 22:49 ` Can't compile Peter Dyballa
2007-02-25  8:08   ` Xavier Maillard
2007-02-25 11:54     ` Peter Dyballa
2007-02-25 12:58       ` Xavier Maillard
     [not found] <mailman.59.1172342304.7795.help-gnu-emacs@gnu.org>
2007-02-25 18:36 ` Joost Kremers
2007-02-25 18:47   ` Xavier Maillard
     [not found]   ` <mailman.94.1172429426.7795.help-gnu-emacs@gnu.org>
2007-02-25 19:13     ` Joost Kremers
2007-02-26  5:20       ` Xavier Maillard
2007-02-26 11:24 ` Robert Thorpe
2007-02-26 18:31   ` Xavier Maillard
     [not found]   ` <mailman.124.1172514850.7795.help-gnu-emacs@gnu.org>
2007-02-26 18:46     ` Robert Thorpe
2007-02-26 20:26       ` Xavier Maillard
2007-02-28  3:16   ` Kevin Rodgers
2007-02-28 11:28     ` Xavier Maillard
     [not found]   ` <mailman.208.1172632616.7795.help-gnu-emacs@gnu.org>
2007-02-28 11:08     ` Robert Thorpe
  -- strict thread matches above, loose matches on Subject: below --
2011-05-10 18:12 Germán Arias
2011-05-11 11:51 ` Harald Hanche-Olsen
2011-05-12 22:22   ` Germán Arias
2011-08-09 23:21 Germán Arias
2011-08-10 13:57 ` Davis Herring
2011-08-10 22:37   ` Germán Arias
2011-08-10 22:44     ` Davis Herring
2011-08-10 23:59       ` Germán Arias
2011-08-12 23:02         ` Germán Arias

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=11365.1172312936@localhost \
    --to=zedek@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /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.