inversion.el 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551
  1. ;;; inversion.el --- When you need something in version XX.XX
  2. ;;; Copyright (C) 2002-2003, 2005-2017 Free Software Foundation, Inc.
  3. ;; Author: Eric M. Ludlam <zappo@gnu.org>
  4. ;; Version: 1.3
  5. ;; Keywords: OO, lisp
  6. ;; This file is part of GNU Emacs.
  7. ;; GNU Emacs is free software: you can redistribute it and/or modify
  8. ;; it under the terms of the GNU General Public License as published by
  9. ;; the Free Software Foundation, either version 3 of the License, or
  10. ;; (at your option) any later version.
  11. ;; GNU Emacs is distributed in the hope that it will be useful,
  12. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. ;; GNU General Public License for more details.
  15. ;; You should have received a copy of the GNU General Public License
  16. ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
  17. ;;; Commentary:
  18. ;;
  19. ;; Keeping track of rapidly developing software is a tough thing to
  20. ;; do, especially if you want to have co-dependent packages which all
  21. ;; move at different rates.
  22. ;;
  23. ;; This library provides a framework for specifying version numbers
  24. ;; and (as side effect) have a flexible way of getting a desired feature set.
  25. ;;
  26. ;; If you would like to use this package to satisfy dependency replace this:
  27. ;;
  28. ;; (require 'spiffy)
  29. ;;
  30. ;; with this:
  31. ;;
  32. ;; (require 'inversion)
  33. ;; (inversion-require 'spiffy "1.0")
  34. ;;
  35. ;; If you feel the need to not throw errors, you can do this instead:
  36. ;;
  37. ;; (let ((err (inversion-test 'spiffy "1.0")))
  38. ;; (if err (your-stuff-here)))
  39. ;;
  40. ;; If you new package (2.0) needs to make sure a load file from your
  41. ;; package is compatible, use this test:
  42. ;;
  43. ;; (if (not (inversion-reverse-test 'spiffy version-from-file))
  44. ;; ;; Everything ok
  45. ;; (do stuff)
  46. ;; ;; Out of date
  47. ;; (import-old-code))
  48. ;;
  49. ;; If you would like to make inversion optional, do this:
  50. ;;
  51. ;; (or (require 'inversion nil t)
  52. ;; (defun inversion-test (p v)
  53. ;; (string= v (symbol-value
  54. ;; (intern-soft (concat (symbol-string p) "-version"))))))
  55. ;;
  56. ;; Or modify to specify `inversion-require' instead.
  57. ;;
  58. ;; TODO:
  59. ;; Offer to download newer versions of a package.
  60. ;;; History:
  61. ;;
  62. ;; Sept 3, 2002: First general publication.
  63. ;;; Code:
  64. (defvar inversion-version "1.3"
  65. "Current version of InVersion.")
  66. (defvar inversion-incompatible-version "0.1alpha1"
  67. "An earlier release which is incompatible with this release.")
  68. (defconst inversion-decoders
  69. '(
  70. (alpha "^\\([0-9]+\\)\\.\\([0-9]+\\)\\.?\\([0-9]*\\)?\\s-*\\.?alpha\\([0-9]+\\)?$" 4)
  71. (beta "^\\([0-9]+\\)\\.\\([0-9]+\\)\\.?\\([0-9]*\\)?\\s-*\\.?beta\\([0-9]+\\)?$" 4)
  72. (beta "^\\([0-9]+\\)\\.\\([0-9]+\\)\\.?\\([0-9]*\\)?\\s-*\\.?(beta\\([0-9]+\\)?)$" 4)
  73. (beta "^[^/]+/\\w+--\\w+--\\([0-9]+\\)\\.\\([0-9]+\\)\\.\\([0-9]+\\)--patch-\\([0-9]+\\)" 4)
  74. (beta "^\\w+: v\\([0-9]+\\)\\.\\([0-9]+\\)\\.\\([0-9]+\\)-\\([0-9]+\\)-\\(.*\\)" 5)
  75. (prerelease "^\\([0-9]+\\)\\.\\([0-9]+\\)\\s-*\\.?pre\\([0-9]+\\)?$" 3)
  76. (full "^\\([0-9]+\\)\\.\\([0-9]+\\)\\.?\\([0-9]+\\)?$" 3)
  77. (fullsingle "^\\([0-9]+\\)$" 1)
  78. (patch "^\\([0-9]+\\)\\.\\([0-9]+\\)\\.?\\([0-9]+\\)?\\s-*(patch \\([0-9]+\\))" 4)
  79. (point "^\\([0-9]+\\)\\.\\([0-9]+\\)\\.\\([0-9]+\\)$" 3)
  80. (point "^\\w+: v\\([0-9]+\\)\\.\\([0-9]+\\)\\.\\([0-9]+\\)-\\(0\\)-\\(.*\\)" 5)
  81. (build "^\\([0-9]+\\)\\.\\([0-9]+\\)\\.\\([0-9]+\\).\\([0-9]+\\)$" 4)
  82. (full "^[^/]+/\\w+--\\w+--\\([0-9]+\\)\\.\\([0-9]+\\)\\.\\([0-9]+\\)--version-\\([0-9]+\\)" 4)
  83. (full "^\\w+: v\\([0-9]+\\)\\.\\([0-9]+\\)\\.\\([0-9]+\\)" 5)
  84. )
  85. "List of decoders for version strings.
  86. Each decoder is of the form:
  87. ( RELEASE-TYPE REGEXP MAX )
  88. RELEASE-TYPE is a symbol specifying something like `beta' or `alpha'.
  89. REGEXP is the regular expression to match a version string.
  90. MAX is the maximum number of match-numbers in the release number.
  91. Decoders must be ordered to decode least stable versions before the
  92. more stable ones.")
  93. ;;; Version Checking
  94. ;;
  95. (defun inversion-decode-version (version-string)
  96. "Decode VERSION-STRING into an encoded list.
  97. Return value is of the form:
  98. (RELEASE MAJOR MINOR ...)
  99. where RELEASE is a symbol such as `full', or `beta'."
  100. (let ((decoders inversion-decoders)
  101. (result nil))
  102. (while (and decoders (not result))
  103. (if (string-match (nth 1 (car decoders)) version-string)
  104. (let ((ver nil)
  105. (num-left (nth 2 (car decoders)))
  106. (count 1))
  107. (while (<= count num-left)
  108. (setq ver (cons
  109. (if (match-beginning count)
  110. (string-to-number
  111. (substring version-string
  112. (match-beginning count)
  113. (match-end count)))
  114. 1)
  115. ver)
  116. count (1+ count)))
  117. (setq result (cons (caar decoders) (nreverse ver))))
  118. (setq decoders (cdr decoders))))
  119. result))
  120. (defun inversion-package-version (package)
  121. "Return the decoded version for PACKAGE."
  122. (let ((ver (symbol-value
  123. (intern-soft
  124. (concat (symbol-name package)
  125. "-version"))))
  126. (code nil))
  127. (unless ver
  128. (error "Package %S does not define %S-version" package package))
  129. ;; Decode the code
  130. (setq code (inversion-decode-version ver))
  131. (unless code
  132. (error "%S-version value (%s) cannot be decoded" package ver))
  133. code))
  134. (defun inversion-package-incompatibility-version (package)
  135. "Return the decoded incompatibility version for PACKAGE.
  136. The incompatibility version is specified by the programmer of
  137. a package when a package is not backward compatible. It is
  138. not an indication of new features or bug fixes."
  139. (let ((ver (symbol-value
  140. (intern-soft
  141. (concat (symbol-name package)
  142. "-incompatible-version")))))
  143. (if (not ver)
  144. nil
  145. ;; Decode the code
  146. (inversion-decode-version ver))))
  147. (defun inversion-recode (code)
  148. "Convert CODE into a string."
  149. (let ((r (nth 0 code)) ; release-type
  150. (n (nth 1 code)) ; main number
  151. (i (nth 2 code)) ; first increment
  152. (p (nth 3 code))) ; second increment
  153. (cond
  154. ((eq r 'full)
  155. (setq r "" p ""))
  156. ((eq r 'point)
  157. (setq r ".")))
  158. (format "%s.%s%s%s" n i r p)))
  159. (defun inversion-release-to-number (release-symbol)
  160. "Convert RELEASE-SYMBOL into a number."
  161. (let* ((ra (assoc release-symbol inversion-decoders))
  162. (rn (- (length inversion-decoders)
  163. (length (member ra inversion-decoders)))))
  164. rn))
  165. (defun inversion-= (ver1 ver2)
  166. "Return non-nil if VER1 is equal to VER2."
  167. (equal ver1 ver2))
  168. (defun inversion-< (ver1 ver2)
  169. "Return non-nil if VER1 is less than VER2."
  170. (let ((v1-0 (inversion-release-to-number (nth 0 ver1)))
  171. (v1-1 (nth 1 ver1))
  172. (v1-2 (nth 2 ver1))
  173. (v1-3 (nth 3 ver1))
  174. (v1-4 (nth 4 ver1))
  175. ;; v2
  176. (v2-0 (inversion-release-to-number (nth 0 ver2)))
  177. (v2-1 (nth 1 ver2))
  178. (v2-2 (nth 2 ver2))
  179. (v2-3 (nth 3 ver2))
  180. (v2-4 (nth 4 ver2))
  181. )
  182. (cond ((and (equal (list v1-1 v1-2 v1-3 v1-4)
  183. (list v2-1 v2-2 v2-3 v2-4))
  184. v1-0 v2-0)
  185. (< v1-0 v2-0))
  186. ((and (equal v1-1 v2-1)
  187. (equal v1-2 v2-2)
  188. (equal v1-3 v2-3)
  189. v1-4 v2-4) ; all or nothing if elt - is =
  190. (< v1-4 v2-4))
  191. ((and (equal v1-1 v2-1)
  192. (equal v1-2 v2-2)
  193. v1-3 v2-3) ; all or nothing if elt - is =
  194. (< v1-3 v2-3))
  195. ((and (equal v1-1 v2-1)
  196. v1-2 v2-2)
  197. (< v1-2 v2-2))
  198. ((and v1-1 v2-1)
  199. (< v1-1 v2-1))
  200. )))
  201. (defun inversion-check-version (version incompatible-version
  202. minimum &rest reserved)
  203. "Check that a given version meets the minimum requirement.
  204. VERSION, INCOMPATIBLE-VERSION and MINIMUM are of similar format to
  205. return entries of `inversion-decode-version', or a classic version
  206. string. INCOMPATIBLE-VERSION can be nil.
  207. RESERVED arguments are kept for a later use.
  208. Return:
  209. - nil if everything is ok.
  210. - `outdated' if VERSION is less than MINIMUM.
  211. - `incompatible' if VERSION is not backward compatible with MINIMUM.
  212. - t if the check failed."
  213. (let ((code (if (stringp version)
  214. (inversion-decode-version version)
  215. version))
  216. (req (if (stringp minimum)
  217. (inversion-decode-version minimum)
  218. minimum))
  219. )
  220. ;; Perform a test.
  221. (cond
  222. ((inversion-= code req)
  223. ;; Same version.. Yay!
  224. nil)
  225. ((inversion-< code req)
  226. ;; Version is too old!
  227. 'outdated)
  228. ((inversion-< req code)
  229. ;; Newer is installed. What to do?
  230. (let ((incompatible
  231. (if (stringp incompatible-version)
  232. (inversion-decode-version incompatible-version)
  233. incompatible-version)))
  234. (cond
  235. ((not incompatible) nil)
  236. ((or (inversion-= req incompatible)
  237. (inversion-< req incompatible))
  238. ;; The requested version is = or < than what the package
  239. ;; maintainer says is incompatible.
  240. 'incompatible)
  241. ;; Things are ok.
  242. (t nil))))
  243. ;; Check failed
  244. (t t))))
  245. (defun inversion-test (package minimum &rest reserved)
  246. "Test that PACKAGE meets the MINIMUM version requirement.
  247. PACKAGE is a symbol, similar to what is passed to `require'.
  248. MINIMUM is of similar format to return entries of
  249. `inversion-decode-version', or a classic version string.
  250. RESERVED arguments are kept for a later user.
  251. This depends on the symbols `PACKAGE-version' and optionally
  252. `PACKAGE-incompatible-version' being defined in PACKAGE.
  253. Return nil if everything is ok. Return an error string otherwise."
  254. (let ((check (inversion-check-version
  255. (inversion-package-version package)
  256. (inversion-package-incompatibility-version package)
  257. minimum reserved)))
  258. (cond
  259. ((null check)
  260. ;; Same version.. Yay!
  261. nil)
  262. ((eq check 'outdated)
  263. ;; Version is too old!
  264. (format "You need to upgrade package %s to %s" package minimum))
  265. ((eq check 'incompatible)
  266. ;; Newer is installed but the requested version is = or < than
  267. ;; what the package maintainer says is incompatible, then throw
  268. ;; that error.
  269. (format "Package %s version is not backward compatible with %s"
  270. package minimum))
  271. ;; Check failed
  272. (t "Inversion version check failed."))))
  273. (defun inversion-reverse-test (package oldversion &rest reserved)
  274. "Test that PACKAGE at OLDVERSION is still compatible.
  275. If something like a save file is loaded at OLDVERSION, this
  276. test will identify if OLDVERSION is compatible with the current version
  277. of PACKAGE.
  278. PACKAGE is a symbol, similar to what is passed to `require'.
  279. OLDVERSION is of similar format to return entries of
  280. `inversion-decode-version', or a classic version string.
  281. RESERVED arguments are kept for a later user.
  282. This depends on the symbols `PACKAGE-version' and optionally
  283. `PACKAGE-incompatible-version' being defined in PACKAGE.
  284. Return nil if everything is ok. Return an error string otherwise."
  285. (let ((check (inversion-check-version
  286. (inversion-package-version package)
  287. (inversion-package-incompatibility-version package)
  288. oldversion reserved)))
  289. (cond
  290. ((null check)
  291. ;; Same version.. Yay!
  292. nil)
  293. ((eq check 'outdated)
  294. ;; Version is too old!
  295. (format "Package %s version %s is not compatible with current version"
  296. package oldversion))
  297. ((eq check 'incompatible)
  298. ;; Newer is installed but the requested version is = or < than
  299. ;; what the package maintainer says is incompatible, then throw
  300. ;; that error.
  301. (format "Package %s version is not backward compatible with %s"
  302. package oldversion))
  303. ;; Check failed
  304. (t "Inversion version check failed."))))
  305. (defun inversion-require (package version &optional file directory
  306. &rest reserved)
  307. "Declare that you need PACKAGE with at least VERSION.
  308. PACKAGE might be found in FILE. (See `require'.)
  309. Throws an error if VERSION is incompatible with what is installed.
  310. Optional argument DIRECTORY is a location where new versions of
  311. this tool can be located. If there is a versioning problem and
  312. DIRECTORY is provided, inversion will offer to download the file.
  313. Optional argument RESERVED is saved for later use."
  314. (require package file)
  315. (let ((err (inversion-test package version)))
  316. (when err
  317. (if directory
  318. (inversion-download-package-ask err package directory version)
  319. (error err)))
  320. ;; Return the package symbol that was required.
  321. package))
  322. ;;;###autoload
  323. (defun inversion-require-emacs (emacs-ver xemacs-ver sxemacs-ver)
  324. "Declare that you need either EMACS-VER, XEMACS-VER or SXEMACS-ver.
  325. Only checks one based on which kind of Emacs is being run."
  326. (let ((err (inversion-test 'emacs
  327. (cond ((featurep 'sxemacs)
  328. sxemacs-ver)
  329. ((featurep 'xemacs)
  330. xemacs-ver)
  331. (t
  332. emacs-ver)))))
  333. (if err (error err)
  334. ;; Something nice...
  335. t)))
  336. (defconst inversion-find-data
  337. '("(def\\(var\\|const\\)\\s-+%s-%s\\s-+\"\\([^\"]+\\)" 2)
  338. "Regexp template and match data index of a version string.")
  339. (defun inversion-find-version (package)
  340. "Search for the version and incompatible version of PACKAGE.
  341. Does not load PACKAGE nor requires that it has been previously loaded.
  342. Search in the directories in `load-path' for a PACKAGE.el library.
  343. Visit the file found and search for the declarations of variables or
  344. constants `PACKAGE-version' and `PACKAGE-incompatible-version'. The
  345. value of these variables must be a version string.
  346. Return a pair (VERSION-STRING . INCOMPATIBLE-VERSION-STRING) where
  347. INCOMPATIBLE-VERSION-STRING can be nil.
  348. Return nil when VERSION-STRING was not found."
  349. (let* ((file (locate-library (format "%s.el" package) t))
  350. (tag (car inversion-find-data))
  351. (idx (nth 1 inversion-find-data))
  352. version)
  353. (when file
  354. (with-temp-buffer
  355. ;; The 3000 is a bit arbitrary, but should cut down on
  356. ;; fileio as version info usually is at the very top
  357. ;; of a file. After a long commentary could be bad.
  358. (insert-file-contents-literally file nil 0 3000)
  359. (goto-char (point-min))
  360. (when (re-search-forward (format tag package 'version) nil t)
  361. (setq version (list (match-string idx)))
  362. (goto-char (point-min))
  363. (when (re-search-forward
  364. (format tag package 'incompatible-version) nil t)
  365. (setcdr version (match-string idx))))))
  366. version))
  367. (defun inversion-add-to-load-path (package minimum
  368. &optional installdir
  369. &rest subdirs)
  370. "Add the PACKAGE path to `load-path' if necessary.
  371. MINIMUM is the minimum version requirement of PACKAGE.
  372. Optional argument INSTALLDIR is the base directory where PACKAGE is
  373. installed. It defaults to `default-directory'/PACKAGE.
  374. SUBDIRS are sub-directories to add to `load-path', following the main
  375. INSTALLDIR path."
  376. (let ((ver (inversion-find-version package)))
  377. ;; If PACKAGE not found or a bad version already in `load-path',
  378. ;; prepend the new PACKAGE path, so it will be loaded first.
  379. (when (or (not ver)
  380. (and
  381. (inversion-check-version (car ver) (cdr ver) minimum)
  382. (message "Outdated %s %s shadowed to meet minimum version %s"
  383. package (car ver) minimum)
  384. t))
  385. (let* ((default-directory
  386. (or installdir
  387. (expand-file-name (format "./%s" package))))
  388. subdir)
  389. (when (file-directory-p default-directory)
  390. ;; Add SUBDIRS
  391. (while subdirs
  392. (setq subdir (expand-file-name (car subdirs))
  393. subdirs (cdr subdirs))
  394. (when (file-directory-p subdir)
  395. ;;(message "%S added to `load-path'" subdir)
  396. (add-to-list 'load-path subdir)))
  397. ;; Add the main path
  398. ;;(message "%S added to `load-path'" default-directory)
  399. (add-to-list 'load-path default-directory))
  400. ;; We get to this point iff we do not accept or there is no
  401. ;; system file. Let's check the version of what we just
  402. ;; installed... just to be safe.
  403. (let ((newver (inversion-find-version package)))
  404. (if (not newver)
  405. (error "Failed to find version for newly installed %s"
  406. package))
  407. (if (inversion-check-version (car newver) (cdr newver) minimum)
  408. (error "Outdated %s %s just installed" package (car newver)))
  409. )))))
  410. ;;; URL and downloading code
  411. ;;
  412. (defun inversion-locate-package-files (package directory &optional version)
  413. "Get a list of distributions of PACKAGE from DIRECTORY.
  414. DIRECTORY can be an ange-ftp compatible filename, such as:
  415. \"/ftp@ftp1.sourceforge.net/pub/sourceforge/PACKAGE\"
  416. If it is a URL, wget will be used for download.
  417. Optional argument VERSION will restrict the list of available versions
  418. to the file matching VERSION exactly, or nil."
  419. ;;DIRECTORY should also allow a URL:
  420. ;; \"http://ftp1.sourceforge.net/PACKAGE\"
  421. ;; but then I can get file listings easily.
  422. (if (symbolp package) (setq package (symbol-name package)))
  423. (directory-files directory t
  424. (if version
  425. (concat "^" package "-" version "\\>")
  426. package)))
  427. (defvar inversion-package-common-tails '( ".tar.gz"
  428. ".tar"
  429. ".zip"
  430. ".gz"
  431. )
  432. "Common distribution mechanisms for Emacs Lisp packages.")
  433. (defun inversion-locate-package-files-and-split (package directory &optional version)
  434. "Use `inversion-locate-package-files' to get a list of PACKAGE files.
  435. DIRECTORY is the location where distributions of PACKAGE are.
  436. VERSION is an optional argument specifying a version to restrict to.
  437. The return list is an alist with the version string in the CAR,
  438. and the full path name in the CDR."
  439. (if (symbolp package) (setq package (symbol-name package)))
  440. (let ((f (inversion-locate-package-files package directory version))
  441. (out nil))
  442. (while f
  443. (let* ((file (car f))
  444. (dist (file-name-nondirectory file))
  445. (tails inversion-package-common-tails)
  446. (verstring nil))
  447. (while (and tails (not verstring))
  448. (when (string-match (concat (car tails) "$") dist)
  449. (setq verstring
  450. (substring dist (1+ (length package)) (match-beginning 0))))
  451. (setq tails (cdr tails)))
  452. (if (not verstring)
  453. (error "Cannot decode version for %s" dist))
  454. (setq out
  455. (cons
  456. (cons verstring file)
  457. out))
  458. (setq f (cdr f))))
  459. out))
  460. (defun inversion-download-package-ask (err package directory version)
  461. "Due to ERR, offer to download PACKAGE from DIRECTORY.
  462. The package should have VERSION available for download."
  463. (if (symbolp package) (setq package (symbol-name package)))
  464. (let ((files (inversion-locate-package-files-and-split
  465. package directory version)))
  466. (if (not files)
  467. (error err)
  468. (if (not (y-or-n-p (concat err ": Download update? ")))
  469. (error err)
  470. (let ((dest (read-directory-name (format "Download %s to: "
  471. package)
  472. t)))
  473. (if (> (length files) 1)
  474. (setq files
  475. (list
  476. "foo" ;; ignored
  477. (read-file-name "Version to download: "
  478. directory
  479. files
  480. t
  481. (concat
  482. (file-name-as-directory directory)
  483. package)
  484. nil))))
  485. (copy-file (cdr (car files)) dest))))))
  486. ;;; How we upgrade packages in Emacs has yet to be ironed out.
  487. ;; (defun inversion-upgrade-package (package &optional directory)
  488. ;; "Try to upgrade PACKAGE in DIRECTORY is available."
  489. ;; (interactive "sPackage to upgrade: ")
  490. ;; (if (stringp package) (setq package (intern package)))
  491. ;; (if (not directory)
  492. ;; ;; Hope that the package maintainer specified.
  493. ;; (setq directory (symbol-value (or (intern-soft
  494. ;; (concat (symbol-name package)
  495. ;; "-url"))
  496. ;; (intern-soft
  497. ;; (concat (symbol-name package)
  498. ;; "-directory"))))))
  499. ;; (let ((files (inversion-locate-package-files-and-split
  500. ;; package directory))
  501. ;; (cver (inversion-package-version package))
  502. ;; (newer nil))
  503. ;; (mapc (lambda (f)
  504. ;; (if (inversion-< cver (inversion-decode-version (car f)))
  505. ;; (setq newer (cons f newer))))
  506. ;; files)
  507. ;; newer
  508. ;; ))
  509. (provide 'inversion)
  510. ;;; inversion.el ends here