From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime Newsgroups: gmane.emacs.help Subject: Returning value from function Date: Wed, 02 Nov 2022 05:06:21 +0000 Message-ID: <7P5WCxP2NNKoSzZPOriH6Ig6qIlzpNlkZyys-ODkt12l9KW2KmGZrGkB1ZYwPoJFNA48KLphAQMxTfNSxK67WKk13kSf4mecOARjYL4qchY=@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35979"; mail-complaints-to="usenet@ciao.gmane.io" To: Heime via Users list for the GNU Emacs text editor Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 02 06:07:21 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oq5yC-00095t-PL for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 02 Nov 2022 06:07:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oq5xb-000348-E9; Wed, 02 Nov 2022 01:06:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oq5xZ-00033t-9N for help-gnu-emacs@gnu.org; Wed, 02 Nov 2022 01:06:41 -0400 Original-Received: from mail-4325.protonmail.ch ([185.70.43.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oq5xX-0003nf-Hw for help-gnu-emacs@gnu.org; Wed, 02 Nov 2022 01:06:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1667365595; x=1667624795; bh=LpiceGe/D7VThhpzAWoukx/+/MCbIs/wwwJwhFbmWWk=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=o/NUW9NrCsKmZpT8t5hWZuURKyMSxpFytR2iRDTbIPtXACnkh0ZCKjDyL1osPKaMT zAa40jo+h953qT1Q6gCaBo/ubhDSQYm/hVtuT0DgsYXsx2yDTnWPd7AzPAOLiXrwLU Vw2A3rnZBIVdUGFI3oMr1pR/M5eGTaotP1dQDIRGnQYikr7Kie1NPYkq9E+hnDKuZA pP+PRddBzImtxmJO4R5a4FBavG3jo3kBfMaiKXrQbvKGjpbQWAbYDYS7PzUNGNuJLo LNUdRWOcMhY+r3KgOP+vMRAdWzXR8+XzzMeSVMv/iZZ7XVlxAmb7E5S0uqu6Cm/8c1 TQ/5ZK9WLtnfA== Feedback-ID: 57735886:user:proton Received-SPF: pass client-ip=185.70.43.25; envelope-from=heimeborgia@protonmail.com; helo=mail-4325.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: "help-gnu-emacs" Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:140563 Archived-At: 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)) =09 (message "Light | Green") =09 (message "Light | Amber"))) ((eq 'corfu featr) (if (equal 2 (aref recorder 1)) =09 (message "Light | Green") =09 (message "Light | Amber")))) )