Add documentation, work around smartrep.

I am starting to get annoyed by smartrep...
This commit is contained in:
John Miller 2019-05-25 10:23:22 -05:00
parent 321d0e6c15
commit fe3430102c
3 changed files with 3 additions and 2 deletions

View file

@ -571,7 +571,7 @@ Misc
.. el:variable:: ein:filename-translations
.. el:function:: ein:tramp-create-filename-translator
.. el:variable:: ein:query-timeout
.. el:function:: ein:notebook-jump-to-opened-notebook
Gotchas and caveats
-------------------

View file

@ -69,6 +69,7 @@
(loop for f in (directory-files ein:source-dir nil "^ein-.*\\.el$")
unless (or (equal f "ein-pkg.el")
(equal f "ein-autoloads.el")
(equal f "ein-smartrep.el")
(funcall ignore-p f))
do (require (intern (file-name-sans-extension f)) nil t))
;; For `widget-button-press':

View file

@ -361,7 +361,7 @@ will be updated with kernel's cwd."
;;;###autoload
(defun ein:notebook-jump-to-opened-notebook (notebook)
"Switch to the buffer of an open notebook."
"List all opened notebook buffers and switch to one that the user selects."
(interactive
(list (completing-read "Jump to notebook:" (ein:notebook-opened-buffer-names) nil t)))
(switch-to-buffer notebook))