emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Sylvain Beucler <beuc@beuc.net>
To: emacs-orgmode@gnu.org
Subject: Bug: symbol function's definition is null : signum [7.5]
Date: Wed, 13 Apr 2011 10:04:10 +0200	[thread overview]
Message-ID: <20110413080410.GA3112@perso.beuc.net> (raw)

When using S-<up> to modify a date with an our range in Org 7.5, I get
"symbol function's definition is null : signum".

E.g. <2011-03-10 jeu. 10:30-11:30>

It appears that (org-modify-ts-extra) is using this function, but
unlike in CL isn't not an elisp built-in :)

As a work-around I added an internal defun:
(defun org-modify-ts-extra (s pos n dm)
  "Change the different parts of the lead-time and repeat fields in timestamp."
  (defun signum (x) 
    (cond
     ((> x 0)  1)
     ((< x 0) -1)
     ((= x 0)  0)))
[...]

-- 
Sylvain

             reply	other threads:[~2011-04-13  8:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-13  8:04 Sylvain Beucler [this message]
2011-04-15 22:40 ` Bug: symbol function's definition is null : signum [7.5] Nick Dokos
2011-04-16  9:30   ` Sylvain Beucler
2011-06-26 19:32   ` David Maus
  -- strict thread matches above, loose matches on Subject: below --
2018-10-31 16:09 Jared Windover
2018-11-01 21:27 ` Nicolas Goaziou

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110413080410.GA3112@perso.beuc.net \
    --to=beuc@beuc.net \
    --cc=emacs-orgmode@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).