From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id SKh7JbbTvmWBGQAAe85BDQ:P1 (envelope-from ) for ; Sun, 04 Feb 2024 01:00:54 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id SKh7JbbTvmWBGQAAe85BDQ (envelope-from ) for ; Sun, 04 Feb 2024 01:00:54 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmx.com header.s=s31663417 header.b=PDRH1T3k; dmarc=pass (policy=quarantine) header.from=gmx.com; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1707004854; a=rsa-sha256; cv=none; b=D8Gi2ZgKOgrRgqi1PEVmv4fExY992BqERhRLToOFhdlJrc8kXCg4RuDnjqwVV7XJdPq0gM HWE5krCCKZToIDXLeAnqfMvsehWvLuWUd2kxG8cEByV0uNI5T1Adpoqm9JoCQmfxDNU6gX 1zFTKv5s7U8IHDR4IZeLSBAx9M7Ul0MlEdSkmZYDDEPVU6UhIIpmkiUG7L5zvNacqW0fvB K2J33A/0uMm1oZya3qrBe+O5QTq88RU3W9dY+yXY7e9qg3NFW5njHXG6wDoGPoEE2Uh14G HmnAs6pROOFls3VQACIkXRVVuFNNS56noSE7JHkluF5Dmw0Y8KMuSdndAoltWw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmx.com header.s=s31663417 header.b=PDRH1T3k; dmarc=pass (policy=quarantine) header.from=gmx.com; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1707004854; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=rEg6sUFQ1BRtsp9GqxzGGj90AyMC1adlIDoGSUDFbl0=; b=XxeiS5V8c4Xag3CeTU5VMgN85fHoIkD1dqISziAweyG/WDMJiFHCCMgZyRwYq6pseFHLWW iJPrdVvbiSVlNoZwTf1MTCZFDuR1iDHII5xLgezHtQjzYKJqR7/O9Pd1WOM0l6O0aMFZb7 Tjx6Lc80qD8ihjkscbhOfAXESx8i7buBAfMsxme4pWXdboHGhIJ0y2oiJGFeTsnfgXLRyf Kt8r0XVzHH9p6YVRgjYZq5K/eXp4eg+C0h7KZYSWePN+9fFWIeRXsdnlNpXkH4MmVL7l/y QZ10GIKKVEhhjR/C49rmP1GgEd+S4HKh+cdYAZcGL5AsL71ymOjuH0DCQW+/BQ== 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 55081779CC for ; Sun, 4 Feb 2024 01:00:54 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rWPvS-0006eb-DF; Sat, 03 Feb 2024 18:59:58 -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 1rWPvQ-0006e9-0A for emacs-orgmode@gnu.org; Sat, 03 Feb 2024 18:59:56 -0500 Received: from mout.gmx.net ([212.227.17.21]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rWPvN-0007Uw-VV for emacs-orgmode@gnu.org; Sat, 03 Feb 2024 18:59:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.com; s=s31663417; t=1707004790; x=1707609590; i=teika@gmx.com; bh=NQw+Ab+fAykVmf9Pm5qlks0DoDhRvPaRC4N5PqA6RWs=; h=X-UI-Sender-Class:Date:To:Subject:From; b=PDRH1T3kZkoISN3Me0NzrYa8yKnuIxF93qN0TUzJ9XMaNprwdn2KMixqTXEp36Yn 5XZUdvfafElsSpCXo13o/m2fITfxXags6rcpNML/812Bj0UKlBOLtt/RjpvHOsljK IneS8f0HNnwNo3Y0fgjWnFUZQ98PJ4p8fS5CIIieYXbUrlwdp7kniKp0pD3KTVEJm z2GDkjJpmhsGFG/u9xMDGl3v3FfJY75vgERNL278vWnowpBHlStMDSzWMHk2IT5Zh MvclbjPSxCXP9ErjG8H+fFVNzlMlwNGeU2SQvoDD/ErVSRwfPQtJlyDHMnleUfha5 lW7UXY0bFMdD7UeubQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from localhost ([153.205.78.81]) by mail.gmx.net (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1N9Mtg-1r0KnZ3dA4-015IpK; Sun, 04 Feb 2024 00:59:50 +0100 Date: Sun, 04 Feb 2024 08:59:14 +0900 (JST) Message-Id: <20240204.085914.1326911395214617651.teika@gmx.com> To: emacs-orgmode@gnu.org Subject: I'm not subscriber, but want to send a code. From: Teika Kazura Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:Ta+c0SLp/lphW65YlKWJKSf96APSW4u7oGhPNOTmTfagbAA8JQg SchnC7HA/MdQ3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3Y0Dg6Fdf8= Received-SPF: pass client-ip=212.227.17.21; envelope-from=teika@gmx.com; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Spam-Score: -9.44 X-Migadu-Queue-Id: 55081779CC X-Migadu-Spam-Score: -9.44 X-TUID: s7MW6V0LdUM4 Hi, list moderators. I'd like to submit a code to this mailing list without subscribing it. Or, if you can forward the following to the list. Thanks a lot for keeping this list. =2D----------------------------------------------------------------------- [Wishitem] Show the current node name in the header line (w/ sample implem= entation) =2D---------------------------------------------------------------------- Hi. The following code shows the current "node name" (outline header name) in the emacs header line: =2D----------------------------------------------------------------------- (defun org-mode-show-node-in-header () (setq header-line-format '(:eval (org-compute-node-name-for-header)))) (defun org-compute-node-name-for-header () (let ((level 0) cur (str "") (nodes (org-get-outline-path t))) (while nodes (unless (eq level 0) (setq str (concat str " "))) (setq cur (car nodes)) (put-text-property 0 (length cur) 'face (nth level org-level-faces) = cur) (setq str (concat str cur)) (setq level (1+ level)) (setq nodes (cdr nodes))) str )) (add-hook 'org-mode-hook #'org-mode-show-node-in-header) =2D----------------------------------------------------------------------- If you like, adopt it for org-mode. Feel free to modify. Several things have to be considered. 1. It does not seem there's a fixed word for "node name" (outline headers). I know there's the function "org-get-outline-path". OTOH the info does never use the word "path" for this purpose. Nor does outline-mode (of Emacs.) 2. It's better to implement it as a minor mode. 3. In the header line, my code shows the node names concatenated by " " (a single space), but it can be turned into an option. Some people may prefer e.g. " > ". 4. I use org-level-faces. I think it's ok. If users don't like it, they can hack the code. 5. Maybe you want to ask emacs upstream to enable multiple headers / multiple-line header. (I'm sure then you'll throw yourself into a tough situation.) Sorry that I can't help with none of these issues. I got an inspiration of this post from https://emacs.stackexchange.com/a/30901 , but I wrote the code on my own, so there is no copyright problem. Still you may want to check other answers there to improve this. Please cc: to me. I'm not subscribing the org mailing list. I'm so grateful for your work in org-mode. Best regards, Teika