GNU bug report logs - #11299
24.1.50; Make `customize-mode' work for minor modes too, or define `customize-minor-mode'

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Sat, 21 Apr 2012 16:34:02 UTC

Severity: wishlist

Tags: patch

Found in version 24.1.50

Fixed in version 25.1

Done: Noam Postavsky <npostavs <at> users.sourceforge.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "Drew Adams" <drew.adams <at> oracle.com>
To: <11299 <at> debbugs.gnu.org>
Subject: bug#11299: 24.1.50; Make `customize-mode' work for minor modes too, or define`customize-minor-mode'
Date: Sat, 21 Apr 2012 10:50:08 -0700
E.g., something like this:

(defun customize-mode (mode)
    "Customize options related to a major or minor mode.
By default the current major is used.
With a prefix argument or if the current major mode has no known group,
you are prompted for the MODE to customize."
    (interactive
     (list
      (let ((completion-regexp-list  '("-mode\\'"))
            (group                   (custom-group-of-mode major-mode)))
        (if (and group  (not current-prefix-arg))
            major-mode
          (intern (completing-read
                    "Mode: " obarray 'custom-group-of-mode
                    t nil nil (and group  (symbol-name major-mode))))))))
    (customize-group (custom-group-of-mode mode)))





This bug report was last modified 8 years and 327 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.