From: no-spam@cua.dk (Kim F. Storm)
Cc: storm@cua.dk, Pavel@Janik.cz, emacs-devel@gnu.org
Subject: Re: Enhancements to options menu (was Re: Reveal mode)
Date: 07 May 2002 01:12:29 +0200 [thread overview]
Message-ID: <5xznzcan1e.fsf@kfs2.cua.dk> (raw)
In-Reply-To: <200205061932.g46JWv102302@aztec.santafe.edu>
Richard Stallman <rms@gnu.org> writes:
> > I don't entirely understand this suggestion:
> >
> > [x] Abbreviation mode [advanced]
> > [x] Revert mode [advanced]
> >
> > What does "advanced" mean here?
> >
> >
>
> It would enter the corresponding custiomize-group.
>
> How is that different from what M-x customize-browse does?
Try this "dummy" preferences code to see what I'm suggesting:
(require 'wid-edit)
(require 'cus-edit)
(defun preferences ()
"Create a buffer containing popular customization options."
(interactive)
(let ((name "*Preferences*"))
(kill-buffer (get-buffer-create name))
(pop-to-buffer (get-buffer-create name))
(custom-mode)
(buffer-disable-undo)
(widget-insert "Display Options\n\n")
(widget-create 'checkbox)
(widget-insert " Auto Reveal hidden text\t")
(widget-create 'push-button :tag "Advanced")
(widget-insert "\n")
(widget-create 'checkbox)
(widget-insert " Show trailing Whitespace\t")
(widget-create 'push-button :tag "Advanced")
(widget-insert "\n")
(widget-create 'checkbox)
(widget-insert " Indicate Empty Lines\t\t")
(widget-create 'push-button :tag "Advanced")
(widget-insert "\n")
(widget-create 'checkbox)
(widget-insert " Display Image files\t\t")
(widget-create 'push-button :tag "Advanced")
(widget-insert "\n")
(widget-create 'checkbox)
(widget-insert " Highlight current line\t")
(widget-create 'push-button :tag "Advanced")
(widget-insert "\n")
(widget-create 'checkbox)
(widget-insert " Blinking cursor\t\t")
(widget-create 'push-button :tag "Advanced")
(widget-insert "\n")
(widget-create 'checkbox)
(widget-insert " Auto resize minibuffer\t")
(widget-create 'push-button :tag "Advanced")
(widget-insert "\n")
(widget-insert "\nEditing Options\n\n")
(widget-create 'checkbox)
(widget-insert " Auto Expand Abbreviations\t")
(widget-create 'push-button :tag "Advanced")
(widget-insert "\n")
(widget-create 'checkbox)
(widget-insert " Auto Revert changed files\t")
(widget-create 'push-button :tag "Advanced")
(widget-insert "\n")
(widget-create 'checkbox)
(widget-insert " Auto Save files\t\t")
(widget-create 'push-button :tag "Advanced")
(widget-insert "\n")
(widget-create 'checkbox)
(widget-insert " Auto Expand Abbreviations\t")
(widget-create 'push-button :tag "Advanced")
(widget-insert "\n\n")
(widget-insert " ")
(widget-create 'push-button
:tag "Save"
:help-echo "\
Make your editing in this buffer take effect for future Emacs sessions."
:action (lambda (widget &optional event)
(Custom-save)))
(widget-insert " ")
(widget-create 'push-button
:tag "Cancel"
:help-echo
(lambda (&rest ignore)
(cond
((eq custom-buffer-done-function
'custom-bury-buffer)
"Bury this buffer")
((eq custom-buffer-done-function 'kill-buffer)
"Kill this buffer")
(t "Finish with this buffer")))
:action #'Custom-buffer-done)
(widget-insert "\n\n")
(widget-setup)
(buffer-enable-undo)
(goto-char (point-min))))
next prev parent reply other threads:[~2002-05-06 23:12 UTC|newest]
Thread overview: 66+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-30 21:19 Reveal mode Richard Stallman
2002-05-01 20:30 ` Pavel Janík
2002-05-01 23:34 ` Enhancements to options menu (was Re: Reveal mode) Kim F. Storm
2002-05-02 5:16 ` Enhancements to options menu Karl Eichwalder
2002-05-02 11:39 ` Per Abrahamsen
2002-05-02 20:20 ` Kim F. Storm
2002-05-02 23:48 ` Karl Eichwalder
2002-05-03 18:25 ` Enhancements to options menu (was Re: Reveal mode) Richard Stallman
2002-05-03 23:54 ` Kim F. Storm
2002-05-04 0:39 ` Thien-Thi Nguyen
2002-05-04 8:58 ` Pavel Janík
2002-05-05 23:15 ` Stefan Monnier
2002-05-07 15:38 ` Pavel Janík
2002-05-07 16:33 ` Simon Josefsson
2002-05-07 18:24 ` Eli Zaretskii
2002-05-07 19:11 ` Simon Josefsson
2002-05-08 0:27 ` Miles Bader
2002-05-08 2:51 ` Colin Walters
2002-05-08 3:06 ` Stefan Monnier
2002-05-08 16:10 ` Miles Bader
2002-05-08 4:50 ` Eli Zaretskii
2002-05-08 11:24 ` Per Abrahamsen
2002-05-08 13:33 ` Eli Zaretskii
2002-05-08 13:43 ` Stefan Monnier
2002-05-08 13:57 ` Eli Zaretskii
2002-05-08 14:05 ` Stefan Monnier
2002-05-08 14:15 ` Eli Zaretskii
2002-05-08 15:28 ` Simon Josefsson
2002-05-08 15:43 ` Alan Shutko
2002-05-12 5:26 ` Karl Eichwalder
2002-05-12 5:35 ` Eli Zaretskii
2002-05-08 15:46 ` Miles Bader
2002-05-08 16:31 ` Robert J. Chassell
2002-05-08 18:51 ` Eli Zaretskii
2002-05-08 15:27 ` Karl Eichwalder
2002-05-08 16:30 ` Stefan Monnier
2002-05-09 14:59 ` Richard Stallman
2002-05-09 16:53 ` Karl Eichwalder
2002-05-09 17:59 ` Eli Zaretskii
2002-05-09 18:26 ` Karl Eichwalder
2002-05-09 18:59 ` Eli Zaretskii
2002-05-08 14:02 ` Kai Großjohann
2002-05-08 15:31 ` Simon Josefsson
2002-05-08 15:55 ` Kai Großjohann
2002-05-07 23:59 ` Stefan Monnier
2002-05-08 6:03 ` Thien-Thi Nguyen
2002-05-08 13:37 ` Stefan Monnier
2002-05-08 13:59 ` Richard Stallman
2002-05-04 9:32 ` Alex Schroeder
2002-05-04 15:01 ` Richard Stallman
2002-05-04 18:44 ` Kim F. Storm
2002-05-05 17:45 ` Richard Stallman
2002-05-05 22:24 ` Kim F. Storm
2002-05-06 4:48 ` Eli Zaretskii
2002-05-06 6:30 ` Miles Bader
2002-05-06 9:17 ` Kim F. Storm
2002-05-06 19:32 ` Richard Stallman
2002-05-06 19:32 ` Richard Stallman
2002-05-06 23:12 ` Kim F. Storm [this message]
2002-05-07 20:07 ` Richard Stallman
-- strict thread matches above, loose matches on Subject: below --
2002-05-07 18:30 Karl Berry
2002-05-07 19:22 ` Eli Zaretskii
2002-05-08 17:11 Karl Berry
2002-05-08 17:19 ` Alan Shutko
2002-05-08 17:27 Karl Berry
2002-05-08 17:40 ` Miles Bader
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5xznzcan1e.fsf@kfs2.cua.dk \
--to=no-spam@cua.dk \
--cc=Pavel@Janik.cz \
--cc=emacs-devel@gnu.org \
--cc=storm@cua.dk \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.