ambrevar/shell: Add toggle-clesh-readtable.

master
Pierre Neidhardt 2021-01-16 01:13:26 +01:00
parent e2025adf9d
commit 312781b0d8
1 changed files with 6 additions and 0 deletions

View File

@ -337,6 +337,12 @@ If PARENT-DIRECTORY is not a parent of PATH, return PATH."
(named-readtables:in-readtable :standard)
(named-readtables:in-readtable :interpol-syntax)))
(export-always 'toggle-clesh-readtable)
(defun toggle-clesh-readtable ()
(if (eq *readtable* (named-readtables:find-readtable 'clesh:syntax))
(named-readtables:in-readtable :standard)
(named-readtables:in-readtable clesh:syntax)))
(export-always 'move-file)
(defun move-file (source destination)
"`rename-file' does not work cross-device, in particular it does not work on