From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: prog-mode-p? Date: Wed, 23 Nov 2022 20:22:50 -0800 Message-ID: <83BE88AF-B1DF-4761-959A-C5492D8B7B2C@gmail.com> References: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36369"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: "T.V Raman" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 24 05:23:52 2022 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 1oy3mC-0009Lu-B2 for ged-emacs-devel@m.gmane-mx.org; Thu, 24 Nov 2022 05:23:52 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oy3lJ-0002aL-Fy; Wed, 23 Nov 2022 23:22:57 -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 1oy3lI-0002aC-7I for emacs-devel@gnu.org; Wed, 23 Nov 2022 23:22:56 -0500 Original-Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oy3lF-0002AN-Kt for emacs-devel@gnu.org; Wed, 23 Nov 2022 23:22:55 -0500 Original-Received: by mail-pl1-x629.google.com with SMTP id y4so434552plb.2 for ; Wed, 23 Nov 2022 20:22:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=PVgvWCWMWJ6mhYTFRTQkWqsXM4TsVxAKzeyPEh6UqtI=; b=jdEFsNw2p1P5hJBcn0uhuaF35Uig4MQRCP3lcGeDA0WcyiXfr7dGmRYRCjl7GEwQrL tAsMzOIWlCwzyaMCbRrMlBDvh3IJQSkXgy4v/gB3QCByYSoqmEkgg9JVPE0Z47hkaDsv CinBenru0jaf275f4u+CRLLWp7PV5vpQ2fAC1ZjsGU2kHXqi6amVKuRPgRy4bXamarqc PfI4BheNvef/yH5tU6wPpncIFhG6Sarpm+5hHajpQpk1YrOV5qCMZAdFaYWxPVPx2HSA FtnT0v20fyVM9mlIyL4Ik2Aj2UXngbaBTL+LJG992W1a1Xcq6E1ITvyv38vd3uSfdWfw fDXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PVgvWCWMWJ6mhYTFRTQkWqsXM4TsVxAKzeyPEh6UqtI=; b=inNebepi/Y0UKh+W5gY59886UJOsWf5F5LbZtknAESnwarIlwPeq3eXyL2DOnFRfja OhSD4fcQ5MKeOpMa1GUCB3Im9FClxlYG/T6M8m3JMomXf9VDHn93tC1Mt+4NFa9uginL 1pyoqkegiyYcPs+p2BkOn00fOekR8kfXtFYqXBWz38hv3mm+nyYXmn9f5UpGqtNHgEZ2 zp/g257Q2SY8g0wj/N5uli+Soy3LCQ//MbuQTkNBWSLS1KPMTjttnynw1IOAnUuSwYHL dDVSi6B3QhpXaJOh36vjtG/JLOJ7GWddDSBnCbi9oLjVEFMG054+C9nHPc5uLL8sUSPo j/oQ== X-Gm-Message-State: ANoB5pkpM/bbF2tUhm8dz81hqvr6HHiXNz4R/q2xorABbuVw/XCwGH0Y U9SAlRyqYJJ8lNg5M1Uc78E= X-Google-Smtp-Source: AA0mqf6Wz8E1HKHgBiWG2EJUIoRPfrXYi4kzuXPCklsMjSOT835g703J8tgctl7Q2YeKqCgbMHeVBg== X-Received: by 2002:a17:902:b493:b0:176:a6fb:801a with SMTP id y19-20020a170902b49300b00176a6fb801amr12249340plr.97.1669263772091; Wed, 23 Nov 2022 20:22:52 -0800 (PST) Original-Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id ik5-20020a170902ab0500b00188ffe7f6a1sm5688plb.190.2022.11.23.20.22.51 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Nov 2022 20:22:51 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3696.120.41.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::629; envelope-from=casouri@gmail.com; helo=mail-pl1-x629.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:300420 Archived-At: > On Nov 23, 2022, at 8:08 PM, T.V Raman wrote: >=20 > At present, one can look up the "parent" of a derived mode via the > symbol's property list as in: >=20 > (get 'emacs-lisp-mode 'derived-mode-parent ) > and thus ascend the parent chain -- is there a shortcut to checking if > a mode derives from say 'prog-mode (my current use case) > or in general check if mode x has mode y as a parent in its derivation = chain? IIIUC you can use derived-mode-p. Yuan=