emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Max Nikulin <manikulin@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: [feature request] startup variable for link display
Date: Tue, 9 Aug 2022 23:31:09 +0700	[thread overview]
Message-ID: <tcu24e$9ml$1@ciao.gmane.io> (raw)
In-Reply-To: <877d3h1kto.fsf@ucl.ac.uk>

On 09/08/2022 22:46, Fraga, Eric wrote:
> 
> On Tuesday,  9 Aug 2022 at 22:21, Max Nikulin wrote:
>> Is it possible to use setter function for the defcustom to make the
>> following work?
> 
> I'm not sure what this means.

I had in mind :set attribute of defcustom, see info "(elisp) Variable 
Definitions"
https://www.gnu.org/software/emacs/manual/html_node/elisp/Variable-Definitions.html#index-set_002c-defcustom-keyword

but I have realized that I am unsure it the function is called for local 
variables. The original idea was to execute something like code of 
`org-toggle-link-display'.

>> # Local Variables:
>> # org-link-descriptive: nil
>> # End:
> 
> Ah, thank you for pointing out the variable.  I didn't manage to find
> it.
> 
> In any case, I tried this with both nil and t and neither value works
> (for me).  Links are only shown by displaying the descriptive text.
> Maybe there is another setting that overrides?

If I got it right, Ihor tried to fix it, but he had to revert the change 
intended to apply local variables earlier

Ihor Radchenko to emacs-orgmode… Re: folding problems. Fri, 05 Aug 2022 
19:37:10 +0800. https://list.orgmode.org/87k07mora1.fsf@localhost

In the particular case of `org-link-descriptive' some code should be 
executed *after* changing of its value.



  reply	other threads:[~2022-08-09 16:32 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-09 14:50 [feature request] startup variable for link display Fraga, Eric
2022-08-09 15:21 ` Max Nikulin
2022-08-09 15:46   ` Fraga, Eric
2022-08-09 16:31     ` Max Nikulin [this message]
2022-08-09 17:03       ` Fraga, Eric
2023-12-22 12:07 ` [PATCH] " Ihor Radchenko
2023-12-22 16:06   ` Rudolf Adamkovič
2023-12-22 16:14     ` Ihor Radchenko
2024-01-22 13:03   ` Ihor Radchenko

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='tcu24e$9ml$1@ciao.gmane.io' \
    --to=manikulin@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).