emacs-wiki-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [emacs-wiki-discuss] Re: How to add macros or shortcuts in emacs-wik


From: Mark Triggs
Subject: Re: [emacs-wiki-discuss] Re: How to add macros or shortcuts in emacs-wiki?
Date: Thu, 11 Aug 2005 07:55:30 +1000
User-agent: No Gnus v0.4

Michael Olson <address@hidden> writes:

> Mark Triggs <address@hidden> writes:
>

[...]

>> (defun read-strings (string)
>>   "Return a list of the substrings in STRING."
>>   (let ((start 0)
>>         (strings '()))
>>     (while (< start (length string))
>>       (let ((next-string (read-from-string string start)))
>>         (push (car next-string) strings)
>>         (setq start (cdr next-string))))
>>     (nreverse strings)))

[...]

> This looks useful.  Do you mind if I add it to emacs-wiki-macro.el?

Not at all.  One niggle though: the above `read-strings' is really
`read-sexps'.  Funny how you always notice stuff like this right after
you post ;o)

Cheers,

Mark

-- 
Mark Triggs
<address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]