From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuri Lenskiy Subject: [PATCH] Addition of default-description parameter to org-insert-link Date: Wed, 26 Oct 2011 12:47:46 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=001485f78c2e63b56304b0366a81 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:47079) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJ6iR-00082w-KU for emacs-orgmode@gnu.org; Wed, 26 Oct 2011 12:52:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJ6iP-0006G6-Er for emacs-orgmode@gnu.org; Wed, 26 Oct 2011 12:52:34 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:65360) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJ6iO-0006Fv-Vi for emacs-orgmode@gnu.org; Wed, 26 Oct 2011 12:52:33 -0400 Received: by wwf27 with SMTP id 27so2107852wwf.30 for ; Wed, 26 Oct 2011 09:52:31 -0700 (PDT) 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: emacs-orgmode@gnu.org --001485f78c2e63b56304b0366a81 Content-Type: multipart/alternative; boundary=001485f78c2e63b55e04b0366a7f --001485f78c2e63b55e04b0366a7f Content-Type: text/plain; charset=ISO-8859-1 This patch, against the stable 7.7 branch version of org.el, adds a default-description argument to org-insert-link that, if non-nil, will become the default description. - Yuri Lenskiy --001485f78c2e63b55e04b0366a7f Content-Type: text/html; charset=ISO-8859-1 This patch, against the stable 7.7 branch version of org.el, adds a default-description argument to org-insert-link that, if non-nil, will become the default description.

- Yuri Lenskiy
--001485f78c2e63b55e04b0366a7f-- --001485f78c2e63b56304b0366a81 Content-Type: text/plain; charset=US-ASCII; name="org.el.diff" Content-Disposition: attachment; filename="org.el.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gu8k4s350 ZGlmZiAtLWdpdCBhL2xpc3Avb3JnLmVsIGIvbGlzcC9vcmcuZWwKaW5kZXggYzI5ZWYxMS4uYmY2 ZGFhYiAxMDA2NDQKLS0tIGEvbGlzcC9vcmcuZWwKKysrIGIvbGlzcC9vcmcuZWwKQEAgLTg4NTQs NyArODg1NCw3IEBAIFRoaXMgY29tbWFuZCBjYW4gYmUgY2FsbGVkIGluIGFueSBtb2RlIHRvIGlu c2VydCBhIGxpbmsgaW4gT3JnLW1vZGUgc3ludGF4LiIKICAgKG9yZy1sb2FkLW1vZHVsZXMtbWF5 YmUpCiAgIChvcmctcnVuLWxpa2UtaW4tb3JnLW1vZGUgJ29yZy1pbnNlcnQtbGluaykpCiAKLShk ZWZ1biBvcmctaW5zZXJ0LWxpbmsgKCZvcHRpb25hbCBjb21wbGV0ZS1maWxlIGxpbmstbG9jYXRp b24pCisoZGVmdW4gb3JnLWluc2VydC1saW5rICgmb3B0aW9uYWwgY29tcGxldGUtZmlsZSBsaW5r LWxvY2F0aW9uIGRlZmF1bHQtZGVzY3JpcHRpb24pCiAgICJJbnNlcnQgYSBsaW5rLiAgQXQgdGhl IHByb21wdCwgZW50ZXIgdGhlIGxpbmsuCiAKIENvbXBsZXRpb24gY2FuIGJlIHVzZWQgdG8gaW5z ZXJ0IGFueSBvZiB0aGUgbGluayBwcm90b2NvbCBwcmVmaXhlcyBsaWtlCkBAIC04ODkwLDcgKzg4 OTAsMTAgQEAgY2FsbGVkIHdpdGggdGhlIGxpbmsgdGFyZ2V0LCBhbmQgdGhlIHJlc3VsdCB3aWxs IGJlIHRoZSBkZWZhdWx0CiBsaW5rIGRlc2NyaXB0aW9uLgogCiBJZiB0aGUgTElOSy1MT0NBVElP TiBwYXJhbWV0ZXIgaXMgbm9uLW5pbCwgdGhpcyB2YWx1ZSB3aWxsIGJlCi11c2VkIGFzIHRoZSBs a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