From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id oA1ZDcCsAGTbywAAbAwnHQ (envelope-from ) for ; Thu, 02 Mar 2023 15:03:44 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id GED6DMCsAGQ+KwAA9RJhRA (envelope-from ) for ; Thu, 02 Mar 2023 15:03:44 +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 F3A6516C4F for ; Thu, 2 Mar 2023 15:03:43 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=me.com header.s=1a1hai header.b=C9cy78fI; 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=quarantine) header.from=me.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677765824; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=2jK0biYAt7XZJ+tIVnbUuszOV/w/b+ZnfWNycAnWU1c=; b=uHLkmLjHYZ/eDy+guAQjFJWmnX0QO5IUE2FK1nIrS+UA7t2YQu6NSmltjsgQQZfyuwswt7 Sg5llpM4vrmR0CU1LmoFWoo8fCyeZu7bP/3yVUSyBuHD5iPb4nawcbSMtqQqb808IqU9LW HPiwdZHWJTn5d6ZwhqZlGPSDnH/BqVQct5TExPMXNfB8ElxBRM+B93RKALkKSxn6q9XaWA KSTldMf7vWPt00u9Q6b5B1YXKP04CIod5mdX7Q08s4mJGh9BLr/taARPWTkYnNxq8xeZtH b5sshQSTrmvFyoqDbbA2nAjeFqIfpAiucpcmTZa/gJyCOjvU7wrljfQtscqeew== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=me.com header.s=1a1hai header.b=C9cy78fI; 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=quarantine) header.from=me.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1677765824; a=rsa-sha256; cv=none; b=IF+8RBN8OTKekV6NPSaE7jHD8+V2MgelvujzhrutonrJL3B1uTDuQOmf5TeNolzTkjhKII yms+u5i01RwWxLtPX7eAvl5eAr6Xv4Iymv96aLAPr6+qTQykK4UOAnDg3QYWrluDDVrV31 CScYZcVy+8Pya+wMewY63dOV7HY0QPRoHqJ5mkvVXP7OjikN1+TobrZdxbKiZ8GmlDEjC/ Hehz7irGTeelmyYRrkZDl7VpFBGR/Z8rOVurBkY4rf8G3F7tu/QlPpC2k1C31wjEy4KT6C I46LPRc8/nc4EP01ZgQSCrZt+l9o+n90MlImEyn0ykZ23bSTBjHneakrNVyqaw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXjWK-0001d3-RI; Thu, 02 Mar 2023 09:02:56 -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 1pXjWG-0001TQ-Pv for emacs-orgmode@gnu.org; Thu, 02 Mar 2023 09:02:53 -0500 Received: from pv50p00im-ztdg10011201.me.com ([17.58.6.39]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pXjWF-0006io-7p for emacs-orgmode@gnu.org; Thu, 02 Mar 2023 09:02:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1677765767; bh=2jK0biYAt7XZJ+tIVnbUuszOV/w/b+ZnfWNycAnWU1c=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=C9cy78fIk0GRubtk9/ZkM7KGW9guBOupnU0c5UQ45dZiJFoYGpvfQU+jS8bDw5Kna jU0Qj4R8IovXfrziCUplSvc8pcqC1YNEQ6LPE81Pt37U0gCE20ZqOgXGzkfSz9FAGv YqkyefzkVTaJX9x0D+W8nCp+2uA2vTkPkPwzz7zciWO38vAy7cocd8PD5bjhJWnj/S lPjcUgLI055e+F43IZlvMCp9XK4hfXRa9tDN0dJ79Rors0kuF1eDNPqQ7w6POXuZKa 6qx31peGSWwDuI1oqr9hiHe6gdTqvY6/WFusB78Cv+TP1AE/osnU5v4dhXWdYpKagP VVc89i+FS1boQ== Received: from localhost.localdomain (pv50p00im-dlb-asmtp-mailmevip.me.com [17.56.9.10]) by pv50p00im-ztdg10011201.me.com (Postfix) with ESMTPSA id DAB2C68071D; Thu, 2 Mar 2023 14:02:45 +0000 (UTC) From: =?UTF-8?q?Rudolf=20Adamkovi=C4=8D?= To: emacs-orgmode@gnu.org Cc: =?UTF-8?q?Rudolf=20Adamkovi=C4=8D?= Subject: [PATCH] org-src: Improve the name of source editing buffers Date: Thu, 2 Mar 2023 15:02:24 +0100 Message-Id: <20230302140224.6169-1-salutis@me.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-GUID: Zd8NHQV_D8e8E4wchVGpkun8_8oxD5Pr X-Proofpoint-ORIG-GUID: Zd8NHQV_D8e8E4wchVGpkun8_8oxD5Pr X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.517,18.0.572,17.11.64.514.0000000_definitions?= =?UTF-8?Q?=3D2022-06-21=5F01:2022-06-21=5F01,2020-02-14=5F11,2022-02-23?= =?UTF-8?Q?=5F01_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 adultscore=0 clxscore=1015 mlxlogscore=494 mlxscore=0 phishscore=0 malwarescore=0 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2303020122 Received-SPF: pass client-ip=17.58.6.39; envelope-from=salutis@me.com; helo=pv50p00im-ztdg10011201.me.com 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_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-Spam-Score: -10.40 X-Spam-Score: -10.40 X-Migadu-Scanner: scn0.migadu.com X-Migadu-Queue-Id: F3A6516C4F 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 X-TUID: GOJo+NSKkAmJ * lisp/org-src.el (org-src--construct-edit-buffer-name): Fix the name given to a source editing buffer. The original format was documented as "ORG-BUFFER-NAME [ LANG ]" but in reality it was 'ORG-BUFFER-NAME[ LANG ]', with different spacing. We make the format more standard and more compact, as well as, make the documentation match reality. --- lisp/org-src.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/org-src.el b/lisp/org-src.el index 9e4392811..bb894de9c 100644 --- a/lisp/org-src.el +++ b/lisp/org-src.el @@ -315,8 +315,8 @@ is 0.") (defun org-src--construct-edit-buffer-name (org-buffer-name lang) "Construct the buffer name for a source editing buffer. -Format is \"*Org Src ORG-BUFFER-NAME [ LANG ]*\"." - (concat "*Org Src " org-buffer-name "[ " lang " ]*")) +Format is \"*Org Src ORG-BUFFER-NAME [LANG]*\"." + (concat "*Org Src " org-buffer-name " [" lang "]*")) (defun org-src--edit-buffer (beg end) "Return buffer editing area between BEG and END. -- 2.39.2