From mboxrd@z Thu Jan 1 00:00:00 1970 From: Noorul Islam K M Subject: Re: Fix typo in org-find-exact-headling-in-buffer Date: Tue, 24 Aug 2010 12:55:02 +0530 Message-ID: <87mxsclbg1.fsf@noorul.maa.corp.collab.net> References: <81vd719eag.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=57912 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Onntw-0005s2-6g for emacs-orgmode@gnu.org; Tue, 24 Aug 2010 03:26:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Onntv-0001bU-0P for emacs-orgmode@gnu.org; Tue, 24 Aug 2010 03:26:32 -0400 Received: from mail-pv0-f169.google.com ([74.125.83.169]:54487) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Onntu-0001bF-N4 for emacs-orgmode@gnu.org; Tue, 24 Aug 2010 03:26:30 -0400 Received: by pvc30 with SMTP id 30so4474600pvc.0 for ; Tue, 24 Aug 2010 00:26:29 -0700 (PDT) In-Reply-To: <81vd719eag.fsf@gmail.com> (Jambunathan K.'s message of "Tue, 24 Aug 2010 03:34:23 +0530") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jambunathan K Cc: emacs-orgmode@gnu.org Jambunathan K writes: > Still thinkling but have no inkling about headling. > > Jambunathan K. > > From a49dcabccf5d4589d553115d7ce8a648ab4328f2 Mon Sep 17 00:00:00 2001 > From: Jambunathan K > Date: Tue, 24 Aug 2010 03:05:04 +0530 > Subject: [PATCH] Fix typo in org-find-exact-headling-in-buffer > > * lisp/org.el (org-find-exact-heading-in-buffer): Renamed from > org-find-exact-headling-in-buffer. > * contrib/lisp/org-wikinodes.el (org-wikinodes-follow-link): Fix typo in > org-find-exact-headling-in-buffer > > TINYCHANGE. > --- > contrib/lisp/org-wikinodes.el | 6 +++--- > lisp/org.el | 4 ++-- > 2 files changed, 5 insertions(+), 5 deletions(-) > > diff --git a/contrib/lisp/org-wikinodes.el b/contrib/lisp/org-wikinodes.el > index 0a00052..e07a8e4 100644 > --- a/contrib/lisp/org-wikinodes.el > +++ b/contrib/lisp/org-wikinodes.el > @@ -119,10 +119,10 @@ setting of `org-wikinodes-create-targets'." > (let ((create org-wikinodes-create-targets) > visiting buffer m pos file rpl) > (setq pos > - (or (org-find-exact-headling-in-buffer target (current-buffer)) > + (or (org-find-exact-heading-in-buffer target (current-buffer)) > (and (eq org-wikinodes-scope 'directory) > (setq file (org-wikinodes-which-file target)) > - (org-find-exact-headling-in-buffer > + (org-find-exact-heading-in-buffer > target (or (get-file-buffer file) > (find-file-noselect file)))))) > (if pos > @@ -288,7 +288,7 @@ with working links." > (delete-region (match-beginning 0) (match-end 0)) > (save-match-data > (cond > - ((org-find-exact-headling-in-buffer link (current-buffer)) > + ((org-find-exact-heading-in-buffer link (current-buffer)) > ;; Found in current buffer > (insert (format "[[#%s][%s]]" link link))) > ((eq org-wikinodes-scope 'file) > diff --git a/lisp/org.el b/lisp/org.el > index 15379ef..134ac56 100644 > --- a/lisp/org.el > +++ b/lisp/org.el > @@ -14033,7 +14033,7 @@ only headings." > (when (org-on-heading-p) > (move-marker (make-marker) (point)))))))) > > -(defun org-find-exact-headling-in-buffer (heading &optional buffer pos-only) > +(defun org-find-exact-heading-in-buffer (heading &optional buffer pos-only) > "Find node HEADING in BUFFER. > Return a marker to the heading if it was found, or nil if not. > If POS-ONLY is set, return just the position instead of a marker. > @@ -14064,7 +14064,7 @@ When the target headline is found, return a marker to this location." > (message "trying %s" file) > (setq visiting (org-find-base-buffer-visiting file)) > (setq buffer (or visiting (find-file-noselect file))) > - (setq m (org-find-exact-headling-in-buffer > + (setq m (org-find-exact-heading-in-buffer > heading buffer)) > (when (and (not m) (not visiting)) (kill-buffer buffer)) > (and m (throw 'found m)))))) It might not be a typo. Looks like deliberate. Thanks Noorul