From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: wael-zwaiter@gmx.com Newsgroups: gmane.emacs.help Subject: Setting variables, argumunts in defun Date: Sat, 13 Feb 2021 17:14:57 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17285"; mail-complaints-to="usenet@ciao.gmane.io" To: Help Gnu Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 13 17:18:58 2021 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 1lAxdK-0004Oj-03 for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 13 Feb 2021 17:18:58 +0100 Original-Received: from localhost ([::1]:47908 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lAxdJ-0002vZ-1F for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 13 Feb 2021 11:18:57 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52792) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAxbS-0002cW-Pg for help-gnu-emacs@gnu.org; Sat, 13 Feb 2021 11:17:04 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:44317) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAxZV-0002wp-N7 for help-gnu-emacs@gnu.org; Sat, 13 Feb 2021 11:17:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1613232897; bh=PoSia1bQTHrsWS+24S+eazqnRlcjlvLVKC+4THFcQyk=; h=X-UI-Sender-Class:From:To:Subject:Date; b=VJv6Sv82+S/v/Oy3qf9XF5V0MbcOXrUqP9S61wMa/78y+/U21VI5gnokpBjKpFj8z Yi8QEx9oJSWJ5wadX8e3bcaXT+dUZyEoKk9FxdT0Qoka2CG16XBkbXoDYcr3bX1gQF IQnBmH7n8C0qUWeRc1tbV41t4GGwc86BP6RZAo4c= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs12.server.lan [172.19.170.180]) (via HTTP); Sat, 13 Feb 2021 17:14:57 +0100 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K1:ruYLC+27QV7IrtrJW7s6Uqkm2Hs7hMK0PcA5QDNlZJykNXNuE4+Pi/iuLV/Us7FYdEtjF SCEO0rPlgLhj224PpUklnawtdf1LWHZYsGx7fqKjacZ4jsWd3cbAK7RZjRPnXP5tndct3h+rjo2F V87fTpEkwfdeXqVk9UIMturHxCcgBTZihos2nrYIcoaWd4kE9lcNln5q6AIkxCdVT4I/8sH4P5XJ a/XP9xgW24pxqKLO4pSr9HRuIx+niYVXZZFdlyzgpSOwpJTEZ5qXKsx/Eo8bBm5mJPQ3BqY2P/uJ FQ= X-UI-Out-Filterresults: notjunk:1;V03:K0:WemSQ/nnnEE=:4pJvggC8RKLdTogvPwR9xp 651yoyLHTIK20AsH3RyP2WaWSf3Hm11dHwiz+wFuP4yGpgNpjCGLlTgyy/2tBg/7wok6HWh+1 JvmDzA7p7gyvSMnC4eJAFxI22wPLcjgfU0VXtBekCYIMUsF7ef8RIt/vC+HLXhgwxgelCe31Q n2fdUTe0kDdOu3Nxls8/ev1PoEx/ZD+3YvGYnx+iSYlTkM2xUZ2H0EqULA24rkd+LKXmNPLJx PQbfoPs9bS38iIBwODbJx1v5oIinHsOK6ZDLRAnX0ktyw+FHNaR99kFNHSkz0CDPnP4opjjsF 4UB3XCbgo/XC2Q1hIHkHWE3yy4A1bjfJcs06mjBtlfH1c8xKrBxBM7LOQbzjwjw0FLT9CDWTD wrJeS8ipJQSqTZv902ISKkHooD1OzwqvuRf4lia9piyFR1EUUVn0t0I9Xdv0QL/mQ469zHHUD uEnvVDj2ajDdG9cVbYf2mnHfG5+9uTbG6ceK50oeq5Hkay/p1FFVcvYLIyjQd7KZVeqKNCa8O /b62KH4ep5iOrRPkiqd71ugHbP/+81B1NRIL3TYmxkoJ1DY7P8w00C2CjANVsH9Yqa8QWb+gH rc2kqa8V6K2Vs= Received-SPF: pass client-ip=212.227.15.19; envelope-from=wael-zwaiter@gmx.com; helo=mout.gmx.net X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:127957 Archived-At: I would like to set up devi and scal by selecting either one or the other. Wow can I do this in elisp. Should I pass parameters to the function. Can one pass a string, then check its contents? (defun deviscal () (setq devi 0.18) (setq scal 0.2) (setq devi 0.0) (setq scal 1.0) )