From mboxrd@z Thu Jan 1 00:00:00 1970 From: Puneeth Chaganti Subject: [PATCH] org-id-goto doesn't work if buffer is narrowed. Date: Fri, 23 Oct 2015 20:41:07 +0530 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=047d7b86ec088cb4f20522c70643 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49397) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpe09-0005UA-CL for emacs-orgmode@gnu.org; Fri, 23 Oct 2015 11:11:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zpe08-00029k-D0 for emacs-orgmode@gnu.org; Fri, 23 Oct 2015 11:11:29 -0400 Received: from mail-wi0-x232.google.com ([2a00:1450:400c:c05::232]:37833) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpe08-00029W-6S for emacs-orgmode@gnu.org; Fri, 23 Oct 2015 11:11:28 -0400 Received: by wicfv8 with SMTP id fv8so36367772wic.0 for ; Fri, 23 Oct 2015 08:11:27 -0700 (PDT) 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: emacs-orgmode --047d7b86ec088cb4f20522c70643 Content-Type: text/plain; charset=UTF-8 Hello, I've attached a one-line patch to fix `org-id-goto' if the target buffer is narrowed. Let me know if this fix sounds reasonable or if you have other suggestions! Thanks, Puneeth --047d7b86ec088cb4f20522c70643 Content-Type: text/x-patch; charset=US-ASCII; name="0001-Widen-buffer-in-org-id-goto.patch" Content-Disposition: attachment; filename="0001-Widen-buffer-in-org-id-goto.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_ig3sog2e0 RnJvbSAzZjNkZWI4NGZjMmUyNzM5MzA3ZTgyMGNkZmE3ZGUxYzZmYmY0ZjIzI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