From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yBUjNlt082PIXAEAbAwnHQ (envelope-from ) for ; Mon, 20 Feb 2023 14:23:39 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id QMEYNlt082NFggEAauVa8A (envelope-from ) for ; Mon, 20 Feb 2023 14:23:39 +0100 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 8D42219B3 for ; Mon, 20 Feb 2023 14:23:39 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=GJ10KvXm; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1676899419; a=rsa-sha256; cv=none; b=PnTHxql/R7G8XNnOXJWd9Eav0cYKcspgMzIS15PvSifhhWdctllNBjG5wSXkN/vcWO5+sv 6pdJmJi5FpK2lNMKLI/UMXbj/YFGeSvvMfJftsbj6d0UL/B9RPJOyNWeO1vwDQrcDuCibz dCt+aJWPV+dBzjfnOpI2ubPAZwzc2sh7BYVrPi+Hl7tOmgLfuRJc+PtkvQd8gCt1OMOD6/ wAdm4GId+8FlH3zhbW2aOFXHHrIBtGz6JVeq06DeEzcgJgHNDu8+9k6ndSoXbqH+JWdUey 0ob7fwXWzc6D3pAyYoF3+AFLLgjutyYCiv0Ba/HqgH7BZe6Vk+hoKGjE9dy1Ew== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=GJ10KvXm; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676899419; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=M+AFQ1oyALylZ/cFGSNHqASbSz2thej43HxhxEzdkO0=; b=WlWXZOeGx8UkVftSNZN/o6iXc5WrsSPfGDI/ozPClXds3jSpU/4gCMOKoqfv/InsDloss8 wWiUX7cNOOachku2K2oj8vW8RLrYzsFYbyXxAtaltLygPqTOzluH5xo3CTpFrUW94ioeKX Vrr370eluU9IfuRPdDE55R2tvoyx/G35eG4WUJ9NrHp2QfL4F37pMJ1a0JrYzSfKai8RUU iDNeG/cjhm6ECe/3uoezVVr+YwqKSK2ZMZfiivU5qvZTBJ9YA58iKG9yeCwNc/blaVWSQM IgqHDGMn6x+Xo8o7rrJ4hv6iLZRO23pKkOWtnZ7W8qIoJYfeMYWvTf6rYQeWfg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pU685-0006ly-Fp; Mon, 20 Feb 2023 08:22:53 -0500 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 1pU683-0006lP-CQ for emacs-orgmode@gnu.org; Mon, 20 Feb 2023 08:22:51 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pU681-000821-AS for emacs-orgmode@gnu.org; Mon, 20 Feb 2023 08:22:51 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 332FD24014E for ; Mon, 20 Feb 2023 14:22:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1676899366; bh=sDd9zxjiUgymrv6R9xB6LEEcgbZwrra/AlN8lqUH2s0=; h=From:To:Cc:Subject:Date:From; b=GJ10KvXm/5qkKd5QQhTKw5iRdoiVE9dzVwwuEC7tWUMknSU9YTUBbjOWhVLTC1QgU P+ANQHbSSQWHiL/Y40YNiNsz9l2IykISBJKyMDtK8z21J+EUb3NHlBoQ3jOVqd7Om9 lt6O+oE33KsVISGYzmwOi9RkSFNpBTJbp/nwl5K0T3/lHo85PSrOCGOPl6hpQzEkDU 9AqrBFTB6ZDsKMVKAmEkNb8pC3YK/V2l6GMUty6t6plxThKwHUnRC6fU3hoxzQZvyG sGZbdIC+OiKVqJigd+Tpd0tdRnyKa5RKAOhtiuLgTg79t0xsxlYTKKK3zeXVB2FZ3W 3D6xUddSsmPSA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PL34h30tMz9rxP; Mon, 20 Feb 2023 14:22:44 +0100 (CET) From: Ihor Radchenko To: pareto optimal Cc: emacs-orgmode@gnu.org Subject: Re: RFC on implementation adding buttons beside headings In-Reply-To: <292424133.47705.1676856972523@fidget.co-bxl> References: <1495820062.205861.1676736033884@fidget.co-bxl> <87h6vhkjat.fsf@localhost> <292424133.47705.1676856972523@fidget.co-bxl> Date: Mon, 20 Feb 2023 13:23:25 +0000 Message-ID: <87edqkeaia.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, 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: 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: X-Migadu-Queue-Id: 8D42219B3 X-Spam-Score: -7.93 X-Migadu-Spam-Score: -7.93 X-Migadu-Scanner: scn0.migadu.com List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-TUID: GMFhpnfyJfc+ [ Adding Org ML back to CC ] pareto optimal writes: > Do you mean something like extending=C2=A0https://github.com/alphapapa/or= g-sidebar to have these instead of directly in the org document? A bit different. What I have in mind is something like (defun yant/insert-interative-button (text window command) "Create button named TEXT running COMMAND in WINDOW." (insert-button text 'face '(:box t :height 2.0) 'follow-link t 'action `(lambda (_) (select-window ,window) (call-interactively #',command)))) (defun yant/demo-buttons () "Demo of a buffer with touch screen-compatible buttons." (interactive) (unless (derived-mode-p 'org-mode) (user-error "Must be in Org mode buffer")) (let ((org-window (selected-window))) (switch-to-buffer-other-window (get-buffer-create "*Touch buttons*")) (with-silent-modifications (erase-buffer)) (yant/insert-interative-button "Next heading" org-window 'org-next-visible-heading) (insert "\n") (yant/insert-interative-button "Previous heading" org-window 'org-previous-visible-heading) (read-only-mode t))) > The context menus are great! However it seems some people have a hard tim= e thinking of emacs as a gui applicaiton and right clicking even after I te= ll them :) It will be more natural on Android. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at