From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#9054: 24.0.50; show source in other window Date: Fri, 17 Sep 2021 19:05:28 +0300 Organization: LINKOV.NET Message-ID: <87tuij5uo7.fsf@mail.linkov.net> References: <87k4bovfd0.fsf@sophokles.streitblatt.de> <87eea09rwg.fsf@gnus.org> <878s05wxx8.fsf@mail.linkov.net> <87tuisras8.fsf@gnus.org> <87ee9wh4kh.fsf@mail.linkov.net> <82a9592e-b05a-399c-419e-fcbb3e829b35@gmx.at> <87czpfymhj.fsf@mail.linkov.net> <44514af3-09b8-8b6b-c436-cfc5f899142a@gmx.at> <87fsu8pdcp.fsf@mail.linkov.net> <19553bc9-5be3-619f-94dc-aeea86220ab6@gmx.at> <87czp9x3bj.fsf@mail.linkov.net> <5232ff3a-c4af-cae1-808a-8eae536aea20@gmx.at> <87a6kcuzc3.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36064"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: Lars Ingebrigtsen , 9054@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 17 18:12:33 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mRGTZ-0009B1-52 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 17 Sep 2021 18:12:33 +0200 Original-Received: from localhost ([::1]:59944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mRGTY-0005w0-2t for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 17 Sep 2021 12:12:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60570) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mRGRA-000372-8v for bug-gnu-emacs@gnu.org; Fri, 17 Sep 2021 12:10:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49450) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mRGRA-00034K-17 for bug-gnu-emacs@gnu.org; Fri, 17 Sep 2021 12:10:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mRGR9-0005zU-SR for bug-gnu-emacs@gnu.org; Fri, 17 Sep 2021 12:10:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 Sep 2021 16:10:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9054 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 9054-submit@debbugs.gnu.org id=B9054.163189494922907 (code B ref 9054); Fri, 17 Sep 2021 16:10:03 +0000 Original-Received: (at 9054) by debbugs.gnu.org; 17 Sep 2021 16:09:09 +0000 Original-Received: from localhost ([127.0.0.1]:60986 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRGQG-0005xO-QI for submit@debbugs.gnu.org; Fri, 17 Sep 2021 12:09:09 -0400 Original-Received: from relay3-d.mail.gandi.net ([217.70.183.195]:57857) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mRGQA-0005wd-D2 for 9054@debbugs.gnu.org; Fri, 17 Sep 2021 12:09:04 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 4F76060013; Fri, 17 Sep 2021 16:08:54 +0000 (UTC) In-Reply-To: (martin rudalics's message of "Fri, 17 Sep 2021 09:39:10 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:214556 Archived-At: >> For example, ‘C-h f’ (describe-function) first calls a back-end function >> that collects all information about a function and returns it in a such form: >> >> ((type . function) >> (name . "car") >> (source-file . "src/data.c") >> (Info-node . "(elisp) List Elements") >> (docstring . ...) >> ...) >> >> Then it gives this data to a front-end function that will render it >> as buttonized text in the Help buffer, or as html in a eww buffer, >> or as Info markup in an Info buffer, etc. > > And ‘describe-function-help-front-end’ would peruse that information. ‘describe-function’ is already a front-end function for the help buffers. But the problem is that it currently also amalgamates back-end code to it. > And 'describe-key-help-front-end' would use a 'key' entry. > But what would you pass to 'view-lossage-help-front-end'? 'view-lossage' is already a very simple function, no need to add a back-end for it. > Anyway I seem to see what you have in mind: Each front end would have > its own rules for how to render the cdr of 'type' or 'name' entries. > And the back end would not be concerned with rendering. Exactly. >>>> Indeed, now there are such modifiers: ‘C-x 4 0’ and ‘C-x 4 4’. >>> >>> I meant modifiers for mouse-1 clicks on the menu entry. >> >> But ‘C-x 4 0’ and ‘C-x 4 4’ already do what is needed, >> and indeed I tested these work fine: ‘C-x 4 0 down-mouse-3’. > > That's not for people who start to explore Emacs via the context menus. > Since you are currently writing them from scratch, they should provide a > simpler interface IMHO. I'd say C- should pop up the desired > information in another window, M- in another frame, ... But C- and M- are already bound.