* [feature request] startup variable for link display
@ 2022-08-09 14:50 Fraga, Eric
2022-08-09 15:21 ` Max Nikulin
0 siblings, 1 reply; 5+ messages in thread
From: Fraga, Eric @ 2022-08-09 14:50 UTC (permalink / raw)
To: Emacs Org mode mailing list
Hello all,
Assuming I have not missed something, is there a variable I can set on
visiting an org buffer/file that ensures that links are displayed fully?
Once I've loaded an org file, I can
M-x org-toggle-link-display RET.
but I would like certain files to start up with links displayed.
If not already possible, it would be nice to either set a file local
variable or have, say:
#+startup: displaylinks
as options.
thank you,
eric
--
: Eric S Fraga, with org release_9.5.4-720-g4db67d in Emacs 29.0.50
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [feature request] startup variable for link display
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
0 siblings, 1 reply; 5+ messages in thread
From: Max Nikulin @ 2022-08-09 15:21 UTC (permalink / raw)
To: emacs-orgmode
On 09/08/2022 21:50, Fraga, Eric wrote:
>
> Once I've loaded an org file, I can
>
> M-x org-toggle-link-display RET.
>
> but I would like certain files to start up with links displayed.
>
> If not already possible, it would be nice to either set a file local
> variable or have, say:
>
> #+startup: displaylinks
Is it possible to use setter function for the defcustom to make the
following work?
# Local Variables:
# org-link-descriptive: nil
# End:
Taking into account recent attempt of early setting of local variables
some complications may ruin such idea. The setter is hardly an
appropriate place for (org-restart-font-lock), but perhaps it may be
skipped during loading.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [feature request] startup variable for link display
2022-08-09 15:21 ` Max Nikulin
@ 2022-08-09 15:46 ` Fraga, Eric
2022-08-09 16:31 ` Max Nikulin
0 siblings, 1 reply; 5+ messages in thread
From: Fraga, Eric @ 2022-08-09 15:46 UTC (permalink / raw)
To: Max Nikulin; +Cc: emacs-orgmode
Hi Max,
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.
> # 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?
Thanks again,
eric
--
: Eric S Fraga, with org release_9.5.4-720-g4db67d in Emacs 29.0.50
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [feature request] startup variable for link display
2022-08-09 15:46 ` Fraga, Eric
@ 2022-08-09 16:31 ` Max Nikulin
2022-08-09 17:03 ` Fraga, Eric
0 siblings, 1 reply; 5+ messages in thread
From: Max Nikulin @ 2022-08-09 16:31 UTC (permalink / raw)
To: emacs-orgmode
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [feature request] startup variable for link display
2022-08-09 16:31 ` Max Nikulin
@ 2022-08-09 17:03 ` Fraga, Eric
0 siblings, 0 replies; 5+ messages in thread
From: Fraga, Eric @ 2022-08-09 17:03 UTC (permalink / raw)
To: Max Nikulin; +Cc: emacs-orgmode
Hi Max,
On Tuesday, 9 Aug 2022 at 23:31, Max Nikulin wrote:
> I had in mind :set attribute of defcustom, see info "(elisp) Variable
> Definitions"
I see. Thank you.
> In the particular case of `org-link-descriptive' some code should be
> executed *after* changing of its value.
Oh, okay, that makes sense. And, yes, the issue of local variables
etc. is complex as we found out last week! I can survive with manual
invocation of the toggling command. It's usually only one document
where I want to do this.
Thanks again,
eric
--
: Eric S Fraga, with org release_9.5.4-720-g4db67d in Emacs 29.0.50
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-08-09 17:09 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2022-08-09 17:03 ` Fraga, Eric
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).