all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Convert strings to appropriate symbols
@ 2024-03-27 14:23 Heime
  0 siblings, 0 replies; only message in thread
From: Heime @ 2024-03-27 14:23 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor


How can I ensure that the text strings from completing-read
are properly transformed to the symbols required by 
outline-minor-mode-highlight ?

(defun outl-flock (actm)
  "Set font-lock rules for 'outline-minor-mode'.
  (interactive
   (let ( (cseq '("append" "t" "nil" "override")) )
     (list
       (completing-read "Font-Lock Rules: " cseq nil t "override"))))

  (setq outline-minor-mode-highlight
         (if (equal actm "t")
             t
           (intern actm)))  ) 




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-03-27 14:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-27 14:23 Convert strings to appropriate symbols Heime

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.