From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: org-map-entries narrowing smaller than entry [9.1.14 (9.1.14-1049-g04641c-elpaplus @ /home/ionasal/.emacs.d/elpa/org-plus-contrib-20181203/)] Date: Tue, 11 Dec 2018 17:27:40 +0100 Message-ID: <87r2eojaf7.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36322) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gWkt3-0005o8-T2 for emacs-orgmode@gnu.org; Tue, 11 Dec 2018 11:27:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gWksz-0002tO-OG for emacs-orgmode@gnu.org; Tue, 11 Dec 2018 11:27:57 -0500 Received: from relay12.mail.gandi.net ([217.70.178.232]:53957) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gWksz-0002sH-Ey for emacs-orgmode@gnu.org; Tue, 11 Dec 2018 11:27:53 -0500 In-Reply-To: (Allen Li's message of "Mon, 10 Dec 2018 23:43:20 -0800") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Allen Li Cc: Org Mode List Hello, Allen Li writes: > org-map-entries narrows the buffer to narrower than the given entry. > > 1. Run: cat > /tmp/tmp.org < * some headline > ** stuff > some text > ** asdf asdf > EOF > > 2. emacs -Q > 3. M-g M-g 2 RET > 4. M-: (org-map-entries (lambda () (list (org-element-at-point) > (point-min) (point-max))) nil 'tree) RET > > Actual: > > (((headline (:raw-value "stuff" :begin 17 :end 36 :pre-blank 0 > :contents-begin 26 :contents-end 36 ...)) 17 35)) `org-element-at-point' ignores narrowing. Regards, -- Nicolas Goaziou