From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: Bug: Toggle descriptive and literal links [7.4] Date: Mon, 22 Aug 2011 08:53:22 -1000 Message-ID: References: <20110804131952.4ewyd4j9q800wgw8@imap.uni-ulm.de> <874o1gfawl.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:39351) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvZcp-0008LZ-Ll for emacs-orgmode@gnu.org; Mon, 22 Aug 2011 14:53:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QvZcn-0007xh-V4 for emacs-orgmode@gnu.org; Mon, 22 Aug 2011 14:53:31 -0400 Received: from oproxy9.bluehost.com ([69.89.24.6]:45271) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QvZcn-0007xM-O1 for emacs-orgmode@gnu.org; Mon, 22 Aug 2011 14:53:29 -0400 In-Reply-To: <874o1gfawl.fsf@gnu.org> (Bastien's message of "Wed, 17 Aug 2011 15:03:06 +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: Bastien Cc: emacs-orgmode@gnu.org, reiner.steib@gmx.de Bastien writes: > 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! Aloha Bastien, Thanks for adding this. I work with literal links and this potentially saves time and effort. I wonder if I'm using it correctly? In .emacs I set org-link-display-descriptive nil and have: -------- org-link-display-descriptive is a variable defined in `org.el'. Its value is nil Documentation: Non-nil means Org will display descriptive links. E.g. [[http://orgmode.org][Org website]] will be displayed as "Org Website", hiding the link itself and just displaying its description. When set to `nil', Org will display the full links literally. You can interactively set the value of this variable using the `org-toggle-link-display'. -------- But when I open an Org-mode buffer I find the links displayed descriptively. The menu Org/Hyperlinks/Literal Links is checked at this time. If I call org-toggle-link-display twice, then literal links are displayed. All the best, Tom -- Thomas S. Dye http://www.tsdye.com