GNU bug report logs - #30494
25.2; (setting-constant nil) error in sql.el

Previous Next

Package: emacs;

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

From: pierre.techoueyres <at> free.fr (Pierre Téchoueyres)
To: Noam Postavsky <npostavs <at> gmail.com>
Cc: sciamano <at> yandex.ru, eliz <at> gnu.org, 30494 <at> debbugs.gnu.org
Subject: bug#30494: 25.2; (setting-constant nil) error in sql.el
Date: Sun, 23 Dec 2018 20:51:44 +0100
pierre.techoueyres <at> free.fr (Pierre Téchoueyres) writes:

> pierre.techoueyres <at> free.fr (Pierre Téchoueyres) writes:
>
>> Noam Postavsky <npostavs <at> gmail.com> writes:
>>
>>> tags 30494 + confirmed easy
>>> quit
>>>
>>> sciamano <at> yandex.ru writes:
>>>
>>>> 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)
>>>
>>> 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 ?




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.