unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: orontee@gmail.com, juri@linkov.net
Cc: emacs-devel@gnu.org
Subject: Re: Extend Outline mode with default visibility state
Date: Sun, 16 Jan 2022 21:21:01 +0200	[thread overview]
Message-ID: <83y23fwkpu.fsf@gnu.org> (raw)
In-Reply-To: <8335lny134.fsf@gnu.org> (message from Eli Zaretskii on Sun, 16 Jan 2022 20:42:07 +0200)

> Date: Sun, 16 Jan 2022 20:42:07 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: emacs-devel@gnu.org
> 
> The doc string of outline-default-rules also "Needs Work":
> 
>   (defcustom outline-default-rules nil
>     "Determines visibility of subtree starting at `outline-default-state' level.
> 
> If this is only relevant to a single value of outline-default-state,
> the doc string should say so.
> 
>   - A lambda function or function name which will be evaluated with
>     point at the beginning of the heading and the match data set
>     appropriately, the function being expected to toggle the
>     heading visibility."
> 
> This should tell what arguments, if any, the function is called.
> Also, "function ... will be evaluated" is not our style.

In addition, the "A lambda function or function name" part seems to be
incorrect: it should be a cons cell of the form

  (custom-function FUNCTION)

Right?



  reply	other threads:[~2022-01-16 19:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-16 18:42 Extend Outline mode with default visibility state Eli Zaretskii
2022-01-16 19:21 ` Eli Zaretskii [this message]
2022-01-17 19:35   ` Matthias Meulien
2022-01-17 19:58     ` Stefan Monnier
2022-01-17 19:34 ` Matthias Meulien
2022-01-20 11:37   ` Eli Zaretskii
2022-01-21 20:54     ` Matthias Meulien
2022-01-22 11:54       ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83y23fwkpu.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=juri@linkov.net \
    --cc=orontee@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).