From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id mFRsEHnSjWI7dAEAbAwnHQ (envelope-from ) for ; Wed, 25 May 2022 08:53:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id cJJHEHnSjWJi3gAAauVa8A (envelope-from ) for ; Wed, 25 May 2022 08:53:45 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C0752FE02 for ; Wed, 25 May 2022 08:53:44 +0200 (CEST) Received: from localhost ([::1]:41770 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ntktr-00068m-GT for larch@yhetil.org; Wed, 25 May 2022 02:53:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntkcE-0002Wz-73 for emacs-orgmode@gnu.org; Wed, 25 May 2022 02:35:32 -0400 Received: from www.selma.hfmdk-frankfurt.de ([46.4.92.145]:41816 helo=mail.selma.hfmdk-frankfurt.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntkcB-0004Df-5N for emacs-orgmode@gnu.org; Wed, 25 May 2022 02:35:28 -0400 Received: by mail.selma.hfmdk-frankfurt.de (Postfix, from userid 113) id 2B50DF616FB; Wed, 25 May 2022 08:35:22 +0200 (CEST) Received: from selma.hfmdk-frankfurt.de (ip-037-201-001-103.um10.pools.vodafone-ip.de [37.201.1.103]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (Client did not present a certificate) by mail.selma.hfmdk-frankfurt.de (Postfix) with ESMTPSA id 03176F6058F for ; Wed, 25 May 2022 08:35:19 +0200 (CEST) Received: by selma.hfmdk-frankfurt.de (Postfix, from userid 1000) id 53C08604299E; Wed, 25 May 2022 08:35:19 +0200 (CEST) Date: Wed, 25 May 2022 08:35:19 +0200 From: Orm Finnendahl To: emacs-orgmode@gnu.org Subject: Re: Help with my first elisp Message-ID: Mail-Followup-To: emacs-orgmode@gnu.org References: <9776a3ba-8adc-88a6-ee09-3da03cc0c05b@serviplast.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <9776a3ba-8adc-88a6-ee09-3da03cc0c05b@serviplast.net> X-Disclaimer: Why are you listening to me? X-Operating-System: GNU/Linux Organization: Hochschule =?utf-8?B?ZsO8?= =?utf-8?Q?r?= Musik und Darstellende Kunst Frankfurt, Frankfurt, Germany Received-SPF: pass client-ip=46.4.92.145; envelope-from=orm.finnendahl@selma.hfmdk-frankfurt.de; helo=mail.selma.hfmdk-frankfurt.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653461624; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=4FbfY655DZ4FY6iAwnhlrJR5kLwYrgd+Dfy5HIXQ77A=; b=PMoRKuF7lpUZDlpKePt8CkmQGxyHhYPXY0vqWGTE7ghaXf3tKuXtjb9q3XOwtYc5whRLjr jORup47w7qYBTmP2oYJ77Mto/HpDpq8xvLwal7Xo3ZBdNr3TJrTI3LYg7DhNao2i9VtdRm 961RuE9UYu4pieIbaWwnjGHKsBDBAo6tuIqtm/6lEmqWcDLpfyRYjXrxXx3EMt8L9lywh1 Mt8CiOCDgEDm1XHUk1mvZ/im2gSeYAq2TXiW/r9s/9P7savP3L6JzVB4sBzLcMtmDHX1vn g2xEqHF4Vz4rxYomaDkQZTIulKVQUKHkE1qCww7ihta4ElPfDz//6gagivhGUA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653461624; a=rsa-sha256; cv=none; b=rgb+PmVrmzCxDn0EJPcIkeunXVqEYudSrRv+6Xf4pZXFzTvO8ouZpgRBoAki0bIsfbuCl2 OgNdPzHb+5CQX8incBZ68eXn1tZSjkRPkYX5kKlOZ3ZEOon/MdRn2CDTxGCLayA24YKq6+ RzCkZESeImAlJWjffo64HMKVMiVi6f9L9rZPegf0ad+/KsajIVu/OrK9Cfs2k30DBWrr8g 8OS2PiMu+i7cHSxx10TNxNOsD67U9XcSC01zCf79pZNBf1mqsBW4dVEGH33gtMla14hwmB 3+LCAjqi3O43oHX/lbjFYF2Jmhr8beoiFzqohiTzTmqXGgzPxasXUUyd4ob+gg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=hfmdk-frankfurt.de (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 2.66 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=hfmdk-frankfurt.de (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: C0752FE02 X-Spam-Score: 2.66 X-Migadu-Scanner: scn1.migadu.com X-TUID: Dz8/NeVzXQSo Hi, Am Dienstag, den 24. Mai 2022 um 19:30:40 Uhr (+0200) schrieb Kepa Diez: > (defun focusJump () > =C2=A0 (interactive) > =C2=A0 (if (equal posicion 1) > =C2=A0=C2=A0=C2=A0 (focusPointInter) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (if (equal posicion 2) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (focusPointEnd) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (if=C2=A0 (equal posicion 3) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (focusPointStart))))) maybe you want to cleanup a bit: (defun focusJump (posicion) (interactive "nPosicion: ") (case posicion (1 (focusPointInter)) (2 (focusPointEnd)) (3 (focusPointStart)))) BTW: As lisp doesn't distinguish case, it is common practice in lisp to seperate words in symbols with dashes like 'focus-jump, 'focus-pont-inter, 'focus-point-start, etc. -- Orm