unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* nested backquotes
@ 2003-09-24 14:03 Carlos Ungil
  2003-09-24 14:22 ` Carlos Ungil
  0 siblings, 1 reply; 2+ messages in thread
From: Carlos Ungil @ 2003-09-24 14:03 UTC (permalink / raw)


Hello,

I've found (what I think it is) a bug when using nested backquotes.

What follows has been executed using "emacs --no-init".
I understand that the first test is giving the right result, and that 
in the other cases there is a problem with the backquotes.

Maybe the reason it works in windows is because I'm 
using a more recent version (21.3.50, compared to 21.2.1 in linux 
and solaris), and the bug has indeed been fixed already, but I've 
found no references to this bug in emacs newsgroups, or in the 
PROBLEMS file (and the file backquote.el has not been changed, but 
maybe the origin of the bug was somewhere else).

Regards,

Carlos Ungil

-----

(emacs-version)
=>"GNU Emacs 21.3.50.1 (i386-mingw-nt5.1.2600) of 2003-08-21 on MIDASPSE17"

(defmacro test ()
  ``(a ,b ,,c))
=>test

(let ((a 1) (b 2) (c 3))
  (macroexpand (macroexpand '(test))))
=>(list (quote a) b 3)

-----

(emacs-version)
=>"GNU Emacs 21.2.1 (sparc-sun-solaris2.9, X toolkit, Xaw3d scroll bars) of 2003-05-19 on watford-71"

(defmacro test ()
  ``(a ,b ,,c))
=>test

(let ((a 1) (b 2) (c 3))
  (macroexpand (macroexpand '(test))))
=>(list (quote a) b \,c)

-----

(emacs-version)
=>"GNU Emacs 21.2.1 (i386-redhat-linux-gnu, X toolkit, Xaw3d scroll bars) of 2002-04-09 on porky.devel.redhat.com"

(defmacro test ()
  ``(a ,b ,,c))
=>test

(let ((a 1) (b 2) (c 3))
  (macroexpand (macroexpand '(test))))
=>(list (quote a) b \,c)

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

* Re: nested backquotes
  2003-09-24 14:03 nested backquotes Carlos Ungil
@ 2003-09-24 14:22 ` Carlos Ungil
  0 siblings, 0 replies; 2+ messages in thread
From: Carlos Ungil @ 2003-09-24 14:22 UTC (permalink / raw)


Hello,

in fact the problem was not in the backquotes but in the commas.
Using
           ``(a ,b ,(, c))
instead of 	
           ``(a ,b ,,c)
works fine.

Cheers,

Carlos Ungil

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

end of thread, other threads:[~2003-09-24 14:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-24 14:03 nested backquotes Carlos Ungil
2003-09-24 14:22 ` Carlos Ungil

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).