From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Dimech Newsgroups: gmane.emacs.help Subject: Re: Cycle Org Shift Select Date: Mon, 9 Nov 2020 21:35:14 +0100 Message-ID: References: <87tutyguk0.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32018"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 09 21:37:45 2020 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 1kcDv7-0008DU-4E for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 09 Nov 2020 21:37:45 +0100 Original-Received: from localhost ([::1]:52434 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kcDv5-0006HS-VK for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 09 Nov 2020 15:37:44 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51680) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kcDsl-0005ou-1J for help-gnu-emacs@gnu.org; Mon, 09 Nov 2020 15:35:19 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:48917) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kcDsi-0007or-Lv for help-gnu-emacs@gnu.org; Mon, 09 Nov 2020 15:35:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1604954114; bh=/InmvOFLmnUeaLRUeBL4gYsosY1JBniyIziW3UiM5wo=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=dsQ37s/jb+MaCyM2C7+A/On9Os4md8fY0agDcNWm30VCGtym6+/iHAg7pRQwYTK0p /hCJ7LdgLESuKt5mqWXbTWOEwZVdhqNoyaqYnrTMpWui9RQVar6AXiBMjcQ+qkpCeF g4IYoZKdSv0UQg9mGPDDEFK/gg3hGaGsUSXAbIO8= 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-bs07.server.lan [172.19.170.175]) (via HTTP); Mon, 9 Nov 2020 21:35:14 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <87tutyguk0.fsf@web.de> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:f4RdFbtO+8klTPH6DvA/5U6h5CRopF8ahRXeLBKlUPqnTlC4qMdSbNaDSkymYPgm9fYxF 2cFvpZ2txUDLTyouwl25RtP8u7HpHXLJ/ZFCWzjoVV0oIVMZrbsA7p9MSVzj2+I4225VuUGUa5TH GjEbi1n5UnYB7chrI53mQamSOLzmbYCi2R9pZJ/hQKxjGn04bDA4OjrUP2BEO+XEqnT9iwjvVqbU wP1SVMdF2dPi8R+f0D6w7HVT33ymgeg6+57SGMBN5KGhIXTynaH8OEi+iBrSDgVdbeCMgwiQG1bD JE= X-UI-Out-Filterresults: notjunk:1;V03:K0:2rzcrzQ1Itg=:eb5MbqvAkpzH2PPyXSS55d i4DpERy7vP5sQPxR+QxYriH98/gf+bJlGcgrnIduu2V8vWU2v1ezAehIfNo+i0JtqZNpMzj2F aq+SphDNsmJQSNG3C3G/g7UhJNlxznN9H/hjc09Ni9vG6MFfym6bVA84386V7yj+T+UOA+r4D oZB8QEp/Jkq18FfGNnl21GLgCLzRJOjigVysznrOui68OFekzGJ2s3peQVWGMRz5wZ1ObUdDZ lreAUGftxu36OBUEPZ3Taca01zNdRAbkOKhAilGXHaRfn8oK09Rr7FCUjK4rG5a1W+K2TxwVL AywOafGh7guDnxd5bjudxITxhucVwGeXOFH3RXmenFUpB/yjrD57DOVZozcfxmLA60CAyIES7 43/0OC0cdA6tTgK9mb3FiUSbS7zeIv8nx8vIM1OfmUH44MrhTm6I/ZUN9w8yfpN6Hxiyrq9yv 3xWplHjDByq+ZKFDxJQxDF51pMe3UK15ZJX2G6DOBQxSuldh1D8Cor4TvQGppX8km83TCvWpU qRCFxRCeeSg5nzmizKuVjdlRXITBCVGeQygCsisodxv/BMQRQK2c6gMSmnG2cZSw8nwvQOXiH me/7c6PaOWCys= Received-SPF: pass client-ip=212.227.17.22; envelope-from=dimech@gmx.com; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/09 15:35:14 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:125145 Archived-At: It can always start from the first item in the list. Then I can check if (eq last-command this-command). That is, if the user calls same command it will cycle. Can start with the first item in the list, and when I get to the last, get back to the beginning. > Sent: Monday, November 09, 2020 at 9:10 PM > From: "Michael Heerdegen" > To: "Christopher Dimech" > Cc: "Help Gnu Emacs" > Subject: Re: Cycle Org Shift Select > > Christopher Dimech writes: > > > I have this code to cycle the Shift Select option for Org Mode. > > > > I am a little concerned that (nconc Shftsel Shftsel) will continually > > append, rather than just cycle through the list. > > > > Looking for a better way to this job. > > What behavior do you want to get? Do you want to cycling to start > always from the same point and cycle only for repeated commands > invocations? > > Or do you want to have a state remembered by the command (I guess so)? > Should this then really be a global or a per-buffer or per-window state? > > > Regards, > > Michael. > >