@@ -250,20 +250,20 @@ location of the filepath cache."
250250 (setq org-projectile:project-name-to-location
251251 'org-projectile:project-name-to-location-prompt ))
252252
253- (defun org-projectile:location-for-project (project-name &optional for-insert )
253+ (defun org-projectile:location-for-project (project-name )
254254 (let* ((filename (funcall org-projectile:project-name-to-org-file project-name)))
255255 (switch-to-buffer (find-file-noselect filename))
256256 (funcall org-projectile:project-name-to-location project-name)))
257257
258- (defun org-projectile:target-subheading-and-return-marker (&optional for-insert )
258+ (defun org-projectile:target-subheading-and-return-marker ()
259259 (org-end-of-line )
260260 (org-projectile:end-of-properties)
261261 ; ; It sucks that this has to be done, but we have to insert a
262262 ; ; subheading if the entry does not have one in order to convince
263263 ; ; capture to actually insert the template as a subtree of the
264264 ; ; selected entry. We return a marker where the dummy subheading
265265 ; ; was created so that it can be deleted later.
266- (when (and for-insert ( not (save-excursion (org-goto-first-child ) )))
266+ (when (not (save-excursion (org-goto-first-child )))
267267 (save-excursion (org-insert-subheading nil ) (point-marker ))))
268268
269269(defun org-projectile:file-truename (filepath )
@@ -381,7 +381,7 @@ location of the filepath cache."
381381 (org-capture-put :template (org-capture-fill-template capture-template))
382382 (org-capture-set-target-location
383383 `(function ,(lambda () (setq org-projectile:do-target-entry
384- (org-projectile:location-for-project project-name t )))))
384+ (org-projectile:location-for-project project-name)))))
385385 ; ; Apparently this needs to be forced because (org-at-heading-p)
386386 ; ; will not be true and so `org-capture-set-target-location` will
387387 ; ; set this value to nil.
0 commit comments