unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Exiting from mapc
@ 2024-12-31 19:35 Heime via Users list for the GNU Emacs text editor
  2024-12-31 20:13 ` [External] : " Drew Adams
  2025-01-02 10:53 ` Jean Louis
  0 siblings, 2 replies; 17+ messages in thread
From: Heime via Users list for the GNU Emacs text editor @ 2024-12-31 19:35 UTC (permalink / raw)
  To: Heime via Users list for the GNU Emacs text editor


How can I exit when encountering 'safg or 'nogo 

(defun amazones-falkotr-kntlr (actm-seqr)

  (mapc

    (lambda (actm)
      ;; Evaluate conditions and executes corresponding actions
      ;; based on matching clauses.

      (cond

        ;; CASE
        ((eq actm 'safg)
           (message "SAFG amazones-falkotr-kntlr"))

	;; CASE
        ((eq actm 'armg)
	   (message "ARMG amazones-falkotr-kntlr")
           ;; Load falkotr.el from `load-path'.
           (add-to-list 'load-path (amazones-fpln-waypt "FLKTR" 'sec))
           (require 'falkotr))

	 ;; CASE
         ((eq actm 'nogo)
            (message "NOGO amazones-falkotr-kntlr"))

        ;; CASE
         ((eq actm 'go)
            (message "GO amazones-falkotr-kntlr")
            (falkotr-launch-kntlr '(armg go)))

         ;; CASE
         (t
            ;; Unrecognised symbol, log error with offending symbol.
            (message "NOGO amazones-falkotr-kntlr")
            (message " └── ACTM Unrecognised: %s" actm))))

   actm-seqr))






Sent with Proton Mail secure email.



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

end of thread, other threads:[~2025-01-03  0:23 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-31 19:35 Exiting from mapc Heime via Users list for the GNU Emacs text editor
2024-12-31 20:13 ` [External] : " Drew Adams
2024-12-31 20:20   ` Heime via Users list for the GNU Emacs text editor
2024-12-31 22:30     ` Drew Adams
2025-01-01 23:14       ` Heime via Users list for the GNU Emacs text editor
2025-01-02  0:31         ` Joel Reicher
2025-01-02 10:33           ` Jean Louis
2025-01-03  0:23             ` Joel Reicher
2025-01-02  0:33         ` Drew Adams
2025-01-02  2:21         ` Eduardo Ochs
2025-01-01  1:53   ` Björn Bidar
     [not found]   ` <87wmffwb8w.fsf@>
2025-01-01  2:02     ` Drew Adams
2025-01-01 19:40       ` Björn Bidar
     [not found]       ` <874j2iwcff.fsf@>
2025-01-01 20:00         ` Drew Adams
2025-01-01 21:09           ` Björn Bidar
     [not found]           ` <87a5cautqb.fsf@>
2025-01-01 21:59             ` Drew Adams
2025-01-02 10:53 ` Jean Louis

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