emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] Docstrings: Use of `C-u'


From: Bastien
Subject: Re: [Orgmode] Docstrings: Use of `C-u'
Date: Mon, 16 Aug 2010 20:54:07 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux)

Memnon Anon <address@hidden> writes:

> ,----[ org-agenda.el ]
> | (defun org-agenda-clock-out (&optional arg)
> |   "Stop the currently running clock."
> |   (interactive "P")
> |   (unless (marker-buffer org-clock-marker)
> |     (error "No running clock"))
> |   (let ((marker (make-marker)) newhead)
> |     (org-with-remote-undo (marker-buffer org-clock-marker)
> |       (with-current-buffer (marker-buffer org-clock-marker)
> |     (save-excursion
> |       (save-restriction
> |         (widen)
> |         (goto-char org-clock-marker)
> |         (org-back-to-heading t)
> |         (move-marker marker (point))
> |         (org-clock-out)
> |         (setq newhead (org-get-heading))))))
> |     (org-agenda-change-all-lines newhead marker)
> |     (move-marker marker nil)))
> `----
>
> It takes an (optional) arg, but is it used anywhere?!

Nope...

> If there is no arg interpreted anywhere, why is it there?

Looks like a mistake - I committed a fix to remove this arg.

-- 
 Bastien



reply via email to

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