2 Use more idiomatic layout
source | link

I ended up simply using:

(defun what-links-here ()
  (interactive)
  (let ((id (org-entry-get nil "ID")))
    (if (> (length id) 0)
        (org-search-view nil (concat "id:" id))
      (message "No ID - nothing can be linking here")
    )
  )
 )

I ended up simply using:

(defun what-links-here ()
  (interactive)
  (let ((id (org-entry-get nil "ID")))
    (if (> (length id) 0)
      (org-search-view nil (concat "id:" id))
      (message "No ID - nothing can be linking here")
    )
  )
 )

I ended up simply using:

(defun what-links-here ()
  (interactive)
  (let ((id (org-entry-get nil "ID")))
    (if (> (length id) 0)
        (org-search-view nil (concat "id:" id))
      (message "No ID - nothing can be linking here"))))
1
source | link

I ended up simply using:

(defun what-links-here ()
  (interactive)
  (let ((id (org-entry-get nil "ID")))
    (if (> (length id) 0)
      (org-search-view nil (concat "id:" id))
      (message "No ID - nothing can be linking here")
    )
  )
)