all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ingo Lohmar <ingo.lohmar@posteo.net>
To: emacs-orgmode@gnu.org
Subject: Bug: org-link-descriptive needs to be buffer-local [9.4.4 (release_9.4.4 @ /usr/local/share/emacs/28.0.50/lisp/org/)]
Date: Thu, 01 Apr 2021 21:15:32 +0200	[thread overview]
Message-ID: <87pmzdhl4b.fsf@kenko.localhost.com> (raw)


Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

     https://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org mailing list.
------------------------------------------------------------------------

I stumbled upon weird behavior when using `org-toggle-link-display', and
I finally checked what that is about.

Observation:
- use `org-toggle-link-display' in org buffer A, and (coming
  from the defaults) links are now shown in full (not just the
  description), but only in buffer A
- switch to org buffer B, still only showing the description part, and
  again use `o-t-l-d' --- nothing changes
- the state for new org buffers is as before, onle link descriptions are
  shown.

This behavior is very confusing, IMO.  The reason is simple.  The
display hiding comes from changing the `buffer-invisibility-spec', which
is automatically buffer-local.  But the state of the org toggle is kept
in `org-link-descriptive', which is global!

I suggest a simple fix that I just tested: make `org-link-descriptive'
automatically buffer-local, by adding ":local t" to the defcustom.

NB: This also fixes a related bug that

    eval: (org-toggle-link-display)

in the file-local works properly --- it did not work for me before.

Thanks.


Emacs  : GNU Emacs 28.0.50 (build 5, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0)
 of 2021-03-27
Package: Org mode version 9.4.4 (release_9.4.4 @ /usr/local/share/emacs/28.0.50/lisp/org/)


             reply	other threads:[~2021-04-01 19:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-01 19:15 Ingo Lohmar [this message]
2021-04-06  2:36 ` Bug: org-link-descriptive needs to be buffer-local [9.4.4 (release_9.4.4 @ /usr/local/share/emacs/28.0.50/lisp/org/)] Kyle Meyer
2021-04-06 18:08   ` Ingo Lohmar
2021-04-07  4:56     ` Kyle Meyer

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pmzdhl4b.fsf@kenko.localhost.com \
    --to=ingo.lohmar@posteo.net \
    --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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.