Browse Source

Fix bugs to keep compiler happy

Carsten Dominik 14 years ago
parent
commit
13ddc493e4
1 changed files with 4 additions and 4 deletions
  1. 4 4
      lisp/org.el

+ 4 - 4
lisp/org.el

@@ -14011,9 +14011,9 @@ a priority cookie and tags in the standard locations."
 	(widen)
 	(goto-char (point-min))
 	(let (case-fold-search)
-	  (if (setq p (re-search-forward
-		       (format org-complex-heading-regexp-format
-			       (regexp-quote heading)) nil t))
+	  (if (re-search-forward
+	       (format org-complex-heading-regexp-format
+		       (regexp-quote heading)) nil t)
 	      (if pos-only
 		  (match-beginning 0)
 		(move-marker (make-marker) (match-beginning 0)))))))))
@@ -14030,7 +14030,7 @@ When the target headline is found, return a marker to this location."
         (setq visiting (org-find-base-buffer-visiting file))
         (setq buffer (or visiting (find-file-noselect file)))
         (setq m (org-find-exact-headling-in-buffer
-                 target buffer))
+                 heading buffer))
         (when (and (not m) (not visiting)) (kill-buffer buffer))
         (and m (throw 'found m))))))