From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: news-mode menu and key bindings Date: Wed, 15 Feb 2023 18:00:19 +0100 Message-ID: <87r0uqood8.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26399"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Feb 15 18:02:17 2023 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 1pSLAe-0006lb-AH for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Feb 2023 18:02:16 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pSL9F-0005t6-6T; Wed, 15 Feb 2023 12:00:49 -0500 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 1pSL8q-0005i9-6P for emacs-devel@gnu.org; Wed, 15 Feb 2023 12:00:27 -0500 Original-Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pSL8o-00028x-DF for emacs-devel@gnu.org; Wed, 15 Feb 2023 12:00:23 -0500 Original-Received: by mail-wm1-x330.google.com with SMTP id s13-20020a05600c45cd00b003ddca7a2bcbso2039828wmo.3 for ; Wed, 15 Feb 2023 09:00:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:gmane-reply-to-list:subject:to:from :from:to:cc:subject:date:message-id:reply-to; bh=rbJTqS3+Pzdtqd3Tsxc9q0bOSGDvlTx03kaPFxN/LI4=; b=lrwjup72h+UGfxQEDX9zRUvvfLIw/SUglpkXyltBi1cBOkIt33QiuyV42JJ6D9tMaB 4l/7PlDR5eCv6ht1PnCyOI7IDVr53LY7ga5jmZvGNPFXnA7evX5ioNmLrQSdgv1JiV3K 8QORvi4tA5gmRQxO6015/fPsEB6hwnM1jxrorOnaQbzHjL1FkviQqvsa1zhv1zO2McSX dLQaGcRjsUPD2olkAZlw8IWmkbO89Jr576XFYtHV91n7asr81u5CrTZhuKavgHNMAzkU 4uAd/0x8oMR22tdRBjiGTA902n0WDTfvorRerzY6W05bMTvGTdZ6nJM98TQLWMZziooY j0gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:gmane-reply-to-list:subject:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rbJTqS3+Pzdtqd3Tsxc9q0bOSGDvlTx03kaPFxN/LI4=; b=4kNzwmCqPC/2exf2n2VbIzZWDA9UVBBaL3hd9J3iaCKBpbCStPBwvFoCmubp73HEWW /Zrd3N+SXjcmrzYZnZY6GN42GiKGc0YkU4bl9XSiH1UW9e5vIWzmQY2foY33TbFqSUmu giK+Txe4cFcE37f9i22eQfiGMGa921vSZ0zK7OT+LEDVA2hFfBqtwGAa/FUS484sNtpq nu6G5eEheuPFN84rHpfAQ2dYTvIT1dPtTYnjb4zoXW1+vcEFPzqP1fHA+CRgbncIMsgF HhlW9kafwkVsMunk5D18VeoqACszQPH38pwIeTuf089xgGx7oG1vHOQoVB2WHhzcbRDd hd/Q== X-Gm-Message-State: AO0yUKUKN+qTOQYUIxCc7S0PxTwmE6T9Y5ztjW6HahM96SXfRMo+7AM8 h/ggc6bEJ1uvyJmMOViXdUpfzIGKBRA= X-Google-Smtp-Source: AK7set9Lgz/pA6Y8SrGCvD5nrmiiI/zUk5IIuID6zk/Oxtjdr8DG2/0eD4jR2Tggsl6jxOo6Y4YzGw== X-Received: by 2002:a05:600c:1714:b0:3dc:43a0:83bb with SMTP id c20-20020a05600c171400b003dc43a083bbmr2580614wmn.3.1676480420085; Wed, 15 Feb 2023 09:00:20 -0800 (PST) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id y10-20020a05600c340a00b003dd19baf45asm2409785wmp.40.2023.02.15.09.00.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Feb 2023 09:00:19 -0800 (PST) Gmane-Reply-To-List: yes Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=rpluim@gmail.com; helo=mail-wm1-x330.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_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.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:303309 Archived-At: Eli, is this too late for emacs-29? Robert -- diff --git a/lisp/textmodes/emacs-news-mode.el b/lisp/textmodes/emacs-news-mode.el index b844955e1be..c6efb4fe7ca 100644 --- a/lisp/textmodes/emacs-news-mode.el +++ b/lisp/textmodes/emacs-news-mode.el @@ -54,12 +54,27 @@ emacs-news-mode-map "C-c C-s" #'emacs-news-next-untagged-entry "C-c C-r" #'emacs-news-previous-untagged-entry "C-c C-t" #'emacs-news-toggle-tag + "C-c C-d" #'emacs-news-delete-temporary-markers "C-c C-g" #'emacs-news-goto-section "C-c C-j" #'emacs-news-find-heading "C-c C-e" #'emacs-news-count-untagged-entries "C-x C-q" #'emacs-news-view-mode " " #'emacs-news-open-line) +(easy-menu-define emacs-news-mode-menu emacs-news-mode-map + "Menu for `emacs-news-mode'." + '("News" + ["Next Untagged" emacs-news-next-untagged-entry :help "Go to next untagged entry"] + ["Previous Untagged" emacs-news-previous-untagged-entry :help "Go to previous untagged entry"] + ["Count Untagged" emacs-news-count-untagged-entries :help "Count the number of untagged entries"] + ["Toggle Tag" emacs-news-toggle-tag :help "Toggle documentation tag of current entry"] + ["Delete Tags" emacs-news-delete-temporary-markers :help "Delete all documentation tags in buffer"] + "--" + ["Goto Section" emacs-news-goto-section :help "Prompt for section and go to it"] + ["Goto Heading" emacs-news-find-heading :help "Prompt for heading and go to it"] + "--" + ["Enter View Mode" emacs-news-view-mode :help "Enter view-only mode"])) + (defvar emacs-news-view-mode-map ;; This is defined this way instead of inheriting because we're ;; deriving the mode from `special-mode' and want the keys from there.