From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Vladimir Nikishkin Newsgroups: gmane.emacs.bugs Subject: bug#65905: 30.0.50; Consider changing info buffer names to info<(org)> rather than info<3> Date: Wed, 13 Sep 2023 22:04:31 +0800 Message-ID: <87a5tq2mj5.fsf@laptop.lockywolf.net> References: <87jzsu3cx9.fsf@laptop.lockywolf.net> <83bke6nsam.fsf@gnu.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="16029"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.10.7; emacs 30.0.50 Cc: 65905@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 13 16:10:07 2023 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 1qgQZD-0003vk-DE for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 13 Sep 2023 16:10:07 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgQZ6-0007Ei-4k; Wed, 13 Sep 2023 10:10:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qgQZ3-00079E-OW for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2023 10:09:57 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qgQZ3-0005kj-FD for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2023 10:09:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qgQZ8-0000wY-Dj for bug-gnu-emacs@gnu.org; Wed, 13 Sep 2023 10:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Vladimir Nikishkin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Sep 2023 14:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65905 X-GNU-PR-Package: emacs Original-Received: via spool by 65905-submit@debbugs.gnu.org id=B65905.16946141483558 (code B ref 65905); Wed, 13 Sep 2023 14:10:02 +0000 Original-Received: (at 65905) by debbugs.gnu.org; 13 Sep 2023 14:09:08 +0000 Original-Received: from localhost ([127.0.0.1]:35494 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgQYF-0000vJ-RZ for submit@debbugs.gnu.org; Wed, 13 Sep 2023 10:09:08 -0400 Original-Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]:55506) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgQYD-0000uh-Cv for 65905@debbugs.gnu.org; Wed, 13 Sep 2023 10:09:06 -0400 Original-Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-1c1ff5b741cso62250645ad.2 for <65905@debbugs.gnu.org>; Wed, 13 Sep 2023 07:09:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694614134; x=1695218934; darn=debbugs.gnu.org; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=K3gPugI0QTPWEtkjxpUy+W8kKjY++WwiWSA5frgnaZs=; b=TqHNwizk3f4edhndxO/7Nnc7Wo2e0piC+j6UShhBZqMOFw47NMpN92G+v/vnNu22Y3 pbC33SL3bohWrbP1sEbzKRedu++ureYMlVPQ7ywrsgEpHXiHkdyUB0+ylfNy1tKzcA1u hMu2uKZ2+BWok0B6Zd6DrOQqzFhOS+BfpQ60UsSqBRTxfxsWHQkUgkE1sc0SW9dZdT27 BrJyvglVJWTuVpMVxYM0fjE5fxqsb5QILag301Ubb4EccFXH4kzqn4aR753XWTVOuEBD /l1K1+2LCnHdPdO9s+tUfqTinsU9LnyK5sOnTLVVilVXS21kf1MhYMpgSY4U4cSlJKIq KN/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694614134; x=1695218934; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=K3gPugI0QTPWEtkjxpUy+W8kKjY++WwiWSA5frgnaZs=; b=q8gci36Tyfffov7OQ5CG7o+dbecNMDsFLpKLNstEz4VcRkR1Zun9PPV0J/vHz1C2OG fum30vd62Zkn+7Ax2xffgEYBOTNss2hZYDO7Z/gRKrMSwedOx/KxvKVnWRcOv5B2yDi3 43h+8ThEsd8Go6MM74E3BttQ1nMNwIS6Tp1FTs9Wla0CO0t5kxIvvsSq28ztXwjZbjtG VcDWB1HamMVuZW909+YV6YxPZIUztXvUABibzIJ1SyIaj5JXUMrLLZn36XZlyD70Obqr bMFdpowgPNW6llRd70HsDRCYp1qPDkD2klKYlqk0V24zdCCHqEtPZCmoaS166iWHm4MW 0DgA== X-Gm-Message-State: AOJu0YzOzTHIx+4GjwA632ifo/kaSqwRZ4IZ3uAv+vIYQGbV5NGCZTeN x2e+Ml7T+QxiLCq5MiLk13dNClFl6ApGNw== X-Google-Smtp-Source: AGHT+IEJ7kVWHtm/aaLBkeK8VDaTpF5YysapvV1YTmTquvXd3NimKHNz8sr1/fq/onLcojY//7fTfQ== X-Received: by 2002:a17:903:230e:b0:1b8:b285:ec96 with SMTP id d14-20020a170903230e00b001b8b285ec96mr3714254plh.23.1694614133569; Wed, 13 Sep 2023 07:08:53 -0700 (PDT) Original-Received: from laptop.lockywolf.net ([2001:470:24:315::102]) by smtp.gmail.com with ESMTPSA id d4-20020a170902c18400b001bba3a4888bsm10481610pld.102.2023.09.13.07.08.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 07:08:53 -0700 (PDT) In-reply-to: <83bke6nsam.fsf@gnu.org> 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:270289 Archived-At: Eli Zaretskii writes: >> From: Vladimir Nikishkin >> Date: Wed, 13 Sep 2023 12:09:48 +0800 >> >> >> Dear Emacs Developers, >> >> I would like to ask for a small usability improvement to Emacs. Could we >> name info buffers as "info<(manual)>" (or, maybe, just >> "info"), not as "info<3>"? I do not always remember in which >> order I open info manuals, and having a file name in the buffer name >> should be nice an easily readable. > > Did you try using "C-h R"? It will find the existing Info buffer > without your need to remember any numbers. Just type > > C-h R org RET > > I have dozens of Info manuals in my Emacs sessions, and I always use > "C-h R" to get to those whose numbers I don't remember (which is all > but the 2 Emacs manuals). But it's not the same thing, is it? If I open some manual recently and then forget its name, how do I switch back _to that manual which I have been reading in the past hour but which name I do not remember_? At the moment I have installed an advice: #+begin_src (advice-add 'info-display-manual :after (lambda (x) (rename-buffer (seq-concatenate 'string "info<" (file-name-nondirectory Info-current-file) ">")))) #+end_src I also have a hack to show buffer names in window titles, and seeing there info is nicer than info<3>. (But that snippet is a little suboptimal, so I am a little hesitant to show it.) #+begin_src elisp (defvar-local lockywolf/org-buffer-memoized-title nil) (defun lockywolf/generate-frame-title () "Generated frame title from all buffers." (interactive) (let* ((retval "") (nwin (let ((nwin 0)) (walk-window-tree (lambda (x) (setf nwin (+ 1 nwin)))) nwin)) (maxlen (if (= nwin 1) 999 11))) ;; (message "lwf:debug:nwin=%s" nwin) (walk-window-tree (lambda (x) ;; (message "mode=%s" major-mode) (defun truncate-title (title) (seq-subseq title 0 (min maxlen (seq-length title)))) (setf retval (seq-concatenate 'string retval " " (let ((wb (window-buffer x))) (with-current-buffer wb (truncate-title (if (not (equalp major-mode 'org-mode)) (buffer-name wb) ;;;;; org-get-title is super slow ;; (progn ;; (if (buffer-modified-p) ;; (setf lockywolf/org-buffer-memoized-title (org-get-title))) ;; (if (equalp nil lockywolf/org-buffer-memoized-title) ;; (setf lockywolf/org-buffer-memoized-title (buffer-name wb))) ;; lockywolf/org-buffer-memoized-title) (seq-concatenate 'string "TMP:" (buffer-name wb)) )) )))))) (setf (frame-parameter nil 'name) retval) retval)) (setq-default frame-title-format '(:eval (lockywolf/generate-frame-title))) #+end_src -- Your sincerely, Vladimir Nikishkin (MiEr, lockywolf) (Laptop)