emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
   commit a39328cddf0fd4a8061d9aaea391910af9ebbff8 (patch)
   parent bc607a9af Avoid erroneous normalization of bracket link parts
     tree 9381f6ab9767b7637f0cea2cac01378b18729030
   author Roberto Huelga <rhuelga@gmail.com>  2011-12-11 13:50:36 +0100
committer Bastien Guerry <bzg@altern.org>     2011-12-11 13:50:36 +0100

Make the function `org-program-exists' work on osx.

* org-clock.el (org-program-exists): Make the function
compatible with darwin systems.
---
 lisp/org-clock.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index 2534229e0..9c6cd8046 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -658,7 +658,7 @@ Use alsa's aplay tool if available."
 
 (defun org-program-exists (program-name)
   "Checks whenever we can locate program and launch it."
-  (if (eq system-type 'gnu/linux)
+  (if (member system-type '(gnu/linux darwin))
       (= 0 (call-process "which" nil nil nil program-name))))
 
 (defvar org-clock-mode-line-entry nil


glossary
--------
Commit objects reference one tree, and zero or more parents.

Single parent commits can typically generate a patch in
unified diff format via `git format-patch'.

Multiple parents means the commit is a merge.

Root commits have no ancestor.  Note that it is
possible to have multiple root commits when merging independent histories.

Every commit references one top-level tree object.

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).