From: Stephen Berman <Stephen.Berman@gmx.net>
To: help-gnu-emacs@gnu.org
Subject: Re: How to get hours from hh:mm
Date: Sat, 16 Jun 2007 18:16:49 +0200 [thread overview]
Message-ID: <87ps3veuxa.fsf@escher.local.home> (raw)
In-Reply-To: 4673fd78$0$326$e4fe514c@news.xs4all.nl
On Sat, 16 Jun 2007 17:10:48 +0200 Cecil Westerhof <dummy@dummy.nl> wrote:
> Alexis Roda wrote:
>> Something like this could be helpful:
>>
>> (defun time100(time)
>> (let ((timelist (split-string time ":")))
>> (+ (string-to-number (car timelist))
>> (/ (string-to-number (cadr timelist))
>> 60.0))))
>
> I tried this:
>
> (defun getMinutes(time)
> (interactive "sDuration: ")
> (let ((timelist (split-string time ":")))
> (+
> (string-to-number (car timelist))
> (/
> (string-to-number (cadr timelist))
> 60.0
> )
> )
> )
> )
>
> When I dan give M-x getMinutes and on the prompt give: 00:18, I get:
> Symbol's function definition is void: let
Somehow your version contains nobreak space characters starting right
after `let'. If you change all of those to normal space characters,
the function works fine.
Steve Berman
next prev parent reply other threads:[~2007-06-16 16:16 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-14 12:38 How to get hours from hh:mm Cecil Westerhof
2007-06-14 13:35 ` Pascal Bourguignon
2007-06-14 13:57 ` Cecil Westerhof
2007-06-14 18:27 ` Pascal Bourguignon
2007-06-14 19:06 ` Alexis Roda
[not found] ` <mailman.2173.1181847997.32220.help-gnu-emacs@gnu.org>
2007-06-16 15:10 ` Cecil Westerhof
2007-06-16 15:32 ` Cecil Westerhof
2007-06-16 15:41 ` Joost Kremers
2007-06-16 15:52 ` David Kastrup
2007-06-16 17:28 ` Cecil Westerhof
2007-06-16 16:16 ` Stephen Berman [this message]
2007-06-14 20:15 ` J. David Boyd
[not found] ` <mailman.2178.1181852166.32220.help-gnu-emacs@gnu.org>
2007-06-15 5:52 ` Pascal Bourguignon
2007-06-15 6:06 ` cmr.Pent
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=87ps3veuxa.fsf@escher.local.home \
--to=stephen.berman@gmx.net \
--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.