From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Akib Azmain Turja Newsgroups: gmane.emacs.devel Subject: Re: [NonGNU ELPA] 11 new packages! Date: Tue, 29 Nov 2022 02:32:55 +0600 Message-ID: <87fse26cqw.fsf@disroot.org> References: <87r0y6ug9z.fsf@disroot.org> <87y1sct2hp.fsf@posteo.net> <87k03vf5m8.fsf@disroot.org> <87edu2narn.fsf@posteo.net> <8735aieqtr.fsf@disroot.org> <87cz9mlq3o.fsf@posteo.net> <875yfdd5ad.fsf@disroot.org> <87wn7hh438.fsf@posteo.net> <87sfi5h3ne.fsf@posteo.net> <874julpgi4.fsf@disroot.org> <87v8n04o4b.fsf@posteo.net> <87cz98nxah.fsf@disroot.org> <87sfi2vqxe.fsf@disroot.org> <87a64aeui1.fsf@posteo.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40281"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs Developer List To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 28 21:38:19 2022 Return-path: Envelope-to: ged-emacs-devel@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 1ozktO-000AHU-CJ for ged-emacs-devel@m.gmane-mx.org; Mon, 28 Nov 2022 21:38:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ozksj-0000zi-H6; Mon, 28 Nov 2022 15:37:37 -0500 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 1ozksh-0000ul-6b for emacs-devel@gnu.org; Mon, 28 Nov 2022 15:37:35 -0500 Original-Received: from knopi.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ozksd-0003tD-St for emacs-devel@gnu.org; Mon, 28 Nov 2022 15:37:34 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 72FBF4106F; Mon, 28 Nov 2022 21:37:26 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Original-Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zhTCuGemDOQw; Mon, 28 Nov 2022 21:37:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1669667845; bh=+20r/Noq8c8ysPu50qzFYwK7ETn4HNZIC8HRxrcdMV8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=F3ETIs27XzyvNqNrcFpH90I+r1qVXzRq2I08jUW/N8Q+nOqPI7rWXSTkf0Wln6ju1 kUCruVpfcQXudXkC+XQukFHtvU9kw+WvMUk05i6K4sY5zFXRJU7dgVKuXuJOuCbf0A YBzFyYthYNDsDKIKRFcflgBdMkPsRvgRB2LXP3cuaGGDVRzbCUlVtKfqoo5QvM4wt8 6SOJUyCdy9KjOdsOCYa/zYk3dwkA0M9ghlf2WUNK87zYvugd0xzVWpKblxihlfLb5W asMe44u4eOoQr6s3EqHRF015dUOHIfKRBPLQs61y8sAeE7hGE3jqrGHTM0LuguxQuF Uf36V8jtE/B1A== In-Reply-To: <87a64aeui1.fsf@posteo.net> (Philip Kaludercic's message of "Mon, 28 Nov 2022 19:42:14 +0000") Received-SPF: pass client-ip=178.21.23.139; envelope-from=akib@disroot.org; helo=knopi.disroot.org 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 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:300686 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Philip Kaludercic writes: > Akib Azmain Turja writes: > >>>> @@ -3788,17 +3802,15 @@ DATA is the selection data encoded in base64." >>>> (rx ?\\)) >>>> output index))) >>>> (if (not match) >>>> - (progn >>>> - ;; Not found, store the text to process it later when >>>> - ;; we get the end of string. >>>> - (setf (eat--t-term-parser-state eat--t-term) >>>> - `(,state ,(concat buf (substring output >>>> - index)))) >>>> - (setq index (length output))) >>>> + ;; Not found, store the text to process it later when >>>> + ;; we get the end of string. >>>> + (setf (eat--t-term-parser-state eat--t-term) >>>> + `(,state ,(concat buf (substring output >>>> + index))) >>>> + index (length output)) >>>> ;; Matched! Get the string from the output and previous >>>> ;; runs. >>>> - (let ((str (concat buf (substring output index >>>> - match)))) >>>> + (let ((str (concat buf (substring output index match)))) >>>> (setq index (match-end 0)) >>>> ;; Is it really the end of string? >>>> (if (and (=3D (aref output match) ?\\) >>> >>> Somehow I prefer to use one setq for each variable. Is setting multiple >>> at once faster? Benchmarking with "benchmark"... Yes, about 1.5 times. >>> TODO. >>> >> >> Done, but I didn't combine setf and setq, only two setq's or two setf's. > > Any reason why not? > Not any solid reason. I prefer to use 'setf' only with generalized variables, and 'setf' expands to 'setq' anyway for symbols. =2D-=20 Akib Azmain Turja, GPG key: 70018CE5819F17A3BBA666AFE74F0EFA922AE7F5 Fediverse: akib@hostux.social Codeberg: akib emailselfdefense.fsf.org | "Nothing can be secure without encryption." --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEyVTKmrtL6kNBe3FRVTX89U2IYWsFAmOFGvcACgkQVTX89U2I YWv+/BAAiMbLYSeOD0m+i+NkvtFT55Lzkd0WluCPAazZqZ6E+g6h1/chzLRwFTN9 GUN+yvsJeMxzhPXAH5OAlXyJd3Xa486Q8APGCdyR1Q37gQLYSmoWACgSfQbLyPDN jZClcqr77E6x6zp3qi894YOcU2WTbjCEytyn2IodW0rG/DThZsWoMNI5CGX5hc1k CQ6hklwtbBSn672UzgVvraP7UVgEJDCr3/83WQ5ZexJYoopvmfaxzZ5ERbIdOCEf GJSAsPkwUcljK4/xMOnPRkeG8CAVlP46+T9oj0vGTXP9e1EqomygZ8WiA7vOL599 qenXPDBMwi1Cf2a0RumnRy0aO4BuFWPFj5YjM+bRI7U957s9m1SzfQrMKQbf9uGp /2NfyH3mY+CsGIq3XNl9qL5dHuah72q3dWEAQfCWpN7lL8U176rongkBGVVVXMI4 BpEuMPTZ0pLM2YK08DLCBhfisOtUEhyW+New1YsnTpQ4UYyK3d2JiILDnFRGKvaj L4Xu595lNl5+NYRn6GhILun0Nr9DftmmAhl55Lo/Dc2Z2F4bzQ9qCz35vbb2ggOX 6sAPpRdFG2wwYxHC9+j6TZpDL5bhlkNJVgosdsU7DuCMseexyrDkYosm19+oRJNO zZwLkJzmp9nQSWGOCAMUmAaqfKbmInFVMHJFdfv3wTU5Wiz3Z0Q= =V5i+ -----END PGP SIGNATURE----- --=-=-=--