GNU bug report logs -
#30494
25.2; (setting-constant nil) error in sql.el
Previous Next
Reported by: sciamano <at> yandex.ru
Date: Fri, 16 Feb 2018 22:01:02 UTC
Severity: normal
Tags: confirmed, easy
Found in version 25.2
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Sat, 12 Jan 2019 13:35:14 +0200
with message-id <83k1jaf6rx.fsf <at> gnu.org>
and subject line Re: bug#30494: 25.2; (setting-constant nil) error in sql.el
has caused the debbugs.gnu.org bug report #30494,
regarding 25.2; (setting-constant nil) error in sql.el
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
30494: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=30494
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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
[Message part 3 (message/rfc822, inline)]
> From: pierre.techoueyres <at> free.fr (Pierre Téchoueyres)
> Date: Tue, 08 Jan 2019 23:00:06 +0100
> Cc: sciamano <at> yandex.ru, 30494 <at> debbugs.gnu.org
>
> >>>> Looks like it's probably just a missing nil check in
> >>>> sql-set-product-feature.
> >>>>
> >>>
> >>> Does the attached patch do the trick ?
> >>>
> >> Any interrest on this ?
> >
> > Ping ! Or if this isn't desired, maybe it's time to close the bug ?
>
> Ping ! Ping !
Sorry for lack of replies so far.
I've now pushed these changes to the master branch, and I'm closing
the bug report. In the future, please be sure to state in the log
message the function(s) where you make changes.
This bug report was last modified 6 years and 135 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.