emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] org-store-link without having to press Enter?


From: Bastien
Subject: Re: [O] org-store-link without having to press Enter?
Date: Fri, 17 Jan 2014 10:17:18 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Nick Dokos <address@hidden> writes:

> Bastien <address@hidden> writes:
>
>> 1. collect various links through a session
>> 2. store the last one for a new task
>> 3. dump all links into some "read later" heading
>>
>> so I think this feature deserves to be in core.
>>
>> What do you and others think?
>>
>
> Much better!

Thanks -- and thanks for fixing the typos in the patch.

I'll wait for Sébastien's feedback on this and install the
patch in master if it fits his needs.

>> +(defun org-insert-last-stored-link (arg)
>> +  "Insert the last link stored in `org-stored-links'."
>
>       Not sure whether it's worth adding a comment here: I had to experiment 
> a bit to
>       convince myself that an interactive call without a prefix arg passed 1
>       as the value of arg. I found it unclear but that may be just
>       my ignorance.

My (highly subjective) stand on this: people who will not read the
code don't need to understand that the default ARG value will be 1,
those who want to read the code also want to make the extra effort
to understand why "p" makes the ARG default value to 1.  This is
fairly standard Elisp code :)

-- 
 Bastien



reply via email to

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