From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: Setting up user defined texinfo headlines using outline-heading-alist Date: Fri, 14 May 2021 02:13:18 +0700 Message-ID: References: <878s4m5mbj.fsf@posteo.net> 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="4058"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs To: Christopher Dimech Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 13 21:14:21 2021 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 1lhGmq-0000wJ-KH for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 13 May 2021 21:14:20 +0200 Original-Received: from localhost ([::1]:34098 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhGmp-0003SS-K0 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 13 May 2021 15:14:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46248) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhGm5-0003Pw-QS for help-gnu-emacs@gnu.org; Thu, 13 May 2021 15:13:35 -0400 Original-Received: from mail-vs1-xe30.google.com ([2607:f8b0:4864:20::e30]:37557) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lhGm2-0007I2-UD for help-gnu-emacs@gnu.org; Thu, 13 May 2021 15:13:33 -0400 Original-Received: by mail-vs1-xe30.google.com with SMTP id s15so11347052vsi.4 for ; Thu, 13 May 2021 12:13:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=6QC7gu7yQVuFdHXljXEg6sfmnbmFReHrPysz4R6/T7s=; b=Yj/erOSln/FGk4j+ndr6rVlMcjnfrqNYh6yWSk5LeKNK08ITOC5nkReFj76x8bZIFq kIIwh7yyhbZCXqA31CoL90fKvh9eaUSTlgGgxGmFl0z5qIZ9m5V8b8X/fo0mpQH2ZWjB STmqJc2pc4A++Ripi7CmDEzq478ASziwmO5+uwGbA8fqADUYXaIoBbShsrTFoKeR/HvA bZIxTxvsj0h/GsdnHTU+dSw19z3v0oiOdhyBiTz4Nn8sJhDOWxneu/7nVtJMT/KEUY58 fjZYSIvjSknPASBGJ+flUFNegc2tsLBn2pO+b1jjdzs4GCEoobJETu3urhWXGp8vK1T1 +wCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=6QC7gu7yQVuFdHXljXEg6sfmnbmFReHrPysz4R6/T7s=; b=sG64Mq09tLASF212ce6o1LcgnQDE+A0t2pT/aresjOSBLB9H2ylhlWv8W6eaCtH09U rqGYH7Vk+aZKE+yiuC60pYVJ2zYoMaO//AkfIdkiEUgv02PbQ63Spml25f/EW16evMaM JPxpad9nzSY/4E7qriukpruoENl3eOj2HJaMM5UIUlZGMK3jqp84rsU3RhZM2Jr9spXv tfcD9mtfYosSBo5kVN8lWHU7JViw+ZsePFBjWi7+RCBou24h52PR8AeEwwQMrtkOUpwi +04arGtEjEBbgF3LiHZ9NBoKZoQdTbkCkcZdCZGDvI804jhFOXeR69YaBXNuy9cMwDtr 7mFQ== X-Gm-Message-State: AOAM533RNQrIZTiq/d4SyvUBtHu9sJyj6yRz0KSBBXP43/E/76btEUYv b8XULi8f60t/5wxNCQ0C0uAyBtNScYe8zUDBtP0= X-Google-Smtp-Source: ABdhPJzgd+BeA0CTZscWJOgKCng+YNPvD2H7MxxjyxF59p40yf3i2ZgSm+nfd7/yvCabrrM+jnV1ljB+Sr1IgOH4A/c= X-Received: by 2002:a67:14c1:: with SMTP id 184mr39992129vsu.38.1620933209937; Thu, 13 May 2021 12:13:29 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::e30; envelope-from=yurivkhan@gmail.com; helo=mail-vs1-xe30.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: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.help:129757 Archived-At: On Fri, 14 May 2021 at 01:35, Christopher Dimech wrote: > It is then very easy to tell a user to learn more elisp, rather than conv= ince a > developer to be consistent and write in ways that assist in the reuse of = their > code. Yeah, much of the code in and around Emacs assumes the user can read, and often also write, Elisp. If you find outline-regexp in a docstring and you want to know where it=E2=80=99s defined and how it=E2=80=99s used, your best bet is to invoke xref-find-references on it and skim through the code. If you want to know how to have headings fontified, M-x find-library RET outline RET, then search for =E2=80=9Cface=E2=80=9D, eventually find a = variable =E2=80=98outline-font-lock-keywords=E2=80=99 and its use in =E2=80=98outlin= e-mode=E2=80=99 but not in outline-minor-mode (probably because with outline-minor-mode you already have some fontification by the major mode). Maybe find a way to add =E2=80=98outline-font-lock-keywords=E2=80=99 to the major mode=E2=80= =99s =E2=80=98font-lock-defaults=E2=80=99, but that definitely requires some pro= gramming.