From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.help Subject: Re: Cycle Org Shift Select Date: Mon, 9 Nov 2020 15:37:02 -0500 Message-ID: References: <87pn4mgufa.fsf@web.de> <87h7pygtll.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34959"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs mailing list To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 09 21:38:26 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 1kcDvm-0008yA-09 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 09 Nov 2020 21:38:26 +0100 Original-Received: from localhost ([::1]:53408 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kcDvl-0006rE-29 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 09 Nov 2020 15:38:25 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52150) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kcDuk-0006cS-6m for help-gnu-emacs@gnu.org; Mon, 09 Nov 2020 15:37:22 -0500 Original-Received: from mail-oi1-x22c.google.com ([2607:f8b0:4864:20::22c]:43928) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kcDui-00089D-BH for help-gnu-emacs@gnu.org; Mon, 09 Nov 2020 15:37:21 -0500 Original-Received: by mail-oi1-x22c.google.com with SMTP id t143so11653858oif.10 for ; Mon, 09 Nov 2020 12:37:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0ho1v8Jm7rqEOI1yfVcFeUwQXS91SZ9E0MrgNNcgASI=; b=nFyOpB5XE6QTCcXf3cdqQ3mir2JsRU2tcXgR9Ow0Yz1d8BAjryv22twbyhQklSBaIu rMfwpGkOTyFLIJcpInJPVKrzZn4tWTuU3AYXA1RUa67pQx9pVdUphAKJRdGeSjwpGZ+w WWSV/Cbg7m2tWDYRtc3TID1062keEmsr0HFrdJt23/aQmZIAG5TukPstPq5SnJHJ7NtS AQ00rDMKOORaNWAWQCYGjkhzeGUcSZ7JM7kUCej3ujVACvIsE+L8fAcMLfMDo1s6JaDH rxz2vEwoF4+7DCLrar0bVF8+B9hYmJFfu+iPMfFonNLG3s427leSIYLaDGr8HCQ5A4bU dvGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0ho1v8Jm7rqEOI1yfVcFeUwQXS91SZ9E0MrgNNcgASI=; b=BkX+erLLUCWB2fa4NJoaVG6eOsaGipsB9FBSDIMhlE8xOEf4bVo97FShbLyvSxJKT9 1jyMcIn5bxXt7F6II4PNZqBt4ar7espj/dpgIUo/79L75SQXZBVoQa1CEfjhK5CkJ1dH da/mTrXEGNc2rPlSGnVkWVOHtj8e+z+zHx+WyFINR/k/ZH6j7qV89cDBZoMGGAIoqbuh acMxF4bQ5vA6jLetT/8EKLUfQKJtoh39meGHJtgbhOkHMVRm4CBevufm8TEPUHtxYEz6 LnYylaLB6vriKpQdbCDzHRJG/wKGYgzRI/E/fOIp+spKNRAQflLCz8OdpxV4N8OSeoQ2 JX1Q== X-Gm-Message-State: AOAM531T7kapRJyQqhDNdY4IiJXlGjqp1Bhzhwdi5kGvKzePhztokrFZ iiE/cJ6Xg71NYowqPPLG7NkDIbFWbYsUGORmiso= X-Google-Smtp-Source: ABdhPJzsX7J+5zTRqQePR01lBbioB9rZGFulg6hz3YCNQmTsW6aqNVm7sjMcwI3+e1WyR3CYs6eVRnq0ueQw7FWz+LM= X-Received: by 2002:aca:ef06:: with SMTP id n6mr604378oih.173.1604954239086; Mon, 09 Nov 2020 12:37:19 -0800 (PST) In-Reply-To: <87h7pygtll.fsf@web.de> Received-SPF: pass client-ip=2607:f8b0:4864:20::22c; envelope-from=npostavs@gmail.com; helo=mail-oi1-x22c.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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:125146 Archived-At: On Mon, 9 Nov 2020 at 15:31, Michael Heerdegen wrote: > But isn't meant to be used in the code? It's meant like this: (defun Org-Shftsel-Cycle () ;; Switches between options to org-support-shift-select (interactive) (setq org-support-shift-select (cadr (memq org-support-shift-select '#1=(nil t always . #1#))))) If you are uncomfortable with the circular syntax, then using '(nil t always nil) instead, as in my first post, is effectively the same (i.e., you don't really need a circular list here anyway). I don't understand your comments about local variables or closures though. https://lists.gnu.org/archive/html/help-gnu-emacs/2020-11/msg00298.html