From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id gH7/LgTKn2fObwEAe85BDQ:P1 (envelope-from ) for ; Sun, 02 Feb 2025 19:39:49 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id gH7/LgTKn2fObwEAe85BDQ (envelope-from ) for ; Sun, 02 Feb 2025 20:39:48 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=VxkUcimr; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1738525187; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=uju4CEhd90gdBKPQomxiJAVCDQEy/j7iv5jxkexLXnQ=; b=Is8n3Em/TZml1FJnByG+F3IZmrgX+Wp8ED1d2BVpe90oqQRMXJtnbpruVvu+2mqqUB6T/e zOoSIdyem0Xgv2GA6BOI2pYygCJZGuxtCCfF0UI+/x1kmuT0kMzxvo4WnHVO8/bWdpf8o5 Mmpq2IWsJtlownL1HmRZ0dtUj2WPbr9qHcj+UnVnmI1pqo4lRp5QvQnpt/z3miE50fN9S6 i7aoRcMUiK3tqRRx+4JL/142CqJb5OFuSa4ZTlg9PhZTghof8Ugh7p7cjv+4LwMc5qD8vP 5U4cFl6NIsPDjPAXByg+v6LKbU/1rgvQb77LTDJfsNzhsMhVL8/esCFhRDVzSg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1738525187; a=rsa-sha256; cv=none; b=p/iQ/tZC6qn+Id6dbjIK3Vk1tox30FQ0wdqdrE95rcGfPJYZ4cmpHm3rXZIS3Sv6B8Tk6U o/HiMO/wJOPkA9QTxhq6zUe2P+gy15L3T/obOVuvoLuiKxcfvnXg05PVMgFzRKBF/H9Joy LND8UQelVsMd7DNby0f9cib2XIq6dk//JmWkQ6CLyuFCo0LY3Ijm0lNZx3MseFxSH5qM9c DDTaHvyzmOOz4ft9NWjlcAfL6KkHNNe/HQxkpBWlJbgLRoLcE0SR0F4HOiUB4QWnwS33js dA5UhbboHejyHBn6e+yb/CoAp/O2Egeb2ZD82VTnjK0RkksujalpuVC5Uplfqg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=VxkUcimr; 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=gmail.com 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 CACE73686 for ; Sun, 02 Feb 2025 20:39:47 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tefnw-0003nm-Ro; Sun, 02 Feb 2025 14:38:52 -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 1tefnu-0003nL-7I for emacs-orgmode@gnu.org; Sun, 02 Feb 2025 14:38:50 -0500 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tefns-0000HR-Ri for emacs-orgmode@gnu.org; Sun, 02 Feb 2025 14:38:49 -0500 Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-219f8263ae0so65634685ad.0 for ; Sun, 02 Feb 2025 11:38:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1738525126; x=1739129926; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=uju4CEhd90gdBKPQomxiJAVCDQEy/j7iv5jxkexLXnQ=; b=VxkUcimrAiSf9Ct7FKt6cflisWl4vJGDUrVFtCjjD/3ymP32qd/XBLDU/t3TIXxcPp qr5k7UztWeNgtm9/UpeaYxXo/doEMpD9jcZWQQPMk4Hm/37Y4PMb+E6RoLyea99NiOIa o43OM57HdoJw7OGN3dycyyRzCo6ucLO5AzOllplZ/R/tE+k5w12bqkyXGpqU1cTFrFsS XBtLSqYBj+mxPZtoXorLyLFkxpt+lAnMbIDsUK1mZ6Z/QbkSP2/ZrLfOgSFyVP8rpKDb w/vB90lxpevtnMjbBYIdahAMzrqNYkLzLRXdtbueVOiPlR2OO+fxtwhpg/o25gVk8YGA WliQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738525126; x=1739129926; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=uju4CEhd90gdBKPQomxiJAVCDQEy/j7iv5jxkexLXnQ=; b=JygoUPICHH/wbMFZAjVB4e0j0ASS5WOm6IpS5QiK0xfypeHXY91Qy0qT86Oukl/7fm RgrRkFkrO6fMJpzDI3y2NTmfCTqoMIKvSooc5Brn7s2lWznPpiyY0+6FcQL5Ar5hy+CA r2JaH3jdUr2tV9H4VCtXALji768kIdceyuRqxOO9nDpkmAKf+OBofqHhkct3vc34X/Nk nRL7mhj1/tZo8ec2I87cqgNRmYksmHv2GBuwMSY/lZLw3P+q14s4kIovcsOlHKXhiS4t UK6nGod0oqQD/MO1z/j6U8xQ7TdG71ogvA1I/5ONGTxvEJcmNt0qJzYbICVZPgkWwP1b LJYw== X-Gm-Message-State: AOJu0YzpYELMV2dYXXAug4DbDQ5pAscMbYyyeLnGcjf7sKt0l5ACTtDl 7HlrGC1+2OheT5hlsfDXCpCAx8KftcQ7MGX+JtgZjDTwTa36DRMeUVSiqQ== X-Gm-Gg: ASbGnctaSQkCU7H9P0TOenEOO8yPQoMqCnBuMKpaWU9ScQyDnki1UdZlthI3plWs9Nn yb8hDxUOXsS0xZTIg17uOLPx0b17g/Ae5d5+n0N7SYPtXLVX6wyfqedD4r//hrBZyEWJOYAnoMV P0jfkrI9AFlHuTk56xmMtZp/QQ/R6SQCpu9ypPdA4+vPtGvNk/6omBjRrpiA45E1Bt0DjOWcAbq U4yyTENUSf6QKCeXdqW01cHR+0VL+jsfrRWXvF/qIDOZKu8AU0xO7Nj1o20KWl7SnAWQ9m3zxzf D/jqpWikuWEGViEkehgVAbKcq/t5LicamFfXgh2W2sgpZxY8VhFAQKY= X-Google-Smtp-Source: AGHT+IFnN/yMIXHCWnJH/qZs/ASp1OXflk55zqkfq2KMR8Y40WRVSiLlIzO3CGqZHY2WA73AZkbKUA== X-Received: by 2002:a17:902:c409:b0:215:5935:7eef with SMTP id d9443c01a7336-21dd7d78cafmr318562285ad.22.1738525126345; Sun, 02 Feb 2025 11:38:46 -0800 (PST) Received: from jat-framework (c-73-252-138-66.hsd1.ca.comcast.net. [73.252.138.66]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21de3335cc9sm61996875ad.258.2025.02.02.11.38.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Feb 2025 11:38:45 -0800 (PST) From: Jules Tamagnan To: emacs-orgmode@gnu.org Subject: [PATCH] Have org-string-width's temporary buffer be declared as such Date: Sun, 02 Feb 2025 11:38:43 -0800 Message-ID: <87lduo87cs.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::632; envelope-from=jtamagnan@gmail.com; helo=mail-pl1-x632.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.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 X-Migadu-Spam-Score: -1.76 X-Spam-Score: -1.76 X-Migadu-Queue-Id: CACE73686 X-Migadu-Scanner: mx13.migadu.com X-TUID: sd1RmlMh/CEh --=-=-= Content-Type: text/plain Hi all, I hope this email finds you well. This is my first time contributing to this mailing list attempting to contribute to org-mode, so hopefully I do this correctly. I recently noticed that `org-string-width` ran all buffer hooks like `buffer-list-update-hook` for the ` *Org string width*` buffer. This doesn't seem needed because it feels like ` *Org string width*` should act like a temporary buffer that is only needed for these simple operations. With that in mind I wanted to set `inhibit-buffer-hooks` to `t`. Hopefully this rationale and patch makes sense. After getting this in I can also review other places that `get-buffer-create` is used and possible use `inhibit-buffer-tools` there as well if it would help. Best, Jules --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=temporary-buffers.patch Content-Description: Have org-string-width's temporary buffer be declared as such >From cc8dc0a9d8d4b72f2a820dd901b6ddcb9727b9fb Mon Sep 17 00:00:00 2001 From: Jules Tamagnan Date: Fri, 31 Jan 2025 11:36:13 -0800 Subject: [PATCH] Have org-string-width's temporary buffer be declared as such --- lisp/org-macs.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-macs.el b/lisp/org-macs.el index 044c49efb..9d35857e2 100644 --- a/lisp/org-macs.el +++ b/lisp/org-macs.el @@ -1199,7 +1199,7 @@ STRING width. When REFERENCE-FACE is nil, `default' face is used." (push el result))) result))) (current-char-property-alias-alist char-property-alias-alist)) - (with-current-buffer (get-buffer-create " *Org string width*") + (with-current-buffer (get-buffer-create " *Org string width*" t) (setq-local display-line-numbers nil) (setq-local line-prefix nil) (setq-local wrap-prefix nil) -- 2.47.1 --=-=-=--