>> I tend to agree.  If the type doesn't accept the value, you can use
>> something lower-level than `setopt` [...]
> What would that be in case the option has a custom setter function?

AFAIK people used `setq` before `setopt`.  For vars that come with
setter functions, this usually doesn't work quite the same, but in 99%
it's good enough if the `setq` is performed early during startup.

You can also

    (put '<SYM> 'custom-type t)

if you want to disable type-checking for a specific variable.


        Stefan




      • b... Bug reports for GNU Emacs, the Swiss army knife of text editors
        • ... Eli Zaretskii
          • ... Ship Mints
          • ... Bug reports for GNU Emacs, the Swiss army knife of text editors
          • ... Bug reports for GNU Emacs, the Swiss army knife of text editors
          • ... Eli Zaretskii
          • ... Bug reports for GNU Emacs, the Swiss army knife of text editors
          • ... Eli Zaretskii
          • ... Bug reports for GNU Emacs, the Swiss army knife of text editors
          • ... Bug reports for GNU Emacs, the Swiss army knife of text editors
          • ... Bug reports for GNU Emacs, the Swiss army knife of text editors
          • ... Eli Zaretskii
          • ... Stefan Kangas
          • ... Ship Mints
          • ... Eli Zaretskii
          • ... Ship Mints
          • ... Bug reports for GNU Emacs, the Swiss army knife of text editors
          • ... Bug reports for GNU Emacs, the Swiss army knife of text editors
          • ... Ship Mints
          • ... Ship Mints
  • bug#73098:... Andreas Schwab

Reply via email to