Re: [BUG] Setting export scope to subtree not working as expected [9.6 (9.6-gb3da42 @ /Users/apc/.emacs.d/straight/build/org/)]

2022-12-10 Thread Alejandro Perez Carballo
Thanks for the quick fix!!

On Saturday, December 10, 2022, Kaushal Modi  wrote:

> Hi Alejandro,
>
> Thanks for reporting this issue. I was seeing the same issue and I wasn't
> sure if this issue was in org-mode or the ox-hugo package. It was on my
> to-debug list.
>
> Ihor: Thank you for the quick response and fix!
>
> On Sat, Dec 10, 2022, 4:47 AM Ihor Radchenko  wrote:
>
>> Alejandro Pérez Carballo  writes:
>>
>> > If point is on a heading followed by a subheading without any text in
>> between, the export process is using the tree starting with the subheading
>> instead of the tree starting from point position. If instead you have some
>> text after the first heading and before the subheading, the tree that is
>> exported is the tree starting from point position, as expected. I’m
>> assuming this is a bug, but maybe I’m missing something.
>> >
>> > For example, take a buffer containing just this:
>> >
>> >* The title
>> >** A subtitle
>> >Some text
>> >
>> > If I export this to an HTML buffer, with point at the beginning of the
>> first line and  after setting the scope to ‘subtree’, I get an HTML buffer
>> whose title is “A subtitle”.
>> >
>> > If I follow the same steps on a buffer containing just this:
>> >
>> >* The title
>> >Some text
>> >** A subtitle
>> >
>> > I get an HTML buffer whose title is “The title”.
>>
>> Thanks for reporting!
>> Fixed on bugfix.
>> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=0616b3c37
>>
>> --
>> Ihor Radchenko // yantar92,
>> Org mode contributor,
>> Learn more about Org mode at .
>> Support Org development at ,
>> or support my work at 
>>
>>


Re: [BUG] Setting export scope to subtree not working as expected [9.6 (9.6-gb3da42 @ /Users/apc/.emacs.d/straight/build/org/)]

2022-12-10 Thread Kaushal Modi
Hi Alejandro,

Thanks for reporting this issue. I was seeing the same issue and I wasn't
sure if this issue was in org-mode or the ox-hugo package. It was on my
to-debug list.

Ihor: Thank you for the quick response and fix!

On Sat, Dec 10, 2022, 4:47 AM Ihor Radchenko  wrote:

> Alejandro Pérez Carballo  writes:
>
> > If point is on a heading followed by a subheading without any text in
> between, the export process is using the tree starting with the subheading
> instead of the tree starting from point position. If instead you have some
> text after the first heading and before the subheading, the tree that is
> exported is the tree starting from point position, as expected. I’m
> assuming this is a bug, but maybe I’m missing something.
> >
> > For example, take a buffer containing just this:
> >
> >* The title
> >** A subtitle
> >Some text
> >
> > If I export this to an HTML buffer, with point at the beginning of the
> first line and  after setting the scope to ‘subtree’, I get an HTML buffer
> whose title is “A subtitle”.
> >
> > If I follow the same steps on a buffer containing just this:
> >
> >* The title
> >Some text
> >** A subtitle
> >
> > I get an HTML buffer whose title is “The title”.
>
> Thanks for reporting!
> Fixed on bugfix.
> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=0616b3c37
>
> --
> Ihor Radchenko // yantar92,
> Org mode contributor,
> Learn more about Org mode at .
> Support Org development at ,
> or support my work at 
>
>


Re: [BUG] Setting export scope to subtree not working as expected [9.6 (9.6-gb3da42 @ /Users/apc/.emacs.d/straight/build/org/)]

2022-12-10 Thread Ihor Radchenko
Alejandro Pérez Carballo  writes:

> If point is on a heading followed by a subheading without any text in 
> between, the export process is using the tree starting with the subheading 
> instead of the tree starting from point position. If instead you have some 
> text after the first heading and before the subheading, the tree that is 
> exported is the tree starting from point position, as expected. I’m assuming 
> this is a bug, but maybe I’m missing something.
>
> For example, take a buffer containing just this:
>
>* The title
>** A subtitle
>Some text
>
> If I export this to an HTML buffer, with point at the beginning of the first 
> line and  after setting the scope to ‘subtree’, I get an HTML buffer whose 
> title is “A subtitle”.
>
> If I follow the same steps on a buffer containing just this: 
>
>* The title
>Some text
>** A subtitle
>
> I get an HTML buffer whose title is “The title”.

Thanks for reporting!
Fixed on bugfix.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=0616b3c37

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



[BUG] Setting export scope to subtree not working as expected [9.6 (9.6-gb3da42 @ /Users/apc/.emacs.d/straight/build/org/)]

2022-12-08 Thread Alejandro Pérez Carballo


Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

 https://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org mailing list.


If point is on a heading followed by a subheading without any text in between, 
the export process is using the tree starting with the subheading instead of 
the tree starting from point position. If instead you have some text after the 
first heading and before the subheading, the tree that is exported is the tree 
starting from point position, as expected. I’m assuming this is a bug, but 
maybe I’m missing something.

For example, take a buffer containing just this:

   * The title
   ** A subtitle
   Some text

If I export this to an HTML buffer, with point at the beginning of the first 
line and  after setting the scope to ‘subtree’, I get an HTML buffer whose 
title is “A subtitle”.

If I follow the same steps on a buffer containing just this: 

   * The title
   Some text
   ** A subtitle

I get an HTML buffer whose title is “The title”.

This doesn’t happen with Org 9.5.5. In both cases, I get what I expect, viz. an 
HTML buffer whose title is “The title”.

I can reproduce this with the following minimal configuration:

I can reproduce this behavior with the following minimal config:

   (setq straight-check-for-modifications '(check-on-save find-when-checking))

   (defvar bootstrap-version)
   (let ((bootstrap-file
 (expand-file-name "straight/repos/straight.el/bootstrap.el" 
user-emacs-directory))
 (bootstrap-version 5))
 (unless (file-exists-p bootstrap-file)
   (with-current-buffer
   (url-retrieve-synchronously
   
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el;
   'silent 'inhibit-cookies)
 (goto-char (point-max))
 (eval-print-last-sexp)))
 (load bootstrap-file nil 'nomessage))

   (setq-default use-package-enable-imenu-support t)
   (setq straight-use-package-by-default t)
   (straight-use-package 'use-package)
   (setq use-package-verbose nil
 use-package-compute-statistics t
 use-package-expand-minimally t
 use-package-always-defer t)

   (straight-register-package 'org)

   (use-package org
 :ensure t)



Emacs  : GNU Emacs 28.2 (build 1, aarch64-apple-darwin21.6.0, NS appkit-2113.60 
Version 12.5 (Build 21G72))
of 2022-09-15
Package: Org mode version 9.6 (9.6-gb3da42 @ 
/Users/apc/.emacs.d/straight/build/org/)