Check for support in sqlite-mode-open-file
* lisp/sqlite-mode.el (sqlite-mode-open-file): Error out earlier when we don't have sqlite support.
This commit is contained in:
parent
8faada1f5a
commit
6c9adafa93
1 changed files with 2 additions and 0 deletions
|
@ -52,6 +52,8 @@
|
|||
(defun sqlite-mode-open-file (file)
|
||||
"Browse the contents of an sqlite file."
|
||||
(interactive "fSQLite file name: ")
|
||||
(unless (sqlite-available-p)
|
||||
(error "This Emacs doesn't have SQLite support, so it can't view SQLite files"))
|
||||
(pop-to-buffer (get-buffer-create
|
||||
(format "*SQLite %s*" (file-name-nondirectory file))))
|
||||
(sqlite-mode)
|
||||
|
|
Loading…
Add table
Reference in a new issue