org-mobile.el 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538
  1. ;;; org-mobile.el --- Code for asymmetric sync with a mobile device
  2. ;; Copyright (C) 2009 Free Software Foundation, Inc.
  3. ;;
  4. ;; Author: Carsten Dominik <carsten at orgmode dot org>
  5. ;; Keywords: outlines, hypermedia, calendar, wp
  6. ;; Homepage: http://orgmode.org
  7. ;; Version: 6.31trans
  8. ;;
  9. ;; This file is part of GNU Emacs.
  10. ;;
  11. ;; GNU Emacs is free software: you can redistribute it and/or modify
  12. ;; it under the terms of the GNU General Public License as published by
  13. ;; the Free Software Foundation, either version 3 of the License, or
  14. ;; (at your option) any later version.
  15. ;;
  16. ;; GNU Emacs is distributed in the hope that it will be useful,
  17. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. ;; GNU General Public License for more details.
  20. ;;
  21. ;; You should have received a copy of the GNU General Public License
  22. ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
  23. ;;
  24. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  25. ;;
  26. ;;; Commentary:
  27. ;;
  28. ;; This file contains the code to interact with Richard Moreland's iPhone
  29. ;; application MobileOrg. This code is documented in Appendix B of the
  30. ;; Org-mode manual. The code is not specific for the iPhone, however.
  31. ;; Any external viewer and flagging application that uses the same
  32. ;; conventions could be used.
  33. (require 'org)
  34. (require 'org-agenda)
  35. (defgroup org-mobile nil
  36. "Options concerning support for a viewer on a mobile device."
  37. :tag "Org Mobile"
  38. :group 'org)
  39. (defcustom org-mobile-files '(org-agenda-files)
  40. "Files to be staged for MobileOrg.
  41. This is basically a list of filesand directories. Files will be staged
  42. directly. Directories will be search for files with the extension `.org'.
  43. In addition to this, the list may also contain the following symbols:
  44. org-agenda-files
  45. This means, include the complete, unrestricted list of files given in
  46. the variable `org-agenda-files'.
  47. org-agenda-text-search-extra-files
  48. Include the files given in the variable
  49. `org-agenda-text-search-extra-files'"
  50. :group 'org-mobile
  51. :type '(list :greedy t
  52. (option (const :tag "org-agenda-files" org-agenda-files))
  53. (option (const :tag "org-agenda-text-search-extra-files"
  54. org-agenda-text-search-extra-files))
  55. (repeat :inline t :tag "Additional files"
  56. (file))))
  57. (defcustom org-mobile-directory ""
  58. "The WebDAV directory where the interaction with the mobile takes place."
  59. :group 'org-mobile
  60. :type 'directory)
  61. (defcustom org-mobile-inbox-for-pull "~/org/from-mobile.org"
  62. "The file where captured notes and flags will be appended to.
  63. During the execution of `org-mobile-pull', the file
  64. `org-mobile-capture-file' will be emptied it's contents have
  65. been appended to the file given here."
  66. :group 'org-mobile
  67. :type 'file)
  68. (defconst org-mobile-capture-file "mobileorg.org"
  69. "The capture file where the mobile stores captured notes and flags.
  70. This should not be changed, because MobileOrg assumes this name.")
  71. (defcustom org-mobile-index-file "index.org"
  72. "The index file with inks to all Org files that should be loaded by MobileOrg.
  73. Relative to `org-mobile-directory'. The Address field in the MobileOrg setup
  74. should point to this file."
  75. :group 'org-mobile
  76. :type 'file)
  77. (defcustom org-mobile-force-id-on-agenda-items t
  78. "Non-nil means make all agenda items carry and ID."
  79. :group 'org-mobile
  80. :type 'boolean)
  81. (defcustom org-mobile-action-alist
  82. '(("d" . (org-todo 'done))
  83. ("a" . (org-archive-subtree-default))
  84. ("d-a" . (progn (org-todo 'done) (org-archive-subtree-default)))
  85. ("todo" . (org-todo data))
  86. ("tags" . (org-set-tags-to data)))
  87. "Alist with flags and actions for mobile sync.
  88. When flagging an entry, MobileOrg will create entries that look like
  89. * F(action:data) [[id:entry-id][entry title]]
  90. This alist defines that the ACTION in the parentheses of F() should mean,
  91. i.e. what action should be taken. The :data part in the parenthesis is
  92. optional. If present, the string after the colon will be passed to the
  93. action form as the `data' variable.
  94. The car of each elements of the alist is an actions string. The cdr is
  95. an Emacs Lisp form that will be evaluated with the cursor on the headline
  96. of that entry."
  97. :group 'org-mobile
  98. :type '(repeat
  99. (cons (string :tag "Action flag")
  100. (sexp :tag "Action form"))))
  101. (defvar org-mobile-pre-push-hook nil
  102. "Hook run before running `org-mobile-push'.
  103. This could be used to clean up `org-mobile-directory', for example to
  104. remove files that used to be included in the agenda but no longer are.
  105. The presence of such files would not really be a problem, but after time
  106. they may accumulate.")
  107. (defvar org-mobile-post-push-hook nil
  108. "Hook run after running `org-mobile-push'.
  109. If Emacs does not have direct write access to the WebDAV directory used
  110. by the mobile device, this hook should be used to copy all files from the
  111. local staging directory `org-mobile-directory' to the WebDAV directory,
  112. for example using `rsync' or `scp'.")
  113. (defvar org-mobile-pre-pull-hook nil
  114. "Hook run before executing `org-mobile-pull'.
  115. If Emacs does not have direct write access to the WebDAV directory used
  116. by the mobile device, this hook should be used to copy the capture file
  117. `mobileorg.org' from the WebDAV location to the local staging
  118. directory `org-mobile-directory'.")
  119. (defvar org-mobile-post-pull-hook nil
  120. "Hook run after running `org-mobile-pull'.
  121. If Emacs does not have direct write access to the WebDAV directory used
  122. by the mobile device, this hook should be used to copy the emptied
  123. capture file `mobileorg.org' back to the WebDAV directory, for example
  124. using `rsync' or `scp'.")
  125. (defvar org-mobile-last-flagged-files nil
  126. "List of files containing entreis flagged in the latest pull.")
  127. (defvar org-mobile-files-alist nil)
  128. (defvar org-mobile-checksum-files nil)
  129. (defun org-mobile-prepare-file-lists ()
  130. (setq org-mobile-files-alist (org-mobile-files-alist))
  131. (setq org-mobile-checksum-files (mapcar 'cdr org-mobile-files-alist)))
  132. (defun org-mobile-files-alist ()
  133. "Expand the list in `org-mobile-files' to a list of existing files."
  134. (let* ((files
  135. (apply 'append (mapcar
  136. (lambda (f)
  137. (cond
  138. ((eq f 'org-agenda-files) (org-agenda-files t))
  139. ((eq f 'org-agenda-text-search-extra-files)
  140. org-agenda-text-search-extra-files)
  141. ((and (stringp f) (file-directory-p f))
  142. (directory-files f 'full "\\.org\\'"))
  143. ((and (stringp f) (file-exists-p f))
  144. (list f))
  145. (t nil)))
  146. org-mobile-files)))
  147. (orgdir-uname (file-name-as-directory (file-truename org-directory)))
  148. (orgdir-re (concat "\\`" (regexp-quote orgdir-uname)))
  149. uname seen rtn file link-name)
  150. ;; Make the files unique, and determine the name under which they will
  151. ;; be listed.
  152. (while (setq file (pop files))
  153. (setq uname (file-truename file))
  154. (unless (member uname seen)
  155. (push uname seen)
  156. (if (string-match orgdir-re uname)
  157. (setq link-name (substring uname (match-end 0)))
  158. (setq link-name (file-name-nondirectory uname)))
  159. (push (cons file link-name) rtn)))
  160. (nreverse rtn)))
  161. ;;;###autoload
  162. (defun org-mobile-push ()
  163. "Push the current state of Org affairs to the WebDAV directory.
  164. This will create the index file, copy all agenda files there, and also
  165. create all custom agenda views, for upload to the mobile phone."
  166. (interactive)
  167. (org-mobile-check-setup)
  168. (org-mobile-prepare-file-lists)
  169. (run-hooks 'org-mobile-pre-push-hook)
  170. (org-mobile-create-sumo-agenda)
  171. (org-save-all-org-buffers) ; to save any IDs created by this process
  172. (org-mobile-copy-agenda-files)
  173. (org-mobile-create-index-file)
  174. (org-mobile-write-checksums)
  175. (run-hooks 'org-mobile-post-push-hook)
  176. (message "Files for mobile viewer staged"))
  177. ;;;###autoload
  178. (defun org-mobile-pull ()
  179. "Pull the contents of `org-mobile-capture-file' and integrate them.
  180. Apply all flagged actions, flag entries to be flagged and then call an
  181. agenda view showing the flagged items."
  182. (interactive)
  183. (org-mobile-check-setup)
  184. (run-hooks 'org-mobile-pre-pull-hook)
  185. (let ((insertion-marker (org-mobile-move-capture)))
  186. (if (not (markerp insertion-marker))
  187. (message "No new items")
  188. (org-with-point-at insertion-marker
  189. (org-mobile-apply-flags (point) (point-max)))
  190. (move-marker insertion-marker nil)
  191. (run-hooks 'org-mobile-post-pull-hook)
  192. (when org-mobile-last-flagged-files
  193. ;; Make an agenda view of flagged entries, but only in the files
  194. ;; where stuff has been added.
  195. (put 'org-agenda-files 'org-restrict org-mobile-last-flagged-files)
  196. (let ((org-agenda-keep-restriced-file-list t))
  197. (org-agenda nil "?"))))))
  198. (defun org-mobile-check-setup ()
  199. "Check if org-mobile-directory has been set up."
  200. (when (or (not org-mobile-directory)
  201. (not (stringp org-mobile-directory))
  202. (not (string-match "\\S-" org-mobile-directory))
  203. (not (file-exists-p org-mobile-directory))
  204. (not (file-directory-p org-mobile-directory)))
  205. (error
  206. "Variable `org-mobile-directory' must point to an existing directory"))
  207. (when (or (not org-mobile-inbox-for-pull)
  208. (not (stringp org-mobile-inbox-for-pull))
  209. (not (string-match "\\S-" org-mobile-inbox-for-pull))
  210. (not (file-exists-p
  211. (file-name-directory org-mobile-inbox-for-pull))))
  212. (error
  213. "Variable `org-mobile-inbox-for-pull' must point to a file in an existing directory")))
  214. (defun org-mobile-create-index-file ()
  215. "Write the index file in the WebDAV directory."
  216. (let ((files-alist org-mobile-files-alist)
  217. (def-todo (default-value 'org-todo-keywords))
  218. (def-tags (default-value 'org-tag-alist))
  219. file link-name todo-kwds done-kwds tags drawers entry dwds twds)
  220. (org-prepare-agenda-buffers (mapcar 'car files-alist))
  221. (setq done-kwds (org-uniquify org-done-keywords-for-agenda))
  222. (setq todo-kwds (org-delete-all
  223. done-kwds
  224. (org-uniquify org-todo-keywords-for-agenda)))
  225. (setq drawers (org-uniquify org-drawers-for-agenda))
  226. (setq tags (org-uniquify
  227. (delq nil
  228. (mapcar
  229. (lambda (e)
  230. (cond ((stringp e) e)
  231. ((listp e)
  232. (if (stringp (car e)) (car e) nil))
  233. (t nil)))
  234. org-tag-alist-for-agenda))))
  235. (with-temp-file
  236. (expand-file-name org-mobile-index-file org-mobile-directory)
  237. (while (setq entry (pop def-todo))
  238. (setq kwds (mapcar (lambda (x) (if (string-match "(" x)
  239. (substring x 0 (match-beginning 0))
  240. x))
  241. (cdr entry)))
  242. (insert "#+TODO: " (mapconcat 'identity kwds " ") "\n")
  243. (setq dwds (member "|" kwds)
  244. twds (org-delete-all dwds kwds)
  245. todo-kwds (org-delete-all twds todo-kwds)
  246. done-kwds (org-delete-all dwds done-kwds)))
  247. (when (or todo-kwds done-kwds)
  248. (insert "#+TODO: " (mapconcat 'identity todo-kwds " ") " | "
  249. (mapconcat 'identity done-kwds " ") "\n"))
  250. (setq def-tags (mapcar
  251. (lambda (x)
  252. (cond ((null x) nil)
  253. ((stringp x) x)
  254. ((eq (car x) :startgroup) "{")
  255. ((eq (car x) :endgroup) "}")
  256. ((eq (car x) :newline) nil)
  257. ((listp x) (car x))
  258. (t nil)))
  259. def-tags))
  260. (setq def-tags (delq nil def-tags))
  261. (setq tags (org-delete-all def-tags tags))
  262. (setq tags (append def-tags tags nil))
  263. (insert "#+TAGS: " (mapconcat 'identity tags " ") "\n")
  264. (insert "#+DRAWERS: " (mapconcat 'identity drawers " ") "\n")
  265. (insert "* [[file:agendas.org][Agenda Views]]\n")
  266. (while (setq entry (pop files-alist))
  267. (setq file (car entry)
  268. link-name (cdr entry))
  269. (insert (format "* [[file:%s][%s]]\n"
  270. link-name link-name)))
  271. (insert (format "* [[file:%s][Captured before last sync]]\n"
  272. org-mobile-capture-file)))))
  273. (defun org-mobile-copy-agenda-files ()
  274. "Copy all agenda files to the stage or WebDAV directory."
  275. (let ((files-alist org-mobile-files-alist)
  276. file buf entry link-name target-path target-dir)
  277. (while (setq entry (pop files-alist))
  278. (setq file (car entry) link-name (cdr entry))
  279. (when (file-exists-p file)
  280. (setq target-path (expand-file-name link-name org-mobile-directory)
  281. target-dir (file-name-directory target-path))
  282. (unless (file-directory-p target-dir)
  283. (make-directory target-dir 'parents))
  284. (copy-file file target-path 'ok-if-exists)))
  285. (setq file (expand-file-name org-mobile-capture-file
  286. org-mobile-directory))
  287. (unless (file-exists-p file)
  288. (save-excursion
  289. (setq buf (find-file file))
  290. (insert "\n")
  291. (save-buffer))
  292. (kill-buffer buf))))
  293. (defun org-mobile-write-checksums ()
  294. "Create checksums for all files in `org-mobile-directory'.
  295. The table of checksums is written to the file mobile-checksums."
  296. (let ((cmd (cond ((executable-find "shasum"))
  297. ((executable-find "sha1sum"))
  298. ((executable-find "md5sum"))
  299. ((executable-find "md5"))))
  300. (files org-mobile-checksum-files))
  301. (if (not cmd)
  302. (message "Checksums could not be generated: no executable")
  303. (with-temp-buffer
  304. (cd org-mobile-directory)
  305. (if (file-exists-p "agendas.org")
  306. (push "agendas.org" files))
  307. (if (file-exists-p "mobileorg.org")
  308. (push "mobileorg.org" files))
  309. (setq cmd (concat cmd " " (mapconcat 'shell-quote-argument files " ")
  310. " > checksums.dat"))
  311. (if (equal 0 (shell-command cmd))
  312. (message "Checksums written")
  313. (message "Checksums could not be generated"))))))
  314. (defun org-mobile-sumo-agenda-command ()
  315. "Return an agenda custom command that comprises all custom commands."
  316. (let ((custom-list
  317. ;; normalize different versions
  318. (delq nil
  319. (mapcar
  320. (lambda (x)
  321. (cond ((stringp (cdr x)) nil)
  322. ((stringp (nth 1 x)) x)
  323. ((not (nth 1 x)) (cons (car x) (cons "" (cddr x))))
  324. (t (cons (car x) (cons "" (cdr x))))))
  325. org-agenda-custom-commands)))
  326. new e key desc type match settings cmds gkey gdesc gsettings cnt)
  327. (while (setq e (pop custom-list))
  328. (cond
  329. ((stringp (cdr e))
  330. ;; this is a description entry - skip it
  331. )
  332. ((eq (nth 2 e) 'search)
  333. ;; Search view is interactive, skip
  334. )
  335. ((memq (nth 2 e) '(todo-tree tags-tree occur-tree))
  336. ;; These are trees, not really agenda commands
  337. )
  338. ((memq (nth 2 e) '(agenda todo tags))
  339. ;; a normal command
  340. (setq key (car e) desc (nth 1 e) type (nth 2 e) match (nth 3 e)
  341. settings (nth 4 e))
  342. (setq settings
  343. (cons (list 'org-agenda-title-append
  344. (concat "<break>KEYS=" key " TITLE: "
  345. (if (and (stringp desc) (> (length desc) 0))
  346. desc (symbol-name type))
  347. " " match))
  348. settings))
  349. (push (list type match settings) new))
  350. ((symbolp (nth 2 e))
  351. ;; A user-defined function, not sure how to handle that yet
  352. )
  353. (t
  354. ;; a block agenda
  355. (setq gkey (car e) gdesc (nth 1 e) gsettings (nth 3 e) cmds (nth 2 e))
  356. (setq cnt 0)
  357. (while (setq e (pop cmds))
  358. (setq type (car e) match (nth 1 e) settings (nth 2 e))
  359. (setq settings (append gsettings settings))
  360. (setq settings
  361. (cons (list 'org-agenda-title-append
  362. (concat "<break>KEYS=" gkey "#" (number-to-string
  363. (setq cnt (1+ cnt)))
  364. " TITLE: " gdesc " " match))
  365. settings))
  366. (push (list type match settings) new)))))
  367. (list "X" "SUMO" (reverse new) nil)))
  368. ;;;###autoload
  369. (defun org-mobile-create-sumo-agenda ()
  370. "Create a file that contains all custom agenda views."
  371. (interactive)
  372. (let* ((file (expand-file-name "agendas.org"
  373. org-mobile-directory))
  374. (org-agenda-custom-commands
  375. (list (append (org-mobile-sumo-agenda-command)
  376. (list (list file))))))
  377. (unless (file-writable-p file)
  378. (error "Cannot write to file %s" file))
  379. (org-store-agenda-views)))
  380. (defun org-mobile-move-capture ()
  381. "Move the contents of the capture file to the inbox file.
  382. Return a marker to the location where the new content has been added.
  383. If nothing new has beed added, return nil."
  384. (interactive)
  385. (let ((inbox-buffer (find-file-noselect org-mobile-inbox-for-pull))
  386. (capture-buffer (find-file-noselect
  387. (expand-file-name org-mobile-capture-file
  388. org-mobile-directory)))
  389. (insertion-point (make-marker))
  390. not-empty content)
  391. (save-excursion
  392. (set-buffer capture-buffer)
  393. (setq content (buffer-string))
  394. (setq not-empty (string-match "\\S-" content))
  395. (when not-empty
  396. (set-buffer inbox-buffer)
  397. (widen)
  398. (goto-char (point-max))
  399. (or (bolp) (newline))
  400. (move-marker insertion-point
  401. (prog1 (point) (insert content)))
  402. (save-buffer)
  403. (set-buffer capture-buffer)
  404. (erase-buffer)
  405. (save-buffer)))
  406. (kill-buffer capture-buffer)
  407. (if not-empty insertion-point)))
  408. (defun org-mobile-apply-flags (&optional beg end)
  409. "Apply all flags in the current buffer.
  410. If BEG and END are given, only do this in that region."
  411. (interactive)
  412. (require 'org-archive)
  413. (setq org-mobile-last-flagged-files nil)
  414. (setq beg (or beg (point-min)) end (or end (point-max)))
  415. (goto-char beg)
  416. (let ((marker (make-marker))
  417. (org-inhibit-logging 'note)
  418. (end (move-marker (make-marker) end))
  419. action data id id-pos cmd text)
  420. (while (re-search-forward
  421. "^\\*+[ \t]+F(\\([^():\n]*\\)\\(:\\([^()\n]*\\)\\)?)[ \t]+\\[\\[id:\\([^]\n ]+\\)" end t)
  422. (goto-char (- (match-beginning 1) 2))
  423. (catch 'next
  424. (setq action (match-string 1)
  425. data (and (match-end 3) (match-string 3))
  426. id (match-string 4)
  427. cmd (if (equal action "")
  428. '(progn
  429. (org-toggle-tag "FLAGGED" 'on)
  430. (and text (org-entry-put nil "THEFLAGGINGNOTE" text)))
  431. (cdr (assoc action org-mobile-action-alist)))
  432. text (org-trim (buffer-substring (1+ (point-at-eol))
  433. (save-excursion
  434. (org-end-of-subtree t))))
  435. id-pos (org-id-find id 'marker))
  436. (if (> (length text) 0)
  437. ;; Make TEXT into a single line, to fit into a property
  438. (setq text (mapconcat 'identity
  439. (org-split-string text "\n")
  440. "\\n"))
  441. (setq text nil))
  442. (unless id-pos
  443. (insert "BAD ID REFERENCE ")
  444. (throw 'next t))
  445. (unless cmd
  446. (insert "BAD FLAG ")
  447. (throw 'next t))
  448. (move-marker marker (point))
  449. (save-excursion
  450. (condition-case nil
  451. (org-with-point-at id-pos
  452. (progn
  453. (eval cmd)
  454. (if (member "FLAGGED" (org-get-tags))
  455. (add-to-list 'org-mobile-last-flagged-files
  456. (buffer-file-name (current-buffer))))))
  457. (error
  458. (progn
  459. (switch-to-buffer (marker-buffer marker))
  460. (goto-char marker)
  461. (insert "EXECUTION FAILED ")
  462. (throw 'next t)))))
  463. ;; If we get here, the action has been applied successfully
  464. ;; So remove the entry
  465. (org-back-to-heading t)
  466. (delete-region (point) (org-end-of-subtree t t))))
  467. (move-marker marker nil)
  468. (move-marker end nil)))
  469. (defun org-mobile-smart-read ()
  470. "Parse the entry at point for shortcuts and expand them.
  471. These shortcuts are meant for fast and easy typing on the limited
  472. keyboards of a mobile device. Below we show a list of the shortcuts
  473. currently implemented.
  474. The entry is expected to contain an inactive time stamp indicating when
  475. the entry was created. When setting dates and
  476. times (for example for deadlines), the time strings are interpreted
  477. relative to that creation date.
  478. Abbreviations are expected to take up entire lines, jst because it is so
  479. easy to type RET on a mobile device. Abbreviations start with one or two
  480. letters, followed immediately by a dot and then additional information.
  481. Generally the entire shortcut line is removed after action have been taken.
  482. Time stamps will be constructed using `org-read-date'. So for example a
  483. line \"dd. 2tue\" will set a deadline on the second Tuesday after the
  484. creation date.
  485. Here are the shortcuts currently implemented:
  486. dd. string set deadline
  487. ss. string set scheduling
  488. tt. string set time tamp, here.
  489. ti. string set inactive time
  490. tg. tag1 tag2 tag3 set all these tags, change case where necessary
  491. td. kwd set this todo keyword, change case where necessary
  492. FIXME: Hmmm, not sure if we can make his work against the
  493. auto-correction feature. Needs a bit more thinking. So this function
  494. is currently a noop.")
  495. (provide 'org-mobile)
  496. ;; arch-tag: ace0e26c-58f2-4309-8a61-05ec1535f658
  497. ;;; org-mobile.el ends here