From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#72080: imenu returns different lists in emacs-news-mode and emacs-news-view-mode Date: Sun, 14 Jul 2024 08:57:37 -0400 Message-ID: References: <864j8tlkuy.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13171"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 72080@debbugs.gnu.org, Siyuan Chen To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 14 14:58:32 2024 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 1sSyoB-0003FR-ID for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Jul 2024 14:58:31 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sSyni-0004iv-DX; Sun, 14 Jul 2024 08:58:02 -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 1sSyng-0004hY-Kp for bug-gnu-emacs@gnu.org; Sun, 14 Jul 2024 08:58:00 -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 1sSyng-0002Ji-CO for bug-gnu-emacs@gnu.org; Sun, 14 Jul 2024 08:58:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sSynh-0005gi-Oa for bug-gnu-emacs@gnu.org; Sun, 14 Jul 2024 08:58:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Jul 2024 12:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72080 X-GNU-PR-Package: emacs Original-Received: via spool by 72080-submit@debbugs.gnu.org id=B72080.172096186921845 (code B ref 72080); Sun, 14 Jul 2024 12:58:01 +0000 Original-Received: (at 72080) by debbugs.gnu.org; 14 Jul 2024 12:57:49 +0000 Original-Received: from localhost ([127.0.0.1]:57283 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sSynU-0005gG-QV for submit@debbugs.gnu.org; Sun, 14 Jul 2024 08:57:49 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:51441) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sSynT-0005g3-5b for 72080@debbugs.gnu.org; Sun, 14 Jul 2024 08:57:47 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 34119100043; Sun, 14 Jul 2024 08:57:39 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1720961858; bh=+fO2KLHkNO5hw0q5Ik3s96UjQJehE0FNCDCJaIjl82k=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=cLQSlso+6miPPHz0OjIHKwhOnl0gfHmCJ/MBXQ5MLo6CHbR95bF5KoCnEoZAW6REL s7bZl7E7V0TLL16Ikh0RBJ8jp+JClXf57ojK9DqYEY1td9v73JXnzaY4/+I8CA7TM4 0DARp2GPOY1vP5fOcGCcTe0tp1G6PCuNOvCbynSc8hWtuPKcndUjWV4PQt+Umr5yz6 eRZvoABsCFaNLMxbJmZit+Ex2pziIb8EDGNUvhwbNNvYDQ3Tb0xIqNE7vatoXj2eBq T9qqgb48QBhR8nNgEOeelVh4oLsPK7vaexuI/caLAAEPdCodByXGjpnl+UvaEfbfyx 6vad22e8RjjCw== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 3F132100035; Sun, 14 Jul 2024 08:57:38 -0400 (EDT) Original-Received: from asado (syn-072-043-125-136.biz.spectrum.com [72.43.125.136]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 20A9E12020D; Sun, 14 Jul 2024 08:57:38 -0400 (EDT) In-Reply-To: <864j8tlkuy.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 13 Jul 2024 12:08:53 +0300") 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:288841 Archived-At: > For some reason I cannot get emacs-news-view-mode inherit the > keymap of special-mode, nor even use its own keymap I defined in a > defvar emacs-news-view-mode-map. Stefan, any reason why a simple > definition of emacs-news-view-mode-map doesn't work, as the ELisp > manual promises it should (where it described define-derived-mode)? Can't think of a reason, no. > Also, any idea why syntax-ppss thinks the final ^L in NEWS, here: > > --- > *** Emacs on MS-Windows now supports the ':stipple' face attribute. > > ^L > ---------------------------------------------------------------------- > This file is part of GNU Emacs. > > is in a comment when emacs-news-view-mode inherits from special-mode? No, sorry. > Do we have a way of making one mode use the syntax table of another > mode without having a variable which holds the latter? `C-h o` says: define-derived-mode is an autoloaded Lisp macro in =E2=80=98derived.el= =E2=80=99. [...] KEYWORD-ARGS: [...] :syntax-table TABLE Use TABLE instead of the default (CHILD-syntax-table). A nil value means to simply use the same syntax-table as the parent. so `:syntax-table` should be able to do that. Stefan