Lars Ingebrigtsen <larsi@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 49587) by debbugs.gnu.org; 22 Jul 2022 20:47:40 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 22 16:47:40 2022 Received: from localhost ([127.0.0.1]:42530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oEzYi-0005bu-7q for submit <at> debbugs.gnu.org; Fri, 22 Jul 2022 16:47:40 -0400 Received: from quimby.gnus.org ([95.216.78.240]:42546) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1oEzYd-0005bZ-IP for 49587 <at> debbugs.gnu.org; Fri, 22 Jul 2022 16:47:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=KwkMB6tgNQgzAjfnOTQyJi2KC11Gg2/+WonzdPV1PJ8=; b=Qps1ocV+v+nvBVB2JGyy8/oX3m BVPmO4813R0YldxPI97rp3Ibt/43BuAYzFSKRruH/oXghUJ7byh5Fc2tGfDdurlC7jXD+zn06pxqn Xt4+qezwmTgKvWcSrVfcPrQs5QzcTqo91WUmDgy/Hq/m9wNTQmCFbotUFRZHtX0jeHUc=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1oEzYU-0002s4-I4; Fri, 22 Jul 2022 22:47:28 +0200 From: Lars Ingebrigtsen <larsi@HIDDEN> To: Juri Linkov <juri@HIDDEN> Subject: Re: bug#49587: Where are links in describe-symbol minor-mode? In-Reply-To: <87bkth89ys.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Fri, 22 Jul 2022 17:04:43 +0200") References: <87a6mngs5m.fsf@HIDDEN> <87fsj1p60g.fsf@HIDDEN> <86v8rv7ev6.fsf@HIDDEN> <87bkth89ys.fsf@HIDDEN> X-Now-Playing: Lisa Gerrard's _Burn_: "Keson (Until My Strength Returns)" Date: Fri, 22 Jul 2022 22:47:25 +0200 Message-ID: <87sfms98o2.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen <larsi@HIDDEN> writes: > No, I think it was just implemented that way because it was simple. As > somebody said in this thread, those functions should be rewritten > "inside out" -- i.e., separate out the stuff inside those [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 49587 Cc: 49587 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Lars Ingebrigtsen <larsi@HIDDEN> writes: > No, I think it was just implemented that way because it was simple. As > somebody said in this thread, those functions should be rewritten > "inside out" -- i.e., separate out the stuff inside those commands that > actually generate the text to that they can be reused. I'll have a go > at doing that... And looking at this yet again, I really think all of these functions should be radically rewritten -- they're incredibly convoluted at present. That is, pass in explicitly describe-function-orig-buffer etc instead of the weird dance, and stop using standard-output for half of the functions, because it really doesn't help. But it's a pretty big job, and there few tests to detect if something goes wrong (as it inevitably will)... I'll come back to it later, and I'm leaving this bug report open. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no
bug-gnu-emacs@HIDDEN
:bug#49587
; Package emacs
.
Full text available.Received: (at 49587) by debbugs.gnu.org; 22 Jul 2022 15:04:58 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 22 11:04:58 2022 Received: from localhost ([127.0.0.1]:42139 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oEuD4-0006ih-FF for submit <at> debbugs.gnu.org; Fri, 22 Jul 2022 11:04:58 -0400 Received: from quimby.gnus.org ([95.216.78.240]:39622) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1oEuCz-0006iP-LZ for 49587 <at> debbugs.gnu.org; Fri, 22 Jul 2022 11:04:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=6wV367KMV/0kuTP8TEm1qI98cSWm4p7b26EsRYq+BZU=; b=ZExRYWpcsTq4dV9ka2SVjXb2BI Hc+wivuK4gXeoYW46Y5ol+4CtB4KbJOobGaMy8wF7qV1lzmxVlEWK+ydNAGj3DilwVxpquFswpZxN +cQNSTRdqE1sE1TrzhQvIWwuw/CBoLg/ETax2/+mexKip6rmXJ/CJo3jHz0XMcVeyLt0=; Received: from 46.156.37.168.tmi.telenormobil.no ([46.156.37.168] helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1oEuCq-00006k-6x; Fri, 22 Jul 2022 17:04:46 +0200 From: Lars Ingebrigtsen <larsi@HIDDEN> To: Juri Linkov <juri@HIDDEN> Subject: Re: bug#49587: Where are links in describe-symbol minor-mode? In-Reply-To: <86v8rv7ev6.fsf@HIDDEN> (Juri Linkov's message of "Sun, 17 Jul 2022 21:30:37 +0300") References: <87a6mngs5m.fsf@HIDDEN> <87fsj1p60g.fsf@HIDDEN> <86v8rv7ev6.fsf@HIDDEN> Date: Fri, 22 Jul 2022 17:04:43 +0200 Message-ID: <87bkth89ys.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov <juri@HIDDEN> writes: > With a setup like this > > (push `("\\*Help\\*" display-buffer-same-window > (inhibit-same-window . nil)) > display-buffer-alist) > > M-x windmove-display-left RET > C-h o dired-hide-details-mode RE [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 49587 Cc: 49587 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Juri Linkov <juri@HIDDEN> writes: > With a setup like this > > (push `("\\*Help\\*" display-buffer-same-window > (inhibit-same-window . nil)) > display-buffer-alist) > > M-x windmove-display-left RET > C-h o dired-hide-details-mode RET > > the *Help* buffer is displayed in two windows. I see. > Does `C-h o' really need to display the same buffer twice? No, I think it was just implemented that way because it was simple. As somebody said in this thread, those functions should be rewritten "inside out" -- i.e., separate out the stuff inside those commands that actually generate the text to that they can be reused. I'll have a go at doing that... > BTW, I noticed that the generated docstring of define-minor-mode > refers back to the help of both function/variable, whereas it should > refer only to the variable: [...] > To check whether the minor mode is enabled in the current buffer, > -evaluate `%s'. > +evaluate the variable `%s'. No, it's written in that hand-wavey way because the %s there may be a getter function -- it might not be a variable. It could be rewritten to use totally different sentences in the variable vs. getter cases, though. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no
bug-gnu-emacs@HIDDEN
:bug#49587
; Package emacs
.
Full text available.Received: (at 49587) by debbugs.gnu.org; 17 Jul 2022 19:35:05 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 17 15:35:05 2022 Received: from localhost ([127.0.0.1]:48595 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oDA2j-0006pR-6E for submit <at> debbugs.gnu.org; Sun, 17 Jul 2022 15:35:05 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:34391) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1oDA2g-0006on-EW for 49587 <at> debbugs.gnu.org; Sun, 17 Jul 2022 15:35:03 -0400 Received: (Authenticated sender: juri@HIDDEN) by mail.gandi.net (Postfix) with ESMTPSA id 86D69240003; Sun, 17 Jul 2022 19:34:53 +0000 (UTC) From: Juri Linkov <juri@HIDDEN> To: Lars Ingebrigtsen <larsi@HIDDEN> Subject: Re: bug#49587: Where are links in describe-symbol minor-mode? In-Reply-To: <87fsj1p60g.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Sat, 16 Jul 2022 14:59:59 +0200") Organization: LINKOV.NET References: <87a6mngs5m.fsf@HIDDEN> <87fsj1p60g.fsf@HIDDEN> Date: Sun, 17 Jul 2022 21:30:37 +0300 Message-ID: <86v8rv7ev6.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 49587 Cc: 49587 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) >> Another problem is that with 'C-h o' the same Help buffer is displayed twice >> that breaks some window-displaying commands. > > I'm not sure what can be done about that -- the `C-h o' function > basically just calls `C-h f' and `C-h v'. But what setups do they break > in practice? With a setup like this (push `("\\*Help\\*" display-buffer-same-window (inhibit-same-window . nil)) display-buffer-alist) M-x windmove-display-left RET C-h o dired-hide-details-mode RET the *Help* buffer is displayed in two windows. This is because of these lines in display-buffer-override-next-command: ;; Reset display-buffer-overriding-action ;; after the first display-buffer action (bug#39722). (funcall clearfun) In bug#39722 the same buffer was displayed in two tabs, so now display-buffer-overriding-action affects only the next display, and once the buffer is displayed, it resets the specified location of the window to the default location that is configured to the same window. Does `C-h o' really need to display the same buffer twice? BTW, I noticed that the generated docstring of define-minor-mode refers back to the help of both function/variable, whereas it should refer only to the variable: ``` diff --git a/lisp/emacs-lisp/easy-mmode.el b/lisp/emacs-lisp/easy-mmode.el index c3a4e9fc7a..ab91c2bc37 100644 --- a/lisp/emacs-lisp/easy-mmode.el +++ b/lisp/emacs-lisp/easy-mmode.el @@ -91,7 +91,7 @@ easy-mmode--arg-docstring Disable the mode if ARG is a negative number. To check whether the minor mode is enabled in the current buffer, -evaluate `%s'. +evaluate the variable `%s'. The mode's hook is called both when the mode is enabled and when it is disabled.") ```
bug-gnu-emacs@HIDDEN
:bug#49587
; Package emacs
.
Full text available.Lars Ingebrigtsen <larsi@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 49587) by debbugs.gnu.org; 16 Jul 2022 13:00:13 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jul 16 09:00:13 2022 Received: from localhost ([127.0.0.1]:43232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1oChP2-0006S3-So for submit <at> debbugs.gnu.org; Sat, 16 Jul 2022 09:00:13 -0400 Received: from quimby.gnus.org ([95.216.78.240]:57562) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1oChOz-0006Qa-Pn for 49587 <at> debbugs.gnu.org; Sat, 16 Jul 2022 09:00:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=qRFpdQ6NPzT0ggh9sd7DJQKo3hZ0GrTjpRfoTqYREmg=; b=VLBLahBGMIqb9kDu+L2SDHOHA1 Z8ru8giRykIzSuCVLibtVLfZJzvkcejong55dlwp7/p8s1bh7ed0PxXOKoVLTLXrJH+rWai4dax98 Vx6lVNXvZYReflMuHhUR5F83n5J2q+Ps9VCMteOLI/sBhDzBZLCGIp2YmTknLB7xdKf4=; Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1oChOp-0002JN-GR; Sat, 16 Jul 2022 15:00:01 +0200 From: Lars Ingebrigtsen <larsi@HIDDEN> To: Juri Linkov <juri@HIDDEN> Subject: Re: bug#49587: Where are links in describe-symbol minor-mode? In-Reply-To: <87a6mngs5m.fsf@HIDDEN> (Juri Linkov's message of "Fri, 16 Jul 2021 01:17:57 +0300") References: <87a6mngs5m.fsf@HIDDEN> X-Now-Playing: Autechre's _Plus_: "lux 106 mod" Date: Sat, 16 Jul 2022 14:59:59 +0200 Message-ID: <87fsj1p60g.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov <juri@HIDDEN> writes: > Try to use 'C-h o' on the symbol of a minor mode defined by 'define-minor-mode'. > > There are many such symbols, for example: > > C-h o dired-hide-details-mode > > displays the Help buffer where te [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 49587 Cc: 49587 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Juri Linkov <juri@HIDDEN> writes: > Try to use 'C-h o' on the symbol of a minor mode defined by 'define-minor= -mode'. > > There are many such symbols, for example: > > C-h o dired-hide-details-mode > > displays the Help buffer where text: > > See options: =E2=80=98dired-hide-details-hide-symlink-targets=E2=80=99 = and > =E2=80=98dired-hide-details-hide-information-lines=E2=80=99. > > has no links in the first part of the buffer that describes the function, > but there are links only in the second part that describes the variable. I've now fixed this in Emacs 29. > Also such text in the output of 'C-h o' looks clumsy: > > This is a minor mode. If called interactively, toggle the > =E2=80=98Dired-Hide-Details mode=E2=80=99 mode. Well, it looks pretty clumsy `C-h f', too. > Another problem is that with 'C-h o' the same Help buffer is displayed tw= ice > that breaks some window-displaying commands. I'm not sure what can be done about that -- the `C-h o' function basically just calls `C-h f' and `C-h v'. But what setups do they break in practice? --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no
bug-gnu-emacs@HIDDEN
:bug#49587
; Package emacs
.
Full text available.Lars Ingebrigtsen <larsi@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 49587) by debbugs.gnu.org; 16 Jul 2021 09:20:14 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 16 05:20:14 2021 Received: from localhost ([127.0.0.1]:50499 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1m4K0z-0000Gg-Vx for submit <at> debbugs.gnu.org; Fri, 16 Jul 2021 05:20:14 -0400 Received: from quimby.gnus.org ([95.216.78.240]:38858) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1m4K0x-0000GM-OI for 49587 <at> debbugs.gnu.org; Fri, 16 Jul 2021 05:20:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=yKMIJGbHTHKaYtiZOcM7W8fAHALKaYSQH6Xrq2J6YWw=; b=WFCbTg2pmKIZM/+dZeh3EQ7Axa nMili2NUjlkyNVWZ0/z0RAgb92feXL3HxOi6WwiX4aeA5bai0uy/b70VE9Bu+e1gIh6xsjuMwXsHl FWtHW05NJJrg44g7BzOsmzs6ZBGnmke36ynYjlO2ZAPtG5Oo2SStD8i+6Q5kIfIcUKH0=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <larsi@HIDDEN>) id 1m4K0o-0002TF-Os; Fri, 16 Jul 2021 11:20:05 +0200 From: Lars Ingebrigtsen <larsi@HIDDEN> To: Juri Linkov <juri@HIDDEN> Subject: Re: bug#49587: Where are links in describe-symbol minor-mode? References: <87a6mngs5m.fsf@HIDDEN> X-Now-Playing: Four Tet's _Sixteen Oceans_: "Green" Date: Fri, 16 Jul 2021 11:20:02 +0200 In-Reply-To: <87a6mngs5m.fsf@HIDDEN> (Juri Linkov's message of "Fri, 16 Jul 2021 01:17:57 +0300") Message-ID: <87im1ad399.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Juri Linkov <juri@HIDDEN> writes: > Try to use 'C-h o' on the symbol of a minor mode defined by 'define-minor-mode'. > > There are many such symbols, for example: > > C-h o dired-hide-details-mode > > displays the Help buffer where te [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 49587 Cc: 49587 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Juri Linkov <juri@HIDDEN> writes: > Try to use 'C-h o' on the symbol of a minor mode defined by 'define-minor= -mode'. > > There are many such symbols, for example: > > C-h o dired-hide-details-mode > > displays the Help buffer where text: > > See options: =E2=80=98dired-hide-details-hide-symlink-targets=E2=80=99 = and > =E2=80=98dired-hide-details-hide-information-lines=E2=80=99. > > has no links in the first part of the buffer that describes the function, > but there are links only in the second part that describes the variable. I think the *Help* buffer thing is due for an overhaul. I've been poking at it to make it more composable, but it's currently implemented as a series of hacks that insert stuff into the buffer, and then it later tries to determine what it's just inserted. This is a fallout of that strategy -- it skips certain paragraphs when it finally gets around to doing link recognition, instead of just doing that immediately when inserting the doc string. There's also the annoying reliance on `standard-output', which is pretty bizarre, because it means that there's (with-current-buffer standard-output ... all over the place. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no
bug-gnu-emacs@HIDDEN
:bug#49587
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 15 Jul 2021 22:36:14 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 15 18:36:14 2021 Received: from localhost ([127.0.0.1]:49963 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1m49xm-0001St-5p for submit <at> debbugs.gnu.org; Thu, 15 Jul 2021 18:36:14 -0400 Received: from lists.gnu.org ([209.51.188.17]:56954) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1m49xi-0001Si-8m for submit <at> debbugs.gnu.org; Thu, 15 Jul 2021 18:36:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51370) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <juri@HIDDEN>) id 1m49xh-0002lV-HB for bug-gnu-emacs@HIDDEN; Thu, 15 Jul 2021 18:36:09 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:36643) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <juri@HIDDEN>) id 1m49xd-0007mp-8Q for bug-gnu-emacs@HIDDEN; Thu, 15 Jul 2021 18:36:09 -0400 Received: (Authenticated sender: juri@HIDDEN) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 30368C0003 for <bug-gnu-emacs@HIDDEN>; Thu, 15 Jul 2021 22:35:59 +0000 (UTC) From: Juri Linkov <juri@HIDDEN> To: bug-gnu-emacs@HIDDEN Subject: Where are links in describe-symbol minor-mode? Organization: LINKOV.NET Date: Fri, 16 Jul 2021 01:17:57 +0300 Message-ID: <87a6mngs5m.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=217.70.183.198; envelope-from=juri@HIDDEN; helo=relay6-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.6 (--) Try to use 'C-h o' on the symbol of a minor mode defined by 'define-minor-mode'. There are many such symbols, for example: C-h o dired-hide-details-mode displays the Help buffer where text: See options: ‘dired-hide-details-hide-symlink-targets’ and ‘dired-hide-details-hide-information-lines’. has no links in the first part of the buffer that describes the function, but there are links only in the second part that describes the variable. There is no such problem when a function and a variable are described separately: C-h f dired-hide-details-mode C-h v dired-hide-details-mode Also such text in the output of 'C-h o' looks clumsy: This is a minor mode. If called interactively, toggle the ‘Dired-Hide-Details mode’ mode. Another problem is that with 'C-h o' the same Help buffer is displayed twice that breaks some window-displaying commands.
Juri Linkov <juri@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#49587
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.