all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Bug in sql.el : sql-add-product
@ 2015-05-18 22:24 Kirstin Rhys
  2015-05-18 23:48 ` Dmitry Gutov
  0 siblings, 1 reply; 3+ messages in thread
From: Kirstin Rhys @ 2015-05-18 22:24 UTC (permalink / raw)
  To: help-gnu-emacs

The line:

    ;; Add product to the alist
    (add-to-list 'sql-product-alist `((,product :name ,display . ,plist)))

Should be:

    ;; Add product to the alist
    (add-to-list 'sql-product-alist `(,product :name ,display . ,plist))

As the original causes sql-product-alist to contain

( ( ( myproduct :name "My Product" ... ) )
  (ansi :name "ANSI" :font-lock ...)
  (db2 :name "DB2" ...)
)

instead of:

( (myproduct :name "My Product" ... )
  (ansi :name "ANSI" :font-lock ...)
  (db2 :name "DB2" ...)
)


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

* Re: Bug in sql.el : sql-add-product
  2015-05-18 22:24 Bug in sql.el : sql-add-product Kirstin Rhys
@ 2015-05-18 23:48 ` Dmitry Gutov
  2015-05-19  4:37   ` Kirstin Rhys
  0 siblings, 1 reply; 3+ messages in thread
From: Dmitry Gutov @ 2015-05-18 23:48 UTC (permalink / raw)
  To: Kirstin Rhys, help-gnu-emacs

On 05/19/2015 01:24 AM, Kirstin Rhys wrote:
> The line:
>
>      ;; Add product to the alist
>      (add-to-list 'sql-product-alist `((,product :name ,display . ,plist)))
>
> Should be:
>
>      ;; Add product to the alist
>      (add-to-list 'sql-product-alist `(,product :name ,display . ,plist))

I believe that is http://debbugs.gnu.org/15435, fixed about one and a 
half years ago.



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

* Re: Bug in sql.el : sql-add-product
  2015-05-18 23:48 ` Dmitry Gutov
@ 2015-05-19  4:37   ` Kirstin Rhys
  0 siblings, 0 replies; 3+ messages in thread
From: Kirstin Rhys @ 2015-05-19  4:37 UTC (permalink / raw)
  To: Dmitry Gutov; +Cc: help-gnu-emacs

Ah! Sorry.

I must be using an older version of emacs24.

For posterity and for other users, perhaps hive users in a controlled
environment who are forced to work with older versions, a fix is to add to
your .emacs :

...

(require 'sql)

(defun sql-add-product ... with corrected definition)

(require 'hive)

Thanks!





On Mon, May 18, 2015 at 4:48 PM, Dmitry Gutov <dgutov@yandex.ru> wrote:

> On 05/19/2015 01:24 AM, Kirstin Rhys wrote:
>
>> The line:
>>
>>      ;; Add product to the alist
>>      (add-to-list 'sql-product-alist `((,product :name ,display .
>> ,plist)))
>>
>> Should be:
>>
>>      ;; Add product to the alist
>>      (add-to-list 'sql-product-alist `(,product :name ,display . ,plist))
>>
>
> I believe that is http://debbugs.gnu.org/15435, fixed about one and a
> half years ago.
>


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

end of thread, other threads:[~2015-05-19  4:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-18 22:24 Bug in sql.el : sql-add-product Kirstin Rhys
2015-05-18 23:48 ` Dmitry Gutov
2015-05-19  4:37   ` Kirstin Rhys

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.