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: Cycle Org Shift Select Date: Fri, 6 Nov 2020 16:23:17 +0100 Message-ID: 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="3615"; mail-complaints-to="usenet@ciao.gmane.io" To: Help Gnu Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 06 16:25:48 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 1kb3ca-0000pq-JW for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 06 Nov 2020 16:25:48 +0100 Original-Received: from localhost ([::1]:35442 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kb3cZ-0001rf-Dr for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 06 Nov 2020 10:25:47 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36304) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kb3aE-0001rW-RA for help-gnu-emacs@gnu.org; Fri, 06 Nov 2020 10:23:22 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:38191) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kb3aC-0007kx-MS for help-gnu-emacs@gnu.org; Fri, 06 Nov 2020 10:23:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1604676197; bh=xyuKqSsvAHM9xJfs/JWTY2uRtLfrdvGNv3+ZefEuOA0=; h=X-UI-Sender-Class:From:To:Subject:Date; b=eL+sqagTzKFQEgvQaBIbl2uxlOeu1UEe7PZrUSOg08L5lasPTYJC64gGmeOpiwto5 nroR6DJuHlwLPktp/QZC5DU4PVTkdFQ0BwBJOiujV20ltwwk2WsIVyrvPLi1gIUnDT q1LewhtzfaAqkx+/DxYi69wnmuPXl4HJ9bdOdVNE= 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-bs11.server.lan [172.19.170.179]) (via HTTP); Fri, 6 Nov 2020 16:23:17 +0100 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K1:CHSJdZOkoGb2RUJYky71/LQUQV1W3lFLIDS6SME95OlbhQ98evLgGGtor5elXxmtfXyRg +YaVasDTxtLQIvfSpQ2wg6XSYw8fI79DST3Rsuk/xRX4TwlHLv8H8mBDfare7ar3FEFRVSteHXLX cSdQkXFsQE/w0TPTK8HruQI4aFUqcg3n5LJzEo3Z3+S3h74aoHzGqHRIu8BARnZ8lW/qPMNPwDUC X4tSfn0dEsxjDJmtDsoLY2/U/xpsyqNi72gxBQnG0FQhJrMCb0EL76xNeyq+f280NTuTxTtC05/B W8= X-UI-Out-Filterresults: notjunk:1;V03:K0:yXXtnGsrY7w=:pgAOYRIsbgJ0POV88cmFoO qg8nTbLyZ6IKEtWlvGSNrZEmgBF67F6YSHCKOcWzz9eQ13dMCyuR/VTR9DfWK7iM/hWe2u/PY TWJaoYfeQH05iF4QTVj8xcv/2WjcXL4ONd9UHIMwn/OX5U3x8rl2aC5Ess11woQ5ELR36WiJH wRadYOGWAmu13KsMZ5QqtpOIVhtQMeYMpdZ5YebXRU9IDJdgnZVR5HI8CdNU1Xvz1BO01imFr UGtqfVnJX2wmjJ6vP0yu+RtXey3Zn08HOP0EsO5HnHeokiySOFZrQ6PQf37LSt4b2tCkOJcK/ /X9lU9VywIOwAvJ8x1e5IS8ATq+aHBBgi/hrHL8ywJEtJVxK1tBQMvR8rAsiw8uvLySE6+Ex/ tcGvvnVQJ41Cqev/YXJe6g+2yGpXjVZ+zYn7dstwIRJQko/Xyknyto5MAkP4JBCymrFl4tpIJ ge/nefiexRiH65YoUZuQBOgddGfUfPj3Z52a4x/f9UM/ytDtDShviJinqvtOJyo0C5JC3b3q7 awaI03YHK1362iZ+BCCQ8KG0vhl+GqMSQDaU270zyu6ZQCNPpWqecAlPSP6p7+d05E31jLOH1 iqkRt8EqShmgk= 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/06 10:23:17 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:125068 Archived-At: 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. (defun Org-Shftsel-Cycle () ;; Switches between options to org-support-shift-select (interactive) (let ((Shftsel (list nil t nil 'always))) (nconc Shftsel Shftsel) (setq org-support-shift-select (cadr (member org-support-shift-select Shftsel))) ))