From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 sDtlMV0C8mPUQQAAbAwnHQ (envelope-from ) for ; Sun, 19 Feb 2023 12:05:01 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id EFV5MF0C8mP3VAAAG6o9tA (envelope-from ) for ; Sun, 19 Feb 2023 12:05:01 +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 7C06950C2 for ; Sun, 19 Feb 2023 12:05:01 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pThUL-0000oo-R9; Sun, 19 Feb 2023 06:04:13 -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 1pThUJ-0000oZ-Gh for emacs-orgmode@gnu.org; Sun, 19 Feb 2023 06:04:11 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pThUH-0000sB-4H for emacs-orgmode@gnu.org; Sun, 19 Feb 2023 06:04:11 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 7830824009C for ; Sun, 19 Feb 2023 12:04:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1676804646; bh=MhvnMt+lr0OpNpikdcz4uYxaId/sxMbsG8jLjjwvJt0=; h=From:To:Cc:Subject:Date:From; b=AXzNQMrHVTUq+loRpFUE104tlEFfCkkwcCJG1Tx23WHq+LhtFfMqc2VRuCr541NHH IWKMFGzDtLRAm78Dk2OQRwZ307d+GtGPjWDozlfrpM5R1b+WFsKdQxZx6Ncjw5/85U LBEE/vJfM0hoV6B+ZFcMd2FkXIAtrelIYfg74/okbVa4iwVC7mUAaydvqkOo8VrPQY 5AhdTxhrrlrX/3MWLBAHqykAoufP+/vPZzQb4wFSmDUj1cc5JdeSrK5YLR6P+CqbXY rdlwt3UIkyHxZTG9QCM+rioOB+zjdAk3cjTlvt8di8B16A5oeWHFoDPlaMSTKAnb4j jrPo7ta8IaoWA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PKN372X3gz9rxK; Sun, 19 Feb 2023 12:04:03 +0100 (CET) From: Ihor Radchenko To: pareto optimal Cc: Emacs Orgmode Subject: Re: RFC on implementation adding buttons beside headings In-Reply-To: <1495820062.205861.1676736033884@fidget.co-bxl> References: <1495820062.205861.1676736033884@fidget.co-bxl> Date: Sun, 19 Feb 2023 11:04:42 +0000 Message-ID: <87h6vhkjat.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.65; envelope-from=yantar92@posteo.net; helo=mout01.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, 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: 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1676804701; 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=MhvnMt+lr0OpNpikdcz4uYxaId/sxMbsG8jLjjwvJt0=; b=algiZqzKzVWZr/hN0dUkg4DheqeVMnikYP6j+vceIyMactfOhKOVw2BHz6dlj6bRnYlQst PV8GsRYtpSpgU7jIQy56a2EOey/G7gnugr5rnNWQ6nybEpSArMUrEbkAveuIFfYxBpaDQi +CM9qZuFTXWUUMU94lW7iLZeGAJL0+O35sGciG7zBvvwaORgwjfDAWaxoDTfVwAe4cJr6W fPA+iucd7VTs/xGUYVXmOKJs015HbVH9K6BzTzHU3+JoT3AeiWrf7CP4zIGYJEILp6uw0K Z0Iqyl8Oe0r7j801DJl4U2+niMVj4HQfApA2GqrOnceXYPfoGJ10vMp9bNc7Hg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=AXzNQMrH; 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=1676804701; a=rsa-sha256; cv=none; b=jn6DUVW+lRBVPxYY2L3jbjwZfrHeCOIQuXt1Y/oaP0+ntX+dWQh36zABdcDh4yq/G1rP/O 4/tjsGTparxm8DQjmzGb2C3T+0rR9ipG23iWarK2g/Ku9psMle2EnV67zdcbi2tpiyr6QO Tb+WrWFIagUaiSDTD3hL0XKZPgCqf5U3S9YBR6B5HbdYmBO+Xoiza/YWzp7PuFDzLIvyJo hYHPpZFC60mFQ3oLnKjSzgeWwjkROpl/Z8Yc4FFVRC61HaJbRBe2pRonxZN0wO5O4HpemG WF8P8uag2X+gZ4y9uNpERren5TRQ6RsnSPfX+EYi6wxmqRb816dkz+5iig4cXQ== X-Spam-Score: -6.86 X-Migadu-Queue-Id: 7C06950C2 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=AXzNQMrH; 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 X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -6.86 X-TUID: VkCbwQp5TI/D pareto optimal writes: > I've recently been playing with emacs on Android and wanted an easier way= to clock in. > > My idea was to put buttons beside org headings that are TODO items. I do = this by: > > - removing clocking buttons on heading if present, then adding a clock in= button on=C2=A0'org-after-todo-state-change-hook` > ... Alternatives can be: 1. Showing a side buffer with context-dependent buttons 2. Utilizing context menu > I'm new to using buttons and emacs and I found the only way to place the = button where I wanted was to insert some blank space after the heading. Is = that expected and best practice or is there some other way to do it? AFAIK, buttons must be on top of actual text. You can also use `insert-button'. > Would this be something useful in core org-mode? I know at least a few fr= iends who've asked me "why isn't there some button I can click by headings = to clock in" when I showed them how I use org-mode. Mobile support will certainly be useful. Though I'd prefer not to modify the buffer and instead use a side window. That way, you can write a minor mode that will create configurable buttons depending on major mode and cursor position in the buffer. The buttons will also have a fixed size, possibly utilizing larger fonts-a useful thing to have on smartphones. Such minor mode may then be not restricted to Org mode and could be used, say, in Org agenda or other major modes in Emacs. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at