From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alex Newsgroups: gmane.emacs.bugs Subject: bug#27890: 26.0.50; describe-font does not use Help buffer history Date: Sat, 05 Aug 2017 17:05:29 -0600 Message-ID: <877eyhwr7q.fsf@lylat> References: <87ini8b8oz.fsf@lylat> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1501974377 2821 195.159.176.226 (5 Aug 2017 23:06:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 5 Aug 2017 23:06:17 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: 27890@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 06 01:06:13 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1de890-00005V-5Q for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Aug 2017 01:06:06 +0200 Original-Received: from localhost ([::1]:59043 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1de896-0001f2-DW for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Aug 2017 19:06:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1de890-0001eo-6X for bug-gnu-emacs@gnu.org; Sat, 05 Aug 2017 19:06:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1de88w-0002A1-Ez for bug-gnu-emacs@gnu.org; Sat, 05 Aug 2017 19:06:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41149) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1de88w-000296-9z for bug-gnu-emacs@gnu.org; Sat, 05 Aug 2017 19:06:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1de88v-0007XC-SQ for bug-gnu-emacs@gnu.org; Sat, 05 Aug 2017 19:06:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alex Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 Aug 2017 23:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27890 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27890-submit@debbugs.gnu.org id=B27890.150197435528949 (code B ref 27890); Sat, 05 Aug 2017 23:06:01 +0000 Original-Received: (at 27890) by debbugs.gnu.org; 5 Aug 2017 23:05:55 +0000 Original-Received: from localhost ([127.0.0.1]:43826 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1de88p-0007Wr-Br for submit@debbugs.gnu.org; Sat, 05 Aug 2017 19:05:55 -0400 Original-Received: from mail-it0-f50.google.com ([209.85.214.50]:38115) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1de88o-0007Wf-15 for 27890@debbugs.gnu.org; Sat, 05 Aug 2017 19:05:54 -0400 Original-Received: by mail-it0-f50.google.com with SMTP id m34so5297013iti.1 for <27890@debbugs.gnu.org>; Sat, 05 Aug 2017 16:05:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=xpOEw8a4UnUKexMVFbJ9LwTEcDE/DAymCQl3hZeU874=; b=DTl2uZZmcvDRMHfZ1NXOh5JGWF0QekfonjGSKfE9YjlVeFawVbml1Q3WsonI5ErxXY 0xp6Hl/xBAMxaeKfuK+tGnk4jobUxqvVd0Sm/0ZlpL2VCZ9I585P/cykpBJBbCpO1Y/R EN+koxyrj/OPuVBSt64JydjfCTncJQySM9eUPgpipzawKprVFl6h0x7Lqj6fUtXClNr+ XDSf6DcbJrO4PyK7bkaa69+mG7z6dKRfRr+PsAOwjJq6CA7//q1fabx5GUIWjWLyAIjs iyHEOrCd6rMvl95difJXVT8NwYtMktqB4QlK2uzCggi7llpuZ0rALuafML0mELACb/SG 129g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=xpOEw8a4UnUKexMVFbJ9LwTEcDE/DAymCQl3hZeU874=; b=jbD1NfKRH0vLu/Z4PMLouyHAdnPdke0jTEPG2tqNU5Pvo891iL+ngB8GmynFCNvpsx YD582UYwSiPzLmj0mTmRob46S1N5Vus/DbbI9PHWp6n6wr915yCpRuK0TgksDnga+Jzm qwhApBN9BsjIwW5AxTyv7M3Y0eRdsCsn62rCidXwfg1oVG63N1qhIsjPqMiCEwqbfqpH twa7gIc2gAkPog7diMOAOoDe6/EenORvkTeeLNU53cHRcnvE/sJzZXys9qoUa6F9WJy7 /yIALvncLn+seuZmSRc4UDa/Z29Y8b2NDw+0C8Dex3qVk44JzC7LBMFQe1invDEHB2+e KaIA== X-Gm-Message-State: AIVw112c7eldv8dmFf+TZ5ozKupctCpD2sOhYTHk3X32F/3dGNZIs7o+ aAfSABYPiY86PrNR X-Received: by 10.36.175.11 with SMTP id t11mr7109096ite.97.1501974347946; Sat, 05 Aug 2017 16:05:47 -0700 (PDT) Original-Received: from lylat (S010664777d9cebe3.ss.shawcable.net. [70.64.85.59]) by smtp.gmail.com with ESMTPSA id c4sm2343824ioc.18.2017.08.05.16.05.46 for <27890@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 05 Aug 2017 16:05:46 -0700 (PDT) In-Reply-To: <87ini8b8oz.fsf@lylat> (Alex's message of "Mon, 31 Jul 2017 15:25:16 -0600") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:135456 Archived-At: --=-=-= Content-Type: text/plain Alex writes: > describe-font does not add to the *Help* buffer's history. The [Back] > button does appear when there is a non-empty history, but going back and > then forward does not restore the font description. Here's a patch for it. --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-Use-help-mode-xrefs-in-describe-font.patch Content-Description: xref >From 658823b3a1adec25283d28e59710aa160afd7908 Mon Sep 17 00:00:00 2001 From: Alexander Gramiak Date: Sat, 5 Aug 2017 16:09:54 -0600 Subject: [PATCH] Use help-mode xrefs in describe-font * lisp/international/mule-diag.el (describe-font): Use help-setup-xref (Bug#27890). --- lisp/international/mule-diag.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/international/mule-diag.el b/lisp/international/mule-diag.el index c274621f77..655a5ca6d4 100644 --- a/lisp/international/mule-diag.el +++ b/lisp/international/mule-diag.el @@ -838,7 +838,8 @@ describe-font (interactive "sFont name (default current choice for ASCII chars): ") (or (and window-system (fboundp 'fontset-list)) (error "No fonts being used")) - (let (font-info) + (let ((xref-item (list #'describe-font fontname)) + font-info) (if (or (not fontname) (= (length fontname) 0)) (setq fontname (face-attribute 'default :font))) (setq font-info (font-info fontname)) @@ -850,6 +851,7 @@ describe-font ;; this problem. (message "No information about \"%s\"" (font-xlfd-name fontname)) (message "No matching font found")) + (help-setup-xref xref-item (called-interactively-p 'interactive)) (with-output-to-temp-buffer "*Help*" (describe-font-internal font-info))))) -- 2.13.2 --=-=-=--