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 2PqOEaZVaWELUAAAgWs5BA (envelope-from ) for ; Fri, 15 Oct 2021 12:19:18 +0200 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 8KkhDaZVaWHjUgAAbx9fmQ (envelope-from ) for ; Fri, 15 Oct 2021 10:19: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 94F8D1473C for ; Fri, 15 Oct 2021 12:19:17 +0200 (CEST) Received: from localhost ([::1]:53416 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbKJ2-0007CD-NU for larch@yhetil.org; Fri, 15 Oct 2021 06:19:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53534) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbKIV-0007Be-Ka for emacs-orgmode@gnu.org; Fri, 15 Oct 2021 06:18:43 -0400 Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]:33459) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mbKIU-0001fF-4c; Fri, 15 Oct 2021 06:18:43 -0400 Received: by mail-lf1-x131.google.com with SMTP id j21so40067704lfe.0; Fri, 15 Oct 2021 03:18:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=CC6zbw2qucqW59UITyUJM8/RwOqEFYG8cOvRizv6DOA=; b=HRb9mjMtbocJKsuGmeDix/FLZoDgVqncU4GraaCxeA554jD8qZpDsrj78nZw/dypym mgLDZck+7yH/4p7lXgj1VCTtXtPYLxFnjUjHEHqyUvKpLAzMOCPAMe5ndawhod6yiqHx e+X5TubzNbbJSlqoxPAmbY6Vv+7Fjt40UBC933XYysa0PG3LCY+TU63Nr7GHwE4NnH/b eN6idIblYNTrPUK1chz/4XvxlhDrN9C7ZioDB2xbA0xd/tnVYV7Blet3tLRP7uUzuacY sFCM0A+1F1HMPYRQ7xx/HQUdrjKKgmUcYZ5KFewhcFQJhusuccr+u7XrwkAgqD7ng5fs HZXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=CC6zbw2qucqW59UITyUJM8/RwOqEFYG8cOvRizv6DOA=; b=LOeTQK52HNZ42dfXsUwWmHRtbWb5CbRcCppOA06YFMgqggsk9eYsjfiGWrTyG2FKgD EaqLVLZ0TH1mCG91YEMWcx66lYwssV8frdGIBEN1WcW0burBhFGwdQC+OP4m4w5hn6qi Rgk87VhphD82FcMme0ihiVUgDDBrN0W6anKnNv1CJATc+n3g2jEo+pJ5Mju+xcLNuuLE +PVjDUpwFV8lcagl69xth89tNkcTr1+xW+pKqN89DgdLP1+pJU2fjUeYXDTE0L0kFGMT wPv2QuvXB1s57+5KEJIpL4KzB1Tcdw22An1p1OmM7d/A5gtFf0UEKu/ao8hN/HELUFIC BwHQ== X-Gm-Message-State: AOAM533sVn2oyvTU/Yw5On/n6D+u31ankaRpmAuNyU/If4WNPVqfmwsb VuwGljZsIVEklcZgtKLx/doDEW8xwEfx4w== X-Google-Smtp-Source: ABdhPJwkHSBxqdVOZZYWJRYT7Pm3zdlRQivPHXqWuY96dsNrePPPmNb3/LmVEHIkjOWGnoXGmmxirA== X-Received: by 2002:a2e:aa93:: with SMTP id bj19mr11586266ljb.139.1634293119705; Fri, 15 Oct 2021 03:18:39 -0700 (PDT) Received: from guix-xps13 (95-29-46-119.broadband.corbina.ru. [95.29.46.119]) by smtp.gmail.com with ESMTPSA id g17sm486569ljm.62.2021.10.15.03.18.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Oct 2021 03:18:39 -0700 (PDT) From: =?utf-8?Q?Andr=C3=A9_A=2E_Gomes?= To: Timothy Subject: Re: [PATCH] Rename headline to heading References: <871r786qfe.fsf@gmail.com> <87pmsv4rfy.fsf@bzg.fr> <87zgruw8wx.fsf@gmail.com> <87ee953zsm.fsf@bzg.fr> <87lf2u8yam.fsf@gmail.com> <87v91yr4mn.fsf@gmail.com> Date: Fri, 15 Oct 2021 13:18:38 +0300 In-Reply-To: <87v91yr4mn.fsf@gmail.com> (Timothy's message of "Fri, 15 Oct 2021 17:56:49 +0800") Message-ID: <87fst28ubl.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::131; envelope-from=andremegafone@gmail.com; helo=mail-lf1-x131.google.com 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: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bastien , emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1634293158; 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=CC6zbw2qucqW59UITyUJM8/RwOqEFYG8cOvRizv6DOA=; b=Nqo6UZkHGncftsowILNZyUkm1ML4A6B5JVzq+QwkC38bWY8Yhsef0DbgMqRK0UPLWWT1nW QIOxa7HUgz38AnxudrLtyR/nREOBysPW9hJSzlQhlZbtG4EMGmQxBmKWs4uRVtYUxV94Jh 9pcGrtcl/bg73sLAZrk2sb5nhfRHRj1vG72nsRi9SWvoUmTVjT5zyPC+lI0P3oyFjbwz7K ZQj7trkB3S5FyMg02PEZhJQpB9VFKXvFTfTao7Tuym5olumBtLe368bCyu0QpeQ0dHZK5a npyOeZjrOUsLT4ZcC5JpQKuanbUjQD12bWIaoQR+XFsRpQp0lLc+JHp2t1sebw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634293158; a=rsa-sha256; cv=none; b=pu6Z7fL19qNrJWeJTHtQ8gqsoayH5iFuwPQcfwdjyHw/w4ac/2Wjdi9nN58sX3My9Jo+5B TX2BOgrYLrdAU5QbLqEecYPYpVs+3aAUkZj60oSxCuuuWpnmyYobKSuPotnMNsp+uIMjwV 2L8DaQrphaClDjdE9OihmPYXD4foVYC40+MurLSiQr6dJAOWObJQQjCVEH11ieAfQXhrj/ mD4kk+ApUIvcfGgFHdx2pR+RRIqH7DfCfRBCQfSGUP0MxYp3AcFMOZPUTQ6ZmCPwZn8CYI h1+2CKPbB+wE3u4haE66OUwTyegCaSpJDt4SjY6HKNcqk6zLlD+2ixGAi3guhw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=HRb9mjMt; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=HRb9mjMt; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 94F8D1473C X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: 8cObZTt2s+n1 Timothy writes: > I haven=E2=80=99t gone through the patches you=E2=80=99ve sent, but it lo= oks like you=E2=80=99ve put a > tremendous amount of effort into this! It=E2=80=99s fantastic to see. I t= hink I can > speak for the Org community when I say thank you. I appreciate the kind words. It's my pleasure to collaborate with the community. Let me stress the fact that it's my first contribution and I'm not comfortable with the codebase, so I feedback is welcome :) It actually took me less time than it may look like, since I used many "tricks" like keyboard macros, registers, etc. I even wrote some utils, and it got me thinking about some Elisp tangential aspects. For instance, I realised it's hard to query-replace sexps' docstrings. And no, I don't want to use multi-line regex (PCRE). It's the wrong tool IMO. My "solution" is also poor, but for other reasons.=20=20 --8<---------------cut here---------------start------------->8--- ;; this is brittle. for example, when there's a string as a value ;; before the actual docstring! (defun query-replace-docstring-sexp (sexp-symbol from-string to-string) (save-excursion (do ((point (scan-lists (point-max) -1 0) (scan-lists (point) -1 0))) ((null point)) (goto-char point) (save-excursion (let ((point-max-sexp (scan-sexps point 1))) (when (and (search-forward (concat "(" (symbol-name sexp-symbol)) point-max-sexp t) (search-forward "\"" point-max-sexp t)) (query-replace from-string to-string t (prog2 (backward-char) (point)) ;; the sexp here is the string enclosed by \" (scan-sexps (point) 1)))))))) --8<---------------cut here---------------end--------------->8--- This is off-topic anyway. My point is that there are ALWAYS interesting things to do in any seemingly "boring" task. -- Andr=C3=A9 A. Gomes "Free Thought, Free World"