all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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.