From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH 1/2] Remove striction when finding task by id Date: Sat, 14 Jun 2014 17:12:43 +0200 Message-ID: <87ioo3zfro.fsf@nicolasgoaziou.fr> References: <1402757211-30510-1-git-send-email-bernt@norang.ca> <1402757211-30510-2-git-send-email-bernt@norang.ca> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41484) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wvpcu-0004Zd-Ja for emacs-orgmode@gnu.org; Sat, 14 Jun 2014 11:12:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wvpcl-0003oH-QU for emacs-orgmode@gnu.org; Sat, 14 Jun 2014 11:12:16 -0400 Received: from relay5-d.mail.gandi.net ([2001:4b98:c:538::197]:46287) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wvpcl-0003oC-KO for emacs-orgmode@gnu.org; Sat, 14 Jun 2014 11:12:07 -0400 In-Reply-To: <1402757211-30510-2-git-send-email-bernt@norang.ca> (Bernt Hansen's message of "Sat, 14 Jun 2014 10:46:50 -0400") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bernt Hansen Cc: emacs-orgmode@gnu.org Hello, Bernt Hansen writes: > Allows find task by id to locate a task outside a current > restriction. I restrict to subtrees regularly and when I want to > jump to another task outside the current restriction but in the > same file this patch is required to locate the appropriate > heading. Without this patch point ends up at the top of my > restricted area which is on the wrong task. Thank you. Could you provide a changelog with that? > + (save-restriction > + (widen) > + (save-excursion `save-restriction' + `widen' + `save-excursion' = `org-with-wide-buffer' Regards, -- Nicolas Goaziou