From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 05JPGU5zo2H8fwEAgWs5BA (envelope-from ) for ; Sun, 28 Nov 2021 13:17:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id WIoxFE5zo2FdZQAAbx9fmQ (envelope-from ) for ; Sun, 28 Nov 2021 12:17:18 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9D4902ACE0 for ; Sun, 28 Nov 2021 13:17:17 +0100 (CET) Received: from localhost ([::1]:58576 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mrJ7L-00024V-GP for larch@yhetil.org; Sun, 28 Nov 2021 07:17:15 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53398) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrJ5z-00023j-MZ for emacs-orgmode@gnu.org; Sun, 28 Nov 2021 07:15:59 -0500 Received: from latitanza.investici.org ([82.94.249.234]:52913) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrJ5w-0006ML-Sq for emacs-orgmode@gnu.org; Sun, 28 Nov 2021 07:15:51 -0500 Received: from mx3.investici.org (unknown [127.0.0.1]) by latitanza.investici.org (Postfix) with ESMTP id 4J26r92HmJzGp4L; Sun, 28 Nov 2021 12:15:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=onenetbeyond.org; s=stigmate; t=1638101721; bh=b1kQ1y1WyiykDa4/kf9tS9UvDBVjszUQiXax2srs0Aw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=MplRjfaAt80zXUnY28DvtgAF/xtB6HnetoUVfOYEUan2tt3ZmksY5eh0VnqhUoGnn FnQDZ7LvadpTnusTpyAgsNNrKAfb1qGw8elD5GBsUTqROytAXeLi+SNSNCHIcmJGqH c/uWUO7W4xm+IqlOQBipH+5/fthlNCieOE0whyLk= Received: from [82.94.249.234] (mx3.investici.org [82.94.249.234]) (Authenticated sender: dal-blazej@onenetbeyond.org) by localhost (Postfix) with ESMTPSA id 4J26r73cgkzGp4J; Sun, 28 Nov 2021 12:15:19 +0000 (UTC) From: dal-blazej@onenetbeyond.org To: Shankar Rao Cc: emacs-orgmode@gnu.org Subject: Re: Unintended consequences of removing org-speed-commands-user References: Date: Sun, 28 Nov 2021 13:15:02 +0100 In-Reply-To: (Shankar Rao's message of "Wed, 24 Nov 2021 10:36:37 +0100") Message-ID: <87zgpolbnd.fsf@onenetbeyond.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=82.94.249.234; envelope-from=dal-blazej@onenetbeyond.org; helo=latitanza.investici.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1638101837; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=b1kQ1y1WyiykDa4/kf9tS9UvDBVjszUQiXax2srs0Aw=; b=B5EVBV65z0v0kuNRQNQlCwlnK3Vucj7YpovO+PMQaN2U8SI2tS8ymU3zFvh19ZnAieKuCD pXQYmTTPbwA94rrE6AHZVfYM3/emmwsL6C9kTyRGasqb5JsfBsxm0WyhA62Flu5EMvOBMl t9agrLFkgzmTCSOSlk9FPDDO6VfPctgdYH5MNIDnLfqej3NrpPyUnw6D4mJNs1zec7E7Df 6Eh2OCdJpLrWX1U0Hz2TSydLYtAjwGH+4rsVo3sPuVbg+4/6ts/2BAu+SHxpdr+5FGjrLq ta9KO7sh8uKBk6iUP8dXrPP/TiG2YCdsnRx+ltjUqRF848C00MUeiH5tK/ei+A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638101837; a=rsa-sha256; cv=none; b=RZF9ZaBbvkoN+x/61iVeVbIzq2BYy7OgLdBlHY47OsAQgm3z/I6QX/Q9mSP8UtOCimy/Zn lxRDgw8qTuq/Hc2N4fKi926D2hQnAfZQ+dcZPKgcFiaDARNT17mlo/RzzNkag3YkQkzgKU gS7FLQjP/njWDzHuDfUhG/CwjkiJvM0xZrxYMUeyl1NpuwTAbRb9DIIeaTvBUeYDq7tYrr iEGKSMkcen4mjX6LbNnX02aKqXdP2z3ZhT6258u3Wol1z58OhYPInVWtsfJxRwka61Ll4P oQ8pms0xZLP37EKLN+CndNmXDITeZPZJa3b8RhwI4OKSRMYmCh/pyDIPunRvaw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=onenetbeyond.org header.s=stigmate header.b=MplRjfaA; dmarc=pass (policy=reject) header.from=onenetbeyond.org; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=onenetbeyond.org header.s=stigmate header.b=MplRjfaA; dmarc=pass (policy=reject) header.from=onenetbeyond.org; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 9D4902ACE0 X-Spam-Score: -4.11 X-Migadu-Scanner: scn0.migadu.com X-TUID: u/NbTWHXuWAA Hi, If you want to insert a new element in the list after a particular element, you could do : #+begin_src emacs-lisp (let ((bk (cdr (member '("Agenda Views etc") org-speed-commands)))) (setf (cdr (member '("Agenda Views etc") org-speed-commands)) (cons '("@" . my-foobarized-speed-command) bk))) #+end_src Use append to insert a list of new elements instead of one. Also simply add a new list at the end, use append : #+begin_src emacs-lisp :results code (setq org-speed-commands (append org-speed-commands '(("my foo commands!") ("@" . my-foobarized-speed-command) ("&" . my-barfooized-speed-command)))) #+end_src However if you define many new commands, simply redefining the whole list is simpler ;)