From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id WLoGBcj3Z2fbjAAA62LTzQ:P1 (envelope-from ) for ; Sun, 22 Dec 2024 11:28:08 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id WLoGBcj3Z2fbjAAA62LTzQ (envelope-from ) for ; Sun, 22 Dec 2024 12:28:08 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=VGuk04V7; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734866888; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ndRFy4wUdLzrCJpUiSOmXjNUeW0IEb8VUWAqpnA7ROc=; b=jXin8g8Q1LWa2AYOId0tFwzjJuEXVy5+QArHka4PElM3CG50lF2HwuE1V6IHaF0r6jHXVV GCNmxEiVqhJuzQWBIbvn3afTC9PYi3DmkoADACO9LBJ9oiPJ5KaVdYY2FKJRyKYW5/MLyT aa/h2znfrr6H6KYP5JCejCZpxuZ5Ve3jGwgCM6APbyZI5MA6TXtLa881rxGAA/80ntkfKU sX8NGUuHh99majIpIKdQatCRzmfaL3H6IYW6HcV8Va/ax/tFAj8brLevaAh9FHlJj7Ifpr WZcgcVO68x1O5jLxJDEi/Gd+diYqTHWMShXQvfmj+K01Ot+Xv+PktNjpKoJhfQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=VGuk04V7; 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=1734866888; a=rsa-sha256; cv=none; b=LzO8dknSBsAof6s/dY2fAsjSD9X9Ri9noasd51oh4wR2BVn+IDUb6QydVNfVhGk5LM4kpt fWihGCO8BwVgralNcUlk0SAi/41iIdwYJG1XhvuVwp3VE2LBukn1ZmFhtN+imn9hlGL54D GSZDKSt8jURsyIozbLhIOhwctxWiDD8PHDcu70vD9dEecQacp0keHt1dC7XjOfGC//neqf oLGqI8CmB/wIOmiTc26HnWqWs2T7z46rUOhRMfkRPGnBtxFbYm1LoL7xOujvoSis9qCOv6 3IjLkpWElNO45pNYdbRYmWoeBFnjxE/L9X2Q4sxsvDu/Tqrmwtoio1FYFb0gNQ== 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 DAD8796335 for ; Sun, 22 Dec 2024 12:28:07 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPK75-0003WP-2O; Sun, 22 Dec 2024 06:27:11 -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 1tPK74-0003WG-2c for emacs-orgmode@gnu.org; Sun, 22 Dec 2024 06:27:10 -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 1tPK71-0007bl-T3 for emacs-orgmode@gnu.org; Sun, 22 Dec 2024 06:27:09 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 1B003240027 for ; Sun, 22 Dec 2024 12:27:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1734866822; bh=/nPQ125XsXDM+z018kfAq60W2sqiKfEbWLu9um4L6OY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=VGuk04V7oysNvC0H8HFQXyld10svQcxA8fNLmDl10v9r4crNEPZsDkzSjt4SkSuOw CTqshs4fhdIW422D252M4JPlQfx24GZgI2DNCYA5Um7U3UKvjcvJiQbyk3Wp6Y0Poz F761/WeFrsh93yuI2mbwtpoJKSBXBqU+Gv9x08rp0Ms8nWPdsk0u54Cm9hiMLBzpiM fX3+jQBhOb93egWOsIen2Li/klkS3wa3G6cWOF6OD+o5w/QkYei+E0hesa+lh5nBF6 RGX7iVRjmVweW1MEterjY8c3Rd3pwOYRSGBSe+DmSJoeJaso0AXZK4GOT4McGsj10X pN9A1njuBLODQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YGJlT1WVJz6twr; Sun, 22 Dec 2024 12:27:01 +0100 (CET) From: Ihor Radchenko To: Shao-yu Tseng Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] Fix org-do-latex-and-related at buffer start In-Reply-To: <20241125205531.416893-2-dev@notyourcomputer.net> References: <20241125205531.416893-2-dev@notyourcomputer.net> Date: Sun, 22 Dec 2024 11:28:33 +0000 Message-ID: <877c7s9cta.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain 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, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=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: 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: -8.99 X-Spam-Score: -8.99 X-Migadu-Queue-Id: DAD8796335 X-Migadu-Scanner: mx10.migadu.com X-TUID: +ci//jHVe+6e Shao-yu Tseng writes: > When org-mode is called at the start of a buffer that starts with a > latex fragment, it produces an error "Beginning of buffer" caused by > attempt to call backward-char. > > A minimal example to reproduce: > 1. Open a scratch buffer > 2. Insert text \(\Omega\) > 3. Turn on org-mode I tried to follow the example, but I am unable to reproduce the problem. May you please provide more detailed steps to reproduce and share the information about the Org mode and Emacs versions you are using? > The observable effect of this bug is that org-export-string-as does not > work for strings beginning with a latex fragment, example: > > (org-export-string-as "\\(\\Omega\\)" 'html t '(:with-toc nil)) It works on my side. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org development at , or support my work at