From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: org-store-link without having to press Enter? Date: Fri, 17 Jan 2014 10:17:18 +0100 Message-ID: <8761pj7ysh.fsf@bzg.ath.cx> References: <86k3e2clzz.fsf@somewhere.org> <87vbxm41iq.fsf@alphaville.bos.redhat.com> <86eh49bnt3.fsf@somewhere.org> <87lhyhry81.fsf@bzg.ath.cx> <877ga140sz.fsf@alphaville.bos.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49536) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W45YP-0001Pk-1G for emacs-orgmode@gnu.org; Fri, 17 Jan 2014 04:17:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W45YJ-0004Xr-0Y for emacs-orgmode@gnu.org; Fri, 17 Jan 2014 04:17:28 -0500 Received: from mail-wg0-x236.google.com ([2a00:1450:400c:c00::236]:32946) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W45YI-0004WZ-Pt for emacs-orgmode@gnu.org; Fri, 17 Jan 2014 04:17:22 -0500 Received: by mail-wg0-f54.google.com with SMTP id x13so4309147wgg.9 for ; Fri, 17 Jan 2014 01:17:22 -0800 (PST) In-Reply-To: <877ga140sz.fsf@alphaville.bos.redhat.com> (Nick Dokos's message of "Wed, 15 Jan 2014 12:22:52 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nick Dokos Cc: emacs-orgmode@gnu.org Nick Dokos writes: > Bastien 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