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

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

[emacs-wiki-discuss] Re: Emacs-wiki version 2.62 released


From: Michael Olson
Subject: [emacs-wiki-discuss] Re: Emacs-wiki version 2.62 released
Date: Sat, 06 Nov 2004 22:50:18 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

Sacha Chua <address@hidden> writes:

> Michael Olson <address@hidden> writes:
>
>>  - emacs-wiki.el, emacs-wiki-publish.el: Fix major problem with Emacs
>>    from CVS not allowing the `cons' function to have anything but a
>>    list as its second parameter.  Had to redo the representation of
>>    `emacs-wiki-file-alist' to work around this.
>
> You're serious? That sucks. How are we supposed to do (foo . bar)
> cells now? Hmm...

Here's a test case.

(defun cons-test-case-1 ()
  (interactive)
  (let ((str1 "str1-contents")
        (str2 "str2-contents"))
    (cons str1 str2)))

(defun cons-test-case-2 ()
  (interactive)
  (cons "gen-str-1" "gen-str-2"))

(defun cons-test-case-3 ()
  (interactive)
  (cons 'symbol1 'symbol2))

Do a C-u M-C-x on each one and then M-x cons-test-case-n (for n in
{1-3}), and step through the functions.  For me, cases 1 and 2 fail
with a "Wrong type argument: listp, name-of-string".  Case 3 still
works fine though.

> Feel free to steal code from planner-rss.el. <grin> It's really
> quite fun (and surprisingly straightforward), particularly the
> autocategorization.

I might have to do that sometime soon :^) .

-- 
Michael Olson -- FSF Associate Member #652 -- Web: http://www.mwolson.org/
Jabber: mwolson_at_hcoop.net -- IRC: bigmike160 on freenode.net
  /~ |\ | | |  Overregulation corrupts citizens and weakens the rule of law.
 |_] | \| |_|    -- Lawrence Lessig, _Free Culture_





reply via email to

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