From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mBTzHgkcZmDoSAEAgWs5BA (envelope-from ) for ; Thu, 01 Apr 2021 21:16:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id AHO/GAkcZmD1fwAAbx9fmQ (envelope-from ) for ; Thu, 01 Apr 2021 19:16:25 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6C9911325B for ; Thu, 1 Apr 2021 21:16:24 +0200 (CEST) Received: from localhost ([::1]:59642 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lS2nn-0003bm-K1 for larch@yhetil.org; Thu, 01 Apr 2021 15:16:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46842) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lS2nA-0003bd-TO for emacs-orgmode@gnu.org; Thu, 01 Apr 2021 15:15:44 -0400 Received: from mout01.posteo.de ([185.67.36.65]:37623) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lS2n6-0005R5-FA for emacs-orgmode@gnu.org; Thu, 01 Apr 2021 15:15:44 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 8AB1C16005F for ; Thu, 1 Apr 2021 21:15:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1617304533; bh=c0cXhwmmAZQdJT3ttcKseSEcqSkBo/qdOy6Y2Ev3YXM=; h=From:To:Subject:Date:From; b=Sg3luy83aQ1fLDJHLB+J1yiugs0m3gDY1OBgoGJkq06QtS7zWHX+KAWWqFiH51cfl WRNr50oWL+OvAY2P+bOb5mdj7Zb5ynmyutLY+JbqjVtkrIFbgjz1/ZkNijaYkMxIwg e2cAJX/1Ldi8CnmZJnCbXA5p1F4EDS4lx0ymrPnpsWabpKNeuHEaClKr7anPUjK6IW fImK4YH2Ki83816jgy8ul6C0deMImyAkk8KTBO9pJCJQYideF5BEC6J90az4vXPtof A8jugTesphg09H81JUFNt0AbGZnSuJtEABRsS82jEv3IlX6RYmHRlSWEUKmymhazzp wbLd3bfDo0QFg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FBCZD6x12z9rxK for ; Thu, 1 Apr 2021 21:15:32 +0200 (CEST) From: Ingo Lohmar 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 Message-ID: <87pmzdhl4b.fsf@kenko.localhost.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=ingo.lohmar@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617304584; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=qHXVvVF8atWopBeA7IswMnrHz7E2JgQgkvQA6PWWM7E=; b=SDqqUPbQIZDN/5ZBW4P+sQYbmFwEt5n8jbTaOibmcxVOOmqwpgAsgY6LfeoiQz+tTHjRQL OyJWAHfJM9ss5tpISlG5edhPME1HISCCvF3H/j3otQ1wb4ByrcGbfLjAgU3xI+atVJtMuc DJelCJhC+06sXaCl7ZJXeoyeUaGkejee3tg+F6sERHttuDffZe1GLwOBwKqCQSxP3s686m gihXi6zG8HQSzh/1pafrvpBAoB2Pq/Dlbn3SclfwysxMcuctlLyow1D2ELOlvKTWNEPE4V Ext2zdb8rTOsCYcOM/j0ZCl/HHoSLMlqBdW56HPSyfMSsFru1ye8AA5VZPNB8A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617304584; a=rsa-sha256; cv=none; b=PGx89/I6zPwAehFx8UTnlM+D7h/bLnj15TBLMydh2oGrquPPuzmJa+DDWkbYuKXz64REzV rX97GMJAByYLIaPeukKDu8NaPkwmMHeNdh4dppMl7mqJjpQmtjT9wiQrc+/lWW1rEb8jTb fPRV0Ex9vTwg0+RoxmQZQQP0eRvtK9mxy8XyZSw5QW0nImZgNokvnGZsfxJHUBfwMk0p4c cL4ceQokM+cG088PHedtHt10dN82IXLyXipW1/bwKvoNxV9LDzaBWjm71jgLroG4SPTC+l iKmASJ1z/wslU7wwlFIe5UZrCVKIC+Yw+NUJZAQvcJJ799X9d/rSv8zdIHFq7w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Sg3luy83; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Sg3luy83; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 6C9911325B X-Spam-Score: -3.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: bYIU3puqV4ba 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/)