From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 30809 invoked from network); 31 Aug 2021 15:54:41 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 31 Aug 2021 15:54:41 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mL65w-00BsI1-CE for ml@inbox.vuxu.org; Tue, 31 Aug 2021 10:54:40 -0500 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94) (envelope-from ) id 1mL65v-0014a2-Pd for ml@inbox.vuxu.org; Tue, 31 Aug 2021 10:54:39 -0500 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1mL65u-0014Zw-N3 for ding@lists.math.uh.edu; Tue, 31 Aug 2021 10:54:38 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1mL65o-002GDp-0p for ding@lists.math.uh.edu; Tue, 31 Aug 2021 10:54:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References :Message-ID:Date:Subject:From:To:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=felCXW/k2xP9TnWRXy1gUGpNknvpoPIALiY33TInuL8=; b=F6okFxWXDnbjVWfBLL4ViCv3WT cJzzt8S0qbeYHj5/kzJ8xd3SqBOarhOpRBreu9DpXIKHS2+U6qyEvJ7wux3gsmMt6ie5ECSPyj/ZZ 0AkSrySTNwsxDTxSumUl0HwpdhQamwd3BzQ8FdM8RFht7I1uj+94nZVuIjAyQcjm/378=; Received: from ciao.gmane.io ([116.202.254.214]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mL65f-0004NY-Fl for ding@gnus.org; Tue, 31 Aug 2021 17:54:27 +0200 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1mL65d-00005o-8K for ding@gnus.org; Tue, 31 Aug 2021 17:54:21 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: ding@gnus.org From: =?utf-8?Q?Adam_Sj=C3=B8gren?= Subject: Re: for a given emacs session: insert a subject with an increasing counter Date: Tue, 31 Aug 2021 17:54:10 +0200 Organization: koldfront - analysis & revolution, Copenhagen, Denmark Message-ID: <87bl5dbof1.fsf@tullinup.koldfront.dk> References: <87v93maplq.fsf@mat.ucm.es> <87h7f629rj.fsf@ucl.ac.uk> <87o89e85vg.fsf@mat.ucm.es> <87k0k2aynw.fsf@tullinup.koldfront.dk> <8735qpd3jj.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cancel-Lock: sha1:DB3RWqnlfuTAecG61ACcNSm8Kv0= OpenPGP: id=476630590A231909B0A0961A49D0746121BDE416; url=https://asjo.koldfront.dk/gpg.asc Mail-Follow-Up-To: never X-Now-Playing: P1 X-Face: )qY&CseJ?.:=8F#^~GcSA?F=9eu'{KAFfL1C3/A&:nE?PW\i65"ba0NS)97,Q(^@xk}n4Ou rPuR#V8I(J_@~H($[ym:`K_+]*kjvW>xH5jbgLBVFGXY:(#4P>zVBklLbdL&XxL\M)%T}3S/IS9lMJ ^St'=VZBR Precedence: bulk Uwe writes: > Well the defined quantity my-subject-counter contains in its > definition my-subject-counter Ah, yes, but setq doesn't define a quantity - it is much less abstract: it assigns a value to a variable. > (setq my-subject-counter 1) > > Is not recursive, but > (setq my-subject-counter (+ my-subject-counter 1)) > > Looks a bit recursive to me. Thanks for explaining, I was genuinely puzzled; you are using a different definition of recursion than most people do, when it comes to programming - where it is usually, implicitly about functions. Unless '+' has started to call itself ;-) Best regards, Adam -- "I went for the fireengines Adam Sjøgren But they were all upside down" asjo@koldfront.dk