unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Returning value from function
@ 2022-11-02  5:06 Heime
  2022-11-02  5:42 ` Heime
  2022-11-03  6:59 ` Jean Louis
  0 siblings, 2 replies; 5+ messages in thread
From: Heime @ 2022-11-02  5:06 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor


I want the following function to return an indicator (Green or Amber).  How can this be done?

(defun txcomplt-light (featr)
  "DOCSTRING."

  (cond
   ((eq 'company featr)
       (if (equal 2 (aref recorder 0))
	   (message "Light | Green")
	 (message "Light | Amber")))

   ((eq 'corfu featr)
       (if (equal 2 (aref recorder 1))
	   (message "Light | Green")
	 (message "Light | Amber")))) )





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-11-03  9:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-02  5:06 Returning value from function Heime
2022-11-02  5:42 ` Heime
2022-11-02 16:42   ` Emanuel Berg
2022-11-03  6:59 ` Jean Louis
2022-11-03  9:19   ` Emanuel Berg

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).