From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.devel Subject: Re: Patch proposal: display symbol source code in help buffers Date: Mon, 20 Sep 2021 15:17:04 +0800 Message-ID: <878rzrzpfz.fsf@localhost> References: <875yuvlrz3.fsf@gnus.org> <87r1djixiw.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28032"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Kangas , Arthur Miller , emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 20 09:17:38 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mSDYY-00073I-Ev for ged-emacs-devel@m.gmane-mx.org; Mon, 20 Sep 2021 09:17:38 +0200 Original-Received: from localhost ([::1]:40758 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mSDYW-0005nT-4c for ged-emacs-devel@m.gmane-mx.org; Mon, 20 Sep 2021 03:17:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39426) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSDWr-0004KS-PX for emacs-devel@gnu.org; Mon, 20 Sep 2021 03:15:54 -0400 Original-Received: from mail-qt1-x836.google.com ([2607:f8b0:4864:20::836]:46887) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mSDWq-0000I0-5F for emacs-devel@gnu.org; Mon, 20 Sep 2021 03:15:53 -0400 Original-Received: by mail-qt1-x836.google.com with SMTP id e16so3797493qte.13 for ; Mon, 20 Sep 2021 00:15:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=ODRl/58xdYVr+q7qUwI8J7wIe7pyp5FjywD9kzuGcf4=; b=eg9IucoUvTv461nYKwOUwaFQEM1A55Cbx6DdPszNyyPtttpkBVD37zkd1I77db1Z/A d8Li/A96sPyaP1veRI+iia0uBXp2Mgb/1/FKOAnX89je1LCet5MsdA5iHQoA5BTzI7hc BzjWWzxr5OwSe9fTUfVONOcWqJ5Jtj0olcLQKx9vkPlixQUAJJr+veE+13Vg/BtN35f2 8rmbSQw2fksgmtaPkSTYgYH6E8ulzm7kZzYFsZDG3P4qyTk63yFpBzFD8+nBuGKkepVN FRTvIeO61ZwzRc182jnNBq+KMlkJ+UODAfgW3JJmO2U8QAKjC6AiGwnbG+v9g1roOxaF 5LGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=ODRl/58xdYVr+q7qUwI8J7wIe7pyp5FjywD9kzuGcf4=; b=F6AAOQAEAisE5kGzfblaUu5UQ85ZiCmZGFYq6kKmkAytmNXOhA1zoLRtl+ZbXYYfpL xi77pa48r9JBu+w21P+0I86bIzpjulCBq097LmPvLgmb9tOxy0fSgjwJDj+y4zI75AWl nnuge1d3e+MNI9DvPJMyj5Ge2B4damiI9ajS6Aeb0PUEBSnP7iHXvaLXfuboUpjvub7p 4z8AYW56IIw1t7+dB9+yeyO4wLnZSLb0nbf9eg9wDYUAiWE3mSAcyc2onau9N9y85L98 8w5khMn07GWOt1Wnbg3EtYn4RvUXXUfxsnAk9JZnEM5RYWI7B63laH6pfUPHtBEV+HtA MzUA== X-Gm-Message-State: AOAM5338BpPQcumPE3Pp1b2qTN7b2nN/3P3bPi38Xxc9fapURkZBck7F 2MVxKvuvoqWBuigaeKcO3r4= X-Google-Smtp-Source: ABdhPJx7DPKcaqoLCp2nGzxBlHjSCC+JOcg5S8ylE8NOVpWLtqzHK981Q29QXFdUC5CkEglgR6ke/A== X-Received: by 2002:ac8:1e93:: with SMTP id c19mr21964079qtm.60.1632122149586; Mon, 20 Sep 2021 00:15:49 -0700 (PDT) Original-Received: from localhost ([206.190.157.238]) by smtp.gmail.com with ESMTPSA id d17sm3661557qte.0.2021.09.20.00.15.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Sep 2021 00:15:49 -0700 (PDT) In-Reply-To: <87r1djixiw.fsf@gnus.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::836; envelope-from=yantar92@gmail.com; helo=mail-qt1-x836.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:275112 Archived-At: Lars Ingebrigtsen writes: > I'm not against the feature per se, but I'm just puzzled that somebody > would want this feature. :-) Consider scenario when you are editing some-file.el and narrowed the buffer to a defun A. Then, you need to examine source code of another function B also defined in some-file.el. Opening help buffer for B is easy - f with point at the B's call. However, without source code being shown in the help buffer, if I try to hit s, the narrowing is removed and the point is moved to a function definition. Not convenient. Of course, one can create indirect buffer for some-file.el, widen, and jump to B's definition. However, I personally find help buffer with source code more comfortable. Best, Ihor