From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: Re: Covering of prog-mode Date: Tue, 03 Dec 2024 20:49:06 +0000 Message-ID: <3FVlbW_frgwa08MUN78atk4qqY140FOOT9cvti4x70otitn2AAyYuzjcQgiV-CFyJNykySo1bWTXr27jcE6UlzLPBuGpkSjSh6Mta0U-ZVE=@protonmail.com> References: <9DcjRFc6mjPoYRJQDQSESEsOIWpwSvvcnILKIFJaESJ6yFQPwvYjvnh9EFf-nYUeVrXNlZbP2FV5D1X3PdxSpO82MJs-xNnaOdbnEuuymYI=@protonmail.com> Reply-To: Heime 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="16415"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 03 21:49:51 2024 Return-path: Envelope-to: geh-help-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 1tIZqA-00046G-2r for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 03 Dec 2024 21:49:50 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tIZpy-0001eD-08; Tue, 03 Dec 2024 15:49:38 -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 1tIZpd-0001bE-F3 for help-gnu-emacs@gnu.org; Tue, 03 Dec 2024 15:49:21 -0500 Original-Received: from mail-4319.protonmail.ch ([185.70.43.19]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tIZpZ-0004Wn-I6 for help-gnu-emacs@gnu.org; Tue, 03 Dec 2024 15:49:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1733258950; x=1733518150; bh=3HW48Jc7um5r5j3hieoKHmjH3l6EGoqsjAzPXRvlIZQ=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector:List-Unsubscribe:List-Unsubscribe-Post; b=h0hpB/ghgtrO7k9xIATrLVxqOV3VbvyFs/mv2hg36oPQ+sNreqEPwQ+wI74J7pxkX Ab8VL0tI2VFWqW9qbTsFCewYUUENnW27M5+SFQoViO6WjC1H32bYhqU0sXvfBkzYQ3 k6pv8m8y2efY9kYyNSuna0Mn7+9oOvhONAlqd847GEQXdd3NJyCU0QgSZF4Pi9jECD NebgPm5W57OoAoeIIoUiFyGZq+r1iPWu/+EhrGN2GIpul+HXPX/FVfayIUsD2XSCeX uDEHMbtbmsn5g2ECQYO8LBoJ72PsOr1tbWoeyLq50sQ908OS+941xYIdfK1zF4tCZ0 y+t+UuKeXxX4w== In-Reply-To: Feedback-ID: 57735886:user:proton X-Pm-Message-ID: c3f430566f14badd736946e9ffc4a274843c6fff Received-SPF: pass client-ip=185.70.43.19; envelope-from=heimeborgia@protonmail.com; helo=mail-4319.protonmail.ch 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_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148574 Archived-At: Sent with Proton Mail secure email. On Wednesday, December 4th, 2024 at 8:35 AM, Jean Louis = wrote: > * Heime heimeborgia@protonmail.com [2024-12-03 23:28]: >=20 > > If I do so for c-mode, how can I find out if it is included in prog-mod= e? >=20 >=20 > I understand. >=20 > But on my side I cannot find `c-mode': Debugger entered--Lisp error: (fil= e-error "Can't find library" "c-mode") find-library-name("c-mode") find-lib= rary("c-mode") funcall-interactively(find-library "c-mode") command-execute= (find-library record) execute-extended-command(nil "find-library" nil) func= all-interactively(execute-extended-command nil "find-library" nil) command-= execute(execute-extended-command) It is function, and I find it is function= by doing: C-h f c-mode RET then I see: c-mode is an autoloaded interactive= native-comp-function in =E2=80=98cc-mode.el=E2=80=99. (c-mode) Major mode = for editing C code. then in that window I see hyperlinked file cc-mode.el s= o I press there, then I move to top of the file, and I find: ;; This packag= e provides GNU Emacs major modes for editing C, C++, ;; Objective-C, Java, = CORBA's IDL, Pike and AWK code. As of the ;; latest Emacs and XEmacs releas= es, it is the default package for ;; editing these languages. This package = is called "CC Mode", and ;; should be spelled exactly this way. and then I = put attention on your question to find if it is dependent maybe on` prog-mo= de', so I use `C-s prog-mode' and indeed I am finding > occurences. >=20 > When we are by occurences, M-x occur RET prog-mode RET gives me more > summarized information: >=20 > 11 matches in 10 lines for "prog-mode" in buffer: cc-mode.el > 339: (when (boundp 'prog-mode-map) > 340: (c-set-keymap-parent c-mode-base-map prog-mode-map)) > 2829:(unless (fboundp 'prog-mode) (defalias 'prog-mode 'fundamental-mode)= ) > 2832:(define-derived-mode c-mode prog-mode "C" > 2928:(define-derived-mode c++-mode prog-mode "C++" > 2976:(define-derived-mode objc-mode prog-mode "ObjC" > 3029:(define-derived-mode java-mode prog-mode "Java" > 3073:(define-derived-mode idl-mode prog-mode "IDL" > 3118:(define-derived-mode pike-mode prog-mode "Pike" > 3176:(define-derived-mode awk-mode prog-mode "AWK" >=20 > so yes, the cc-mode.el and c-mode command are all somehow derived from > prog-mode, you see? - Jean Louis Ok, so I look for prog-mode in the major mode file I am interested in. I tried again, this time from fortran-mode. And found=20 (define-derived-mode fortran-mode prog-mode "Fortran" =20 So fortran-mode is derived from prog-mode. Not the other way round, as I had thought initially.