From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +IQMOr1JQGMutgAAbAwnHQ (envelope-from ) for ; Fri, 07 Oct 2022 17:46:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id uLtROr1JQGOiSQEA9RJhRA (envelope-from ) for ; Fri, 07 Oct 2022 17:46:05 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9D3073B8CA for ; Fri, 7 Oct 2022 17:46:05 +0200 (CEST) Received: from localhost ([::1]:51278 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ogpY4-00088h-QM for larch@yhetil.org; Fri, 07 Oct 2022 11:46:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37222) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogozB-0005Hy-Rx for emacs-orgmode@gnu.org; Fri, 07 Oct 2022 11:10:03 -0400 Received: from mr85p00im-hyfv06011401.me.com ([17.58.23.191]:41334) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogoyz-0003cu-68 for emacs-orgmode@gnu.org; Fri, 07 Oct 2022 11:09:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1665155387; bh=+XiGycccVfjIs762geI5dZVoch+Pqp9VMC5ZfwuCWQE=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=MNq+HC4+fOnhJQTVkD0va60TAV6OxmZOSB6YRgvRQqImiFnlcju3r+MsbdheP6gmN 4Vc0rhEWPyKa4al73ZrgczkuNwKT6y4kKT3oz98S4t72NTqCUpuKrDD5nDruQePieS zFoUNw2FZX6vpSHmNAe/o7xcfklXSdwi4+J1re2QhCKHNjD9KWSlSxIJGi7/UKDGjB C1UadOg6ifQ38n37g7DOnrmQQ63kt3cUKyrtxa3P/o0RuCj9nm1NWi0XEaUp8C/zOX ztRcTaRMNWw9Y/W1PPBVHFiXJ9hT6U8vnW/J7Rkcprq6KFcrZW5uNgUmnkFZ82wncO 5sFZ3JDgsZDrA== Received: from Rudolfs-MacBook-Air.local (mr38p00im-dlb-asmtp-mailmevip.me.com [17.57.152.18]) by mr85p00im-hyfv06011401.me.com (Postfix) with ESMTPSA id 72D08357B32E for ; Fri, 7 Oct 2022 15:09:46 +0000 (UTC) From: =?utf-8?Q?Rudolf_Adamkovi=C4=8D?= To: emacs-orgmode@gnu.org Subject: Propertize some navigational keybindings Date: Fri, 07 Oct 2022 17:09:43 +0200 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Proofpoint-GUID: bBmslxalF8DmieWRrRg2mnx4uIggOFnh X-Proofpoint-ORIG-GUID: bBmslxalF8DmieWRrRg2mnx4uIggOFnh X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.425,18.0.816,17.11.62.513.0000000_definitions?= =?UTF-8?Q?=3D2022-01-18=5F01:2022-01-14=5F01,2022-01-18=5F01,2021-12-02?= =?UTF-8?Q?=5F01_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 spamscore=0 clxscore=1015 adultscore=0 phishscore=0 mlxscore=0 bulkscore=0 malwarescore=0 mlxlogscore=400 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2210070090 Received-SPF: pass client-ip=17.58.23.191; envelope-from=salutis@me.com; helo=mr85p00im-hyfv06011401.me.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.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_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1665157565; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=+XiGycccVfjIs762geI5dZVoch+Pqp9VMC5ZfwuCWQE=; b=f14E7oDab/fFlliHnHimuHAap+uhoRSnqwr2kKUJXoGdQgXCRd9BaDdOX98rEfyfPIKN9B mQHI3EXTETaUK62CgInVMRwCI8bYwNQiPDqeb35EnxcQ+I2xIB6zfrcxuLoKi9GSU/2xBn 4B+GLFneoOwIiuwGJeLZc3Z5h6uhiYl46+mFUC7SyNKSCRkyRaBmzfl7X7I3CX2bI5M0t+ gMAunTj6QxP8D82jyROrD1B73Cp4jT+UjJFwy8mq9deNxwCnYT6sbq2snSOrja+Iwm7h14 0W+UATmetEwbTcQC0Cctz90lUhbEMz5QAB+jZgMztMxdP3YtLZLK30a3mWqPTg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665157565; a=rsa-sha256; cv=none; b=Iu2GfmAElEKusyCeL1w/Fk6fag63Vrk/fsfHtPVJ5p+vnDadOODRhal5o1anDkuQhlbOPu xQLJ4CIW7jPwkhmcpPRTiSatM1ewn9J7oWn3dZPme+HUhe1XRaxmhzDQR00QqVDy924shU lxolkr+r6krYg1kSJgcOJl2QHGGgYyZ670GNEi62BFsjWfpJQa5qddDUTJLsksSNnB/qNV 8vj/gl8vwanyQJld4Chfdejg++7d7DRm7sAgoOxL/QqqmDlrxraeMt7nFkHcZrlgg8Kbr0 D2YJHpJScIiB0nqlXmTM6+qn/kpKHc36JiDUPz6/mgsLLwHHCapIBzwr8f3vGg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=me.com header.s=1a1hai header.b=MNq+HC4+; dmarc=pass (policy=quarantine) header.from=me.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.97 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=me.com header.s=1a1hai header.b=MNq+HC4+; dmarc=pass (policy=quarantine) header.from=me.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 9D3073B8CA X-Spam-Score: -3.97 X-Migadu-Scanner: scn1.migadu.com X-TUID: k82Sy4lrPQcv --=-=-= Content-Type: text/plain Howdy, howdy! Please review the attached patch that propertizes (i.e. adds style to) the navigational keybindings displayed in the header of the Org Export dispatch UI. Thank you! Rudy --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Propertize-keybindings-in-Org-Export-dispatch-UI.patch >From bfe0018037ba8ccfe961d7bd4c0b985bd7496898 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rudolf=20Adamkovi=C4=8D?= Date: Fri, 7 Oct 2022 17:05:15 +0200 Subject: [PATCH] Propertize keybindings in Org Export dispatch UI * lisp/ox.el (org-export--dispatch-ui): Propertize the keybindings --- lisp/ox.el | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lisp/ox.el b/lisp/ox.el index 95268d3e3..4285cfc0f 100644 --- a/lisp/ox.el +++ b/lisp/ox.el @@ -7123,8 +7123,13 @@ back to standard interface." (delete-other-windows) (org-switch-to-buffer-other-window (get-buffer-create "*Org Export Dispatcher*")) - (setq cursor-type nil - header-line-format "Use SPC, DEL, C-n or C-p to navigate.") + (setq cursor-type nil) + (setq header-line-format + (apply 'format + (cons "Use %s, %s, %s, or %s to navigate." + (mapcar (lambda (key) + (propertize key 'face 'help-key-binding)) + (list "SPC" "DEL" "C-n" "C-p"))))) ;; Make sure that invisible cursor will not highlight square ;; brackets. (set-syntax-table (copy-syntax-table)) -- 2.37.3 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable --=20 "Chop your own wood and it will warm you twice." -- Henry Ford; Francis Kinloch, 1819; Henry David Thoreau, 1854 Rudolf Adamkovi=C4=8D [he/him] Studenohorsk=C3=A1 25 84103 Bratislava Slovakia --=-=-=--