[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Is this (error (error ...)) form intentional?

From: Marcin Borkowski
Subject: [O] Is this (error (error ...)) form intentional?
Date: Sat, 19 Mar 2016 11:28:12 +0100
User-agent: mu4e 0.9.13; emacs

>From org.el:

--8<---------------cut here---------------start------------->8---
(defun org-back-to-heading (&optional invisible-ok)
  "Call `outline-back-to-heading', but provide a better error message."
  (condition-case nil
      (outline-back-to-heading invisible-ok)
    (error (error "Before first headline at position %d in buffer %s"
                  (point) (current-buffer)))))
--8<---------------cut here---------------end--------------->8---

Frankly, I don't see the point of nesting `error'.


Marcin Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University

reply via email to

[Prev in Thread] Current Thread [Next in Thread]