[Top][All Lists]

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

Re: Optional arg via lambda

From: Sebastien Vauban
Subject: Re: Optional arg via lambda
Date: Wed, 13 Nov 2013 14:38:26 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt)

Hi Thorsten,

Thorsten Jolitz wrote:
>> I've tried adding an optional arg to the `lambda' and to pass it to
>> the funcall of `org-export-dispatch', as shown here:
>>     (define-key org-mode-map
>>       (kbd "C-c C-e")
>>       (lambda (&optional arg)
>>         (interactive)
>>         (if (fboundp 'org-export-dispatch)
>>             (progn
>>               (message "arg: %s" arg)
>>               (funcall 'org-export-dispatch arg))
>>           (message "Upgrade to Org 8!"))))
>> But this does not work: `org-export-dispatch' is well called when
>> pressing both `C-x C-e' and `C-u C-x C-e', but the `C-u' is never
>> passed along to the original `org-export-dispatch' function.
>> What am I missing?
> does
>       ,------------------------
>       | (lambda (&optional arg)
>       |   (interactive "P") ...
>       `------------------------
> make a difference?

Of course, it does!

Thanks for spotting this 3-char bug...

Best regards,

Sebastien Vauban

reply via email to

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