From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 4MblIgzpjWJRZAAAbAwnHQ (envelope-from ) for ; Wed, 25 May 2022 10:30:04 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id qL/FIgzpjWLfJQAAauVa8A (envelope-from ) for ; Wed, 25 May 2022 10:30:04 +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 1A11825737 for ; Wed, 25 May 2022 10:30:04 +0200 (CEST) Received: from localhost ([::1]:43156 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ntmP4-00046I-6X for larch@yhetil.org; Wed, 25 May 2022 04:30:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50582) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntmJL-0001rW-BX for emacs-orgmode@gnu.org; Wed, 25 May 2022 04:24:08 -0400 Received: from mail.tuxteam.de ([5.199.139.25]:56614) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ntmJI-00059S-M9 for emacs-orgmode@gnu.org; Wed, 25 May 2022 04:24:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=LbX4Ptk6czdD4wsYsk8cABPmLzdC3LlXNTjfqug+YKA=; b=XQ7iMt9A3gr6bFkpe9RxWwjOYW rZB15KMXN40fzpXL5HjX81oIjjpyRTAK6D1yt81gWxYmiIBrqYUaTH/OdKc6pL7xA0joBnJlad9pe hen8Kww0IZWYA1a6pnnKecsHKRl96EtyCNj4u6/vEAGk+aeHhFzRjZ2Je7ODUwBrhh9dbK2nCTY7F +doksZHs9w5tZU3vYcDp2lbdJ1TN1QVji1F53o/oYh4k3sTWtPHc1krR6X9M3JQbp8VXtknsqejj4 url/s5H/L7zAp4LQCohQueq59m8WbNAOekseTtmCIlJj/dIJNutte4x53IO/I2FnuYY5HgZOmUT/V 9TdXAUgQ==; Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1ntmJF-0007sO-C6 for emacs-orgmode@gnu.org; Wed, 25 May 2022 10:24:01 +0200 Date: Wed, 25 May 2022 10:24:01 +0200 To: emacs-orgmode@gnu.org Subject: Re: Help with my first elisp Message-ID: References: <9776a3ba-8adc-88a6-ee09-3da03cc0c05b@serviplast.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5qVo4MX4Ac1StFtR" Content-Disposition: inline In-Reply-To: From: Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de 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, 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=1653467404; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=LbX4Ptk6czdD4wsYsk8cABPmLzdC3LlXNTjfqug+YKA=; b=NBnfRpvDB3CHyHeebaDeZti3R2S/eWxnkYyME7d/J7NEZifT059+zpUb+HXG94Z0Dff2yD aFwG4QeJeWt57yOeKIk/KoisNFWN3Ii7E7DWtnMkLhA6fqIC3sDAv/TNgc8Z5up5Jktttv 9cNWXWg5MjZ1VDcvEhyEtfipOVW+SE9tR+C12dO7tiynDxALAB/RpbRTFvPxY/PS2KCZWl r7eqxI0EuFdD5E3dOa4YhIthDMk0t86FsKYQBUTePx7tvCA7EUEa1eHtU5gLyMNtLZmqVH mBmzGvg0MS+/3IbZFdXnPSQuSC4UcqJNyPA2YsQAkhNT+uGE+hmySxo2hoSL6A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653467404; a=rsa-sha256; cv=none; b=GKpzsJesYK7NcN/8UXoh4v/kBQYl1aNmr01Hv0mmhvFXIlEurZnABIA/aR1L4+mQ7HNFBT o9WLeXXyNawOpUSwm4XVLIH/MJnHOSrUP536jlULuKTncxmBpO5x3z9AjH2Zdo+ZwXiJwv 10D11uocwaJpiRKlNzFk9MUK1+rD1dV8Pt1VwPM20IIUpOFQ63fXf54bXjIMDzvSZ06R7C P04v5p+dE6AjxM5nr5VLHJkzP+i5HIcecf2WEU6dBD/wIwgxTsXud4LqKTGgkaStXfGg6o rEvShDAwsEX/C9yKZX7rXoDflxkI/Pa/snTa1QJhW67E1s8hzmxGpNoDIz8LVg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tuxteam.de header.s=mail header.b=XQ7iMt9A; dmarc=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: -1.44 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tuxteam.de header.s=mail header.b=XQ7iMt9A; dmarc=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: 1A11825737 X-Spam-Score: -1.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: RUjidvR38KL6 --5qVo4MX4Ac1StFtR Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 25, 2022 at 08:35:19AM +0200, Orm Finnendahl wrote: > Hi, >=20 > 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))))) >=20 > maybe you want to cleanup a bit: >=20 > (defun focusJump (posicion) > (interactive "nPosicion: ") > (case posicion > (1 (focusPointInter)) > (2 (focusPointEnd)) > (3 (focusPointStart)))) >=20 > 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. Just to avoid confusion: Emacs Lisp does distinguish case. Traditional Lisp doesn't. I know you know, but people could misunderstand the above. The rest stands: in Emacs Lisp it's customary to write variable and function names with dashes, in good ol' Lisp tradition. Cheers --=20 t --5qVo4MX4Ac1StFtR Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCYo3noQAKCRAFyCz1etHa RlipAJ9jduJSV2GbWUgFHMD0+KenGWX/egCeINbxtp87QYgUVKhwTafErlsWQ9Y= =osHV -----END PGP SIGNATURE----- --5qVo4MX4Ac1StFtR--