From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Bug: Toggle descriptive and literal links [7.4] Date: Wed, 17 Aug 2011 15:03:06 +0200 Message-ID: <874o1gfawl.fsf@gnu.org> References: <20110804131952.4ewyd4j9q800wgw8@imap.uni-ulm.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:57512) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtflR-0006oe-E2 for emacs-orgmode@gnu.org; Wed, 17 Aug 2011 09:02:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QtflL-0007CP-25 for emacs-orgmode@gnu.org; Wed, 17 Aug 2011 09:02:33 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:39720) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QtflK-0007Bq-HU for emacs-orgmode@gnu.org; Wed, 17 Aug 2011 09:02:26 -0400 Received: by wwf10 with SMTP id 10so747186wwf.30 for ; Wed, 17 Aug 2011 06:02:25 -0700 (PDT) In-Reply-To: <20110804131952.4ewyd4j9q800wgw8@imap.uni-ulm.de> (Reiner Steib's message of "Thu, 04 Aug 2011 13:19:52 +0200") 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: reiner.steib@gmx.de Cc: emacs-orgmode@gnu.org Hi Reiner, Reiner Steib writes: > (a) There is no (interactive) command to toggle this setting. There is now `org-toggle-link-display'. > #+BEGIN_SRC lisp > (defun org-descriptive-links () > "Display Descriptive Links in `org-mode'." > (interactive) > (org-add-to-invisibility-spec '(org-link)) (org-restart-font-lock)) > > (defun org-literal-links () > "Display Literal Links in `org-mode'." > (interactive) > (org-remove-from-invisibility-spec '(org-link)) (org-restart-font-lock)) > #+END_SRC Thanks for the example code. > I'd suggest to add such `defun's (or a toggling defun) and adjust > org-org-menu accordingly to use the defuns instead of the current > `progs'. Done. > (b) The initial behaviour should be customizable. See the new option: `org-link-display-descriptive' which defaults to `t'. Thanks for this idea! -- Bastien