Received: (at 71750) by debbugs.gnu.org; 1 Mar 2025 01:56:28 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Feb 28 20:56:28 2025 Received: from localhost ([127.0.0.1]:55775 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1toC5b-0006WT-81 for submit <at> debbugs.gnu.org; Fri, 28 Feb 2025 20:56:28 -0500 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]:60507) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>) id 1toC5Z-0006VO-JC for 71750 <at> debbugs.gnu.org; Fri, 28 Feb 2025 20:56:25 -0500 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-5e0373c7f55so4060857a12.0 for <71750 <at> debbugs.gnu.org>; Fri, 28 Feb 2025 17:56:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740794179; x=1741398979; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=DAvGrs4WYfJArP33hxKvCxDYosGBaUoHIWvbl9NhYig=; b=QOkOMmCphvaVz1IRB6fHjXLRqhG4X9uUFFZS9N8SHiiBCF3cq7L8M69mn+tQSJfmtr n+Fonu3ciPFBf1vJPSBxsI824VhWwr1sJzKgoyLwy5RK9uqmjTsA/q2n8L5WB9uHZKVV 7nUAmNzp/5matrVWQmDuIJdz+Zakg0+caHnUIMOl2K6QBst4FxUzKYwq7dlkmZiv97f6 xPj4YKeGdzLUUGuC9agKdjFhJzJFLQNfuMBKpdyhnhH3kF0CTx/s4vR3dj3TsOVKoMxw SBnsOABmA3xxjdkKoOmVlBk4rKM++a2Mw6g5an6EHajTt34ZYq3EEABUmH6WZ+WsXR/A uhdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740794179; x=1741398979; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=DAvGrs4WYfJArP33hxKvCxDYosGBaUoHIWvbl9NhYig=; b=RC597CMah7zDKW+qA2J2aIbwwVo2hyzGocPzlfeGLJVd+zdhL2tWpIcpYkQyF55fYU YhE2OcKTJ99KIIiZa4/WQCoU6J2KgRcFB/y0qCH0lfF9xLVXGYJy2BaiICsPrAJLnMNf 1DcVB9VDX+C+UX6tg0Mk6s0g9rdFN4751pYU2BR2t1c+3eUWDZhq3aR8pGiSrUSOy/Fr XVj9jRKjxuUOH/gqa8DGE7VZRfVD/bK72ur8jHBMDoMvbVl2okiCSEXrIFgbt2hGRSKj ddLXKb7/ZHizI/6Vm0a99/VPW3XmdCyQ49qUfx8EfTMTmwtCOA0hL9f3X9CBA9PMDTLL M0Qw== X-Forwarded-Encrypted: i=1; AJvYcCVCS0lWWqzv/i0IHvrI4Vpa+nm9F3fHNzz6NtYuvpsGswZ9cHiNYwxDrSQzHvhyCUiSddfytA==@debbugs.gnu.org X-Gm-Message-State: AOJu0YzrGsEGcEc6Ks6QYk4UgVPO/3XBR4gUo0VUFaGXT0EXNMIXOerU DIEH56d9AABj7VuYIl0zeqL0Kp2pphJvbbqZBWAUqq8jOAQIU9kYNUMlTwSlMOdowu41L+oJbQA APV0v2YE+YMjr145dPFDXYRblZlE= X-Gm-Gg: ASbGncul4b0dUzqg51s2kjjmJdzRXyYPS97PH30fsnwbAXXCnhazSxmnysQUCqOR+Ft d0y9YCapURqMsC8Yblfau0k/GJ2FBYMrlur/uXSsKvHPXM84iwsWd7m19O630iPFRlX71hro88L bfH14qaZRTJuNRJvqvTC2rsVuYP14= X-Google-Smtp-Source: AGHT+IGw5JybXTQwLmGZpyz7d1u7TqXCGfiUOeflJ3Of/ReC4q0nxmjCiyj+cfAucdDMFuE7bWindT/qqMiJf76s0uU= X-Received: by 2002:a05:6402:270f:b0:5e4:ce6e:3885 with SMTP id 4fb4d7f45d1cf-5e4d6ad469emr4770972a12.2.1740794179212; Fri, 28 Feb 2025 17:56:19 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 28 Feb 2025 17:56:18 -0800 From: Stefan Kangas <stefankangas@HIDDEN> In-Reply-To: <EEB54015-0139-4189-A42E-97A8F02D9C8B@HIDDEN> References: <87r0cm2uy0.fsf@HIDDEN> <86le2q695v.fsf@HIDDEN> <EEB54015-0139-4189-A42E-97A8F02D9C8B@HIDDEN> MIME-Version: 1.0 Date: Fri, 28 Feb 2025 17:56:18 -0800 X-Gm-Features: AQ5f1Jqs8RGvDh0WBg587MYjLssjJNAibjqMfQbHBzD_eIgiOnn4nVhjz4cVEsg Message-ID: <CADwFkmnx1nLaZYrjR2PvwWqJXQN_GD+vsOpeWaFdePya694tCA@HIDDEN> Subject: Re: bug#71750: 29.4; hs-hide-all can't handle unmatched pairs in Org-mode To: Mathew George <mathewegeorge@HIDDEN> Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 71750 Cc: Eli Zaretskii <eliz@HIDDEN>, 71750 <at> debbugs.gnu.org, Ihor Radchenko <yantar92@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Mathew George <mathewegeorge@HIDDEN> writes: >> What do we expect hs-hide-all to do in this case? > > So, it looks like I got confused here. I thought I was invoking `hs-hide-all` to fold all > Org headings; I was actually invoking a different function of my own, which calls > `hs-hide-all` followed by `outline-show-only-headings`, and it was > aborting with the scan-error from `hs-hide-all`. `hs-hide-all` does not fold Org > headings, which is what I thought it was doing. > > With that said, the scan-error is still kind of odd. So I think I have the same question as > you - what is `hs-hide-all`, and hs-minor-mode in general, able to do in > Org-mode? If it doesn't do anything, shouldn't `hs-grok-mode-type` produce an > error like 'Org Mode doesn't support Hideshow Minor Mode'? I can just > `condition-case` the scan-error in my function, but maybe we want Hideshow to > fail in a more intelligible way... I'm copying in Ihor here, in case he has any comments.
bug-gnu-emacs@HIDDEN:bug#71750; Package emacs.
Full text available.Received: (at 71750) by debbugs.gnu.org; 27 Jun 2024 13:16:48 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 27 09:16:47 2024 Received: from localhost ([127.0.0.1]:41238 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sMozX-0000bU-Lt for submit <at> debbugs.gnu.org; Thu, 27 Jun 2024 09:16:47 -0400 Received: from mail-pf1-f179.google.com ([209.85.210.179]:49256) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <mathewegeorge@HIDDEN>) id 1sMozV-0000bA-HV for 71750 <at> debbugs.gnu.org; Thu, 27 Jun 2024 09:16:45 -0400 Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-706524adf91so4907683b3a.2 for <71750 <at> debbugs.gnu.org>; Thu, 27 Jun 2024 06:16:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719494137; x=1720098937; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=kj9DWEXZrJ4/unnAXmQQ/L7B/n5aQ0DvRSxqYIcQHsc=; b=gwb7u1XmQTpB3gOtahmx9YmnEE7jWvMw4LGAlfeLz7kuaN09fJ83kqyBqCkPOadtTm j6fDn+OxkKVXmhrD7nDOeUO3jlXEe1dZF3YtTdgosSD5cGTDWdRnstuuyoNayszcKNYU Z2X0xAQUsf5nfkt7vd4ZKgzAzkXc5o1XfZWq4PNYA4lh3n/Wd7p+mP3dXD2RLaZeIVK2 CMk15v1irRMVSyVlx6Klso6P2rA0RHA/3E5XYJNh/fkivSlMjr3RgODbUcSAabKPbisP OYpQBl+czFn6nDcHt0Kp0SgOlI6zvXJsTI4gB26f/3cTM1z9oq6gnyEEJEYRbyTloMrU 4NCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719494137; x=1720098937; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:user-agent:subject:cc:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=kj9DWEXZrJ4/unnAXmQQ/L7B/n5aQ0DvRSxqYIcQHsc=; b=X6OJjxiqh5XMq16Bpz0+vqcYM+2Skea7IijKw6UUjpkRBAaDk2csm2VCos7ix7n3vu 8bpk6PxwOr41j+6ufJ31TICsavQjTAQ+qJE5uYl422AqCSQBDOghW2x1u+HHxkUybLnr X7W+FCzjRVmysj0OQmDCB/9IM2TN7k3LNhj2FY5hGLY22wWHvKmZgYCPg6HKaadKhjib 9esCCPoQCFBzlZiZ9f4z/Ct3xnznnH+ua5UFwnDrLhVub3hWYR5LNqLdF0q9uV0TMwIH evL1IE1jz04JFAH9bcFsfbJa/QotyFYv5GAEQj1t/r4NRY05C7H1+jwLU3NyOuAceVDx pt+w== X-Gm-Message-State: AOJu0YyEP5dUo/h21lph/PFuQzEnoNuOwG+6gZyCLYndstM4uDA+r/6a D9jDT/p2R3SZVUfAbRZhcgP7OwADOmd5p3FW3TjcOnwQ5FIQlU+4 X-Google-Smtp-Source: AGHT+IHdi+UHxLWrPy3fqu+qSotkNVeO7uEmgEcsDK8QsLaBkMw9muji/FO8Uh20toz7GzY2Gz6IoQ== X-Received: by 2002:aa7:86c2:0:b0:705:b0aa:a6bf with SMTP id d2e1a72fcca58-70670e8ff5dmr13382444b3a.2.1719494136651; Thu, 27 Jun 2024 06:15:36 -0700 (PDT) Received: from ?IPv6:::1? ([2401:4900:3766:a8ba:2cbe:8be5:f1af:faa1]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-706b4a34186sm1333308b3a.148.2024.06.27.06.15.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 27 Jun 2024 06:15:36 -0700 (PDT) Date: Thu, 27 Jun 2024 18:36:18 +0530 From: Mathew George <mathewegeorge@HIDDEN> To: Eli Zaretskii <eliz@HIDDEN> Subject: =?US-ASCII?Q?Re=3A_bug=2371750=3A_29=2E4=3B_hs-hide-all_can?= =?US-ASCII?Q?=27t_handle_unmatched_pairs_in_Org-mode?= User-Agent: K-9 Mail for Android In-Reply-To: <86le2q695v.fsf@HIDDEN> References: <87r0cm2uy0.fsf@HIDDEN> <86le2q695v.fsf@HIDDEN> Message-ID: <EEB54015-0139-4189-A42E-97A8F02D9C8B@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 71750 Cc: 71750 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) > What do we expect hs-hide-all to do in this case? So, it looks like I got confused here=2E I thought I was invoking `hs-hide= -all` to fold all Org headings; I was actually invoking a different function of my own, whic= h calls `hs-hide-all` followed by `outline-show-only-headings`, and it was aborting with the scan-error from `hs-hide-all`=2E `hs-hide-all` does not = fold Org headings, which is what I thought it was doing=2E With that said, the scan-error is still kind of odd=2E So I think I have t= he same question as you - what is `hs-hide-all`, and hs-minor-mode in general, able to do in Org-mode? If it doesn't do anything, shouldn't `hs-grok-mode-type` produce= an error like 'Org Mode doesn't support Hideshow Minor Mode'? I can just `condition-case` the scan-error in my function, but maybe we want Hideshow= to=20 fail in a more intelligible way=2E=2E=2E
bug-gnu-emacs@HIDDEN:bug#71750; Package emacs.
Full text available.
Received: (at 71750) by debbugs.gnu.org; 27 Jun 2024 09:13:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 27 05:13:21 2024
Received: from localhost ([127.0.0.1]:41004 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1sMlBx-0008Vn-5w
for submit <at> debbugs.gnu.org; Thu, 27 Jun 2024 05:13:21 -0400
Received: from eggs.gnu.org ([209.51.188.92]:51484)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <eliz@HIDDEN>) id 1sMlBw-0008Vc-BQ
for 71750 <at> debbugs.gnu.org; Thu, 27 Jun 2024 05:13:20 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
id 1sMlBo-0006pv-7F; Thu, 27 Jun 2024 05:13:12 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
mime-version; bh=DMf7JqU4h1JeOAHbQEr3TCYZc9LTN9GfTmcPd+tV2wM=; b=EAigOybUE/5T
etl25q+8sj9lA/QIlH4j4Ew2rO53QYjQgJ0mcmJVtTu8VS6KSy0cRBHEc8+wPQQcD9W5u+ftiHiEr
IrLK2HCYIUpjcto6G3h57tpIMhyirjDCCC9gZ8wS1jnPGMQN2+PRj66xBeOeg1zKLFcZkS0L1Q65R
Kw5of1ECPEa4UAKZmWY2gQ4+4HWf0QttJUM8Claq66OKgNGcXqUqQFIaVkb4tCfsigW13MqtLc3jG
iOIbyBjNg45izj7QItaj1Ae3QvxFhnt+7VNAPUPFqX+v3WX1jK3iIPyjqiX79SMInw2Vnn3r8A/d3
QEIb6EXEsy36FQ/Hwn0Jqg==;
Date: Thu, 27 Jun 2024 12:13:00 +0300
Message-Id: <86le2q695v.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Forty Five <mathewegeorge@HIDDEN>
In-Reply-To: <87r0cm2uy0.fsf@HIDDEN> (message from Forty Five on Mon, 24
Jun 2024 21:25:31 +0530)
Subject: Re: bug#71750: 29.4;
hs-hide-all can't handle unmatched pairs in Org-mode
References: <87r0cm2uy0.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 71750
Cc: 71750 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)
> From: Forty Five <mathewegeorge@HIDDEN>
> Date: Mon, 24 Jun 2024 21:25:31 +0530
>
> If an Org entry contains an unmatched pairing character (as defined by
> the syntax table), `hs-hide-all' will fail to fold anything, with an
> error as demonstrated by the recipe below:
>
> ;;; recipe.el
> (scratch-buffer)
> (insert "* heading\n(")
> (org-mode)
> (hs-minor-mode)
> (hs-hide-all)
> ;;;recipe.el ends here
>
> $ emacs -Q --batch -l recipe.el
> Hiding all blocks...
>
> Error: scan-error ("Unbalanced parentheses" 11 12)
> mapbacktrace(#f(compiled-function (evald func args flags) #<bytecode -0x13a4d4fc50517829>))
> debug-early-backtrace()
> debug-early(error (scan-error "Unbalanced parentheses" 11 12))
> scan-sexps(11 1)
> forward-sexp(1)
> hs-forward-sexp((11 12 #<buffer *scratch*>) 1)
> hs-hide-block-at-point(t)
> hs-hide-all()
> load-with-code-conversion("/home/user/recipe.el" "/home/user/recipe.el" nil t)
> command-line-1(("-l" "recipe.el"))
> command-line()
> normal-top-level()
> Scan error: "Unbalanced parentheses", 11, 12
What do we expect hs-hide-all to do in this case?
bug-gnu-emacs@HIDDEN:bug#71750; Package emacs.
Full text available.
Received: (at submit) by debbugs.gnu.org; 24 Jun 2024 16:40:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 24 12:40:58 2024
Received: from localhost ([127.0.0.1]:35111 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1sLmkT-0004ZG-GP
for submit <at> debbugs.gnu.org; Mon, 24 Jun 2024 12:40:58 -0400
Received: from lists.gnu.org ([209.51.188.17]:38396)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <mathewegeorge@HIDDEN>) id 1sLm6h-0003Vg-1Z
for submit <at> debbugs.gnu.org; Mon, 24 Jun 2024 11:59:51 -0400
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 <mathewegeorge@HIDDEN>)
id 1sLm6f-00079Y-JM
for bug-gnu-emacs@HIDDEN; Mon, 24 Jun 2024 11:59:49 -0400
Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
(Exim 4.90_1) (envelope-from <mathewegeorge@HIDDEN>)
id 1sLm6T-0005qd-Ss
for bug-gnu-emacs@HIDDEN; Mon, 24 Jun 2024 11:59:49 -0400
Received: by mail-pl1-x635.google.com with SMTP id
d9443c01a7336-1f9bf484d9fso28713065ad.1
for <bug-gnu-emacs@HIDDEN>; Mon, 24 Jun 2024 08:59:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20230601; t=1719244775; x=1719849575; darn=gnu.org;
h=mime-version:message-id:date:subject:to:from:user-agent:from:to:cc
:subject:date:message-id:reply-to;
bh=HSkhHGWsdBnMPAZ/rhpuSzMFpd97ud5KdfoygdPZ0ms=;
b=aRw0vxztXwgVBD3u4UlsNe3+u5G2P+dPh2j0R8sjBBQlAB3PlVoRQNhHaY3TLPv91/
nmTuNtDvoALNmI0vCygQyapvEc3B3nV2Keb9Mw9Zh7Zumpcd7fjRzYRtQOVPsNm+btFd
y21AHPTAtm3EEo0UREqcHzHZ1KZ8+dXyJHww6F7VPS8uFSxqOFEHdjcX7MUYsifADbyw
bpitJ0sHr27PQ4OXxBFKAjYxkZEP9P/ZaLWvZ0VxrHRxVbRhJQ2SqWH6nqbiRvBAI2uZ
Iu5eS4JS5F4fQP+ew8ezOhNlIWBLUubP4vVumJ2o9lT0rzKW7gC7WYVLkpJgHrHMe3OL
zoug==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1719244775; x=1719849575;
h=mime-version:message-id:date:subject:to:from:user-agent
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=HSkhHGWsdBnMPAZ/rhpuSzMFpd97ud5KdfoygdPZ0ms=;
b=XDaevOJ2yWJlvjQOHrORVw9DJSUFGkqaFNcyKxmNV5JbXvBbLV4gPV8Qg96uTMnshx
ZHFD7O8Yoc5AixYGg0BMr3n5WcEnI+j9wVz0r1QpW52hpTXxI8mHPqy3Rb8CiMBVjsg1
LAJNCstzCdWp1zw8TZ+WvQRo2/lgnYGznDHbeRrvbBL6+TVRLIzJ7AQSql4ZV223eDSE
/yzkhT2k8Ax1IoFC+GRocokYu96EiY0LNpbWjDVbLE3ATsynow5bfZ02o8BS2hs28169
plNkRwnqvrpy8bmHxu8D1LCsDIcE6locoHrHm893f4U28Cdx32cjLETGt1uDDxsHCB63
YTUg==
X-Gm-Message-State: AOJu0YygUQvjdupLj8wXYepHAegV730g6vHuxdRWMmwZ0C0zUsVRpZTS
7f2A0dqRtmWl3LbcdU9Rljqb/6OwQSQsfxDm5xvqRPc5JeDmFMc9v3WP2A==
X-Google-Smtp-Source: AGHT+IHxfriqixZSwDFzUgojURCHOfZe/XjZElr9e2liCzdfpHdTjI/Dl8EYvX20gtGaB/NWIPxYug==
X-Received: by 2002:a17:902:f684:b0:1f8:62a1:b6af with SMTP id
d9443c01a7336-1fa5e6a9e0cmr15217165ad.21.1719244765341;
Mon, 24 Jun 2024 08:59:25 -0700 (PDT)
Received: from terra ([122.171.22.10]) by smtp.gmail.com with ESMTPSA id
d9443c01a7336-1f9eb2f01fesm64400145ad.24.2024.06.24.08.59.24
for <bug-gnu-emacs@HIDDEN>
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Mon, 24 Jun 2024 08:59:24 -0700 (PDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:38.0) Gecko/20100101
Thunderbird/38.1.0 Lightning/4.0.2
From: Forty Five <mathewegeorge@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 29.4; hs-hide-all can't handle unmatched pairs in Org-mode
Date: Mon, 24 Jun 2024 21:25:31 +0530
Message-ID: <87r0cm2uy0.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=2607:f8b0:4864:20::635;
envelope-from=mathewegeorge@HIDDEN; helo=mail-pl1-x635.google.com
X-Spam_score_int: 2
X-Spam_score: 0.2
X-Spam_bar: /
X-Spam_report: (0.2 / 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, FORGED_MUA_MOZILLA=2.309,
FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Mon, 24 Jun 2024 12:40:56 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)
If an Org entry contains an unmatched pairing character (as defined by
the syntax table), `hs-hide-all' will fail to fold anything, with an
error as demonstrated by the recipe below:
;;; recipe.el
(scratch-buffer)
(insert "* heading\n(")
(org-mode)
(hs-minor-mode)
(hs-hide-all)
;;;recipe.el ends here
$ emacs -Q --batch -l recipe.el
Hiding all blocks...
Error: scan-error ("Unbalanced parentheses" 11 12)
mapbacktrace(#f(compiled-function (evald func args flags) #<bytecode -0x13a4d4fc50517829>))
debug-early-backtrace()
debug-early(error (scan-error "Unbalanced parentheses" 11 12))
scan-sexps(11 1)
forward-sexp(1)
hs-forward-sexp((11 12 #<buffer *scratch*>) 1)
hs-hide-block-at-point(t)
hs-hide-all()
load-with-code-conversion("/home/user/recipe.el" "/home/user/recipe.el" nil t)
command-line-1(("-l" "recipe.el"))
command-line()
normal-top-level()
Scan error: "Unbalanced parentheses", 11, 12
In GNU Emacs 29.4 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.42,
cairo version 1.18.0)
System Description: Arch Linux
Configured using:
'configure --with-pgtk --with-native-compilation=aot --sysconfdir=/etc
--prefix=/usr --libexecdir=/usr/lib --with-tree-sitter
--localstatedir=/var --with-cairo --disable-build-details
--with-harfbuzz --with-libsystemd --with-modules 'CFLAGS=-march=x86-64
-mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3
-Wformat -Werror=format-security -fstack-clash-protection
-fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -g
-ffile-prefix-map=/build/emacs/src=/usr/src/debug/emacs -flto=auto'
'LDFLAGS=-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro
-Wl,-z,now -Wl,-z,pack-relative-relocs -flto=auto'
'CXXFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions
-Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security
-fstack-clash-protection -fcf-protection -fno-omit-frame-pointer
-mno-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g
-ffile-prefix-map=/build/emacs/src=/usr/src/debug/emacs -flto=auto''
Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY
PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM GTK3 ZLIB
Important settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
Major mode: Fundamental
Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
show-paren-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
blink-cursor-mode: t
buffer-read-only: t
line-number-mode: t
indent-tabs-mode: t
transient-mark-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
Load-path shadows:
None found.
Features:
(shadow sort mail-extr emacsbug message mailcap yank-media puny dired
dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068
epg-config gnus-util text-property-search time-date mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs
comp comp-cstr warnings icons subr-x rx cl-seq cl-macs gv cl-extra
help-mode bytecomp byte-compile cl-lib sendmail rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip cconv
eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type
elisp-mode mwheel term/pgtk-win pgtk-win term/common-win pgtk-dnd
tool-bar dnd fontset image regexp-opt fringe tabulated-list replace
newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar
rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock
font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq
simple cl-generic indonesian philippine cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite emoji-zwj charscript charprop case-table
epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button
loaddefs theme-loaddefs faces cus-face macroexp files window
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget keymap hashtable-print-readable backquote threads dbusbind
inotify dynamic-setting system-font-setting font-render-setting cairo
gtk pgtk lcms2 multi-tty make-network-process native-compile emacs)
Memory information:
((conses 16 77261 5726)
(symbols 48 7109 0)
(strings 32 19602 2346)
(string-bytes 1 595262)
(vectors 16 15680)
(vector-slots 8 327971 13482)
(floats 8 27 46)
(intervals 56 378 1)
(buffers 984 12))
Forty Five <mathewegeorge@HIDDEN>:bug-gnu-emacs@HIDDEN.
Full text available.bug-gnu-emacs@HIDDEN:bug#71750; Package emacs.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.