emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@gnu.org>
To: Nick Dokos <ndokos@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-store-link without having to press Enter?
Date: Fri, 17 Jan 2014 10:17:18 +0100	[thread overview]
Message-ID: <8761pj7ysh.fsf@bzg.ath.cx> (raw)
In-Reply-To: <877ga140sz.fsf@alphaville.bos.redhat.com> (Nick Dokos's message of "Wed, 15 Jan 2014 12:22:52 -0500")

Nick Dokos <ndokos@gmail.com> writes:

> Bastien <bzg@gnu.org> 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	other threads:[~2014-01-17  9:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-14 21:05 org-store-link without having to press Enter? Sebastien Vauban
2014-01-14 22:55 ` Nick Dokos
2014-01-15  9:24   ` Sebastien Vauban
2014-01-15 16:44     ` Bastien
2014-01-15 17:22       ` Nick Dokos
2014-01-17  9:17         ` Bastien [this message]
2014-01-20 14:38         ` Bastien
2014-02-18 13:50       ` Sebastien Vauban

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8761pj7ysh.fsf@bzg.ath.cx \
    --to=bzg@gnu.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=ndokos@gmail.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).