unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#30494: 25.2; (setting-constant nil) error in sql.el
@ 2018-02-16 21:52 sciamano
  2018-03-09  1:18 ` Noam Postavsky
  0 siblings, 1 reply; 7+ messages in thread
From: sciamano @ 2018-02-16 21:52 UTC (permalink / raw)
  To: 30494

Hi,

i'm trying to add SQL product by following steps from the introduction
section in the sql.el, but for the settings
:sqli-program
:sqli-login
:sqli-options
it fails with "attemt to set a constant symbol: nil"

In 'emacs -Q' executing it step-by-step:

(require 'sql)

(sql-add-product 'xyz "XyzDB"
                 '(:free-software t))

(defcustom my-sql-xyz-program "ixyz"
  "Command to start ixyz by XyzDB."
  :type 'file
  :group 'SQL)

;; NEXT STEP FAILS WITH:
;; Debugger entered--Lisp error: (setting-constant nil)
;;  sql-set-product-feature(xyz :sqli-program my-sql-xyz-program)
;;  eval((sql-set-product-feature (quote xyz) :sqli-program (quote my-sql-xyz-program)) nil)
(sql-set-product-feature 'xyz
                         :sqli-program 'my-sql-xyz-program)

;; BUT THIS TWO ARE OK
(sql-set-product-feature 'xyz
			 :prompt-regexp "^xyzdb> ")
(sql-set-product-feature 'xyz
			 :prompt-length 7)


-- 
Denis






^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-01-12 11:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-16 21:52 bug#30494: 25.2; (setting-constant nil) error in sql.el sciamano
2018-03-09  1:18 ` Noam Postavsky
2018-12-01  0:30   ` Pierre Téchoueyres
2018-12-13 19:40     ` Pierre Téchoueyres
2018-12-23 19:51       ` Pierre Téchoueyres
2019-01-08 22:00         ` Pierre Téchoueyres
2019-01-12 11:35           ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).