<div dir="ltr">I reasoned that *sometime* people have to upgrade emacs and we can't support to many old versions, after all Emacs 19.29 is not new. :-) Of course there is no practical difference in doing the expansions "by hand" or leaving it to emacs as the macros are so simple.<br>
<br>Robert<br><br><div class="gmail_quote">2008/10/17 Balint Reczey <span dir="ltr"><<a href="mailto:Balint.Reczey@ericsson.com">Balint.Reczey@ericsson.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
My original intention was the same, but the new style backqoutes was<br>
introduced in Emacs 19.29,<br>
( <a href="http://www.gnu.org/software/emacs/elisp/html_node/Backquote.html" target="_blank">http://www.gnu.org/software/emacs/elisp/html_node/Backquote.html</a> )<br>
and erlang.el contains compatibility workarounds for Emacs 18:<br>
<br>
;;; Avoid errors while compiling this file.<br>
<br>
;; `eval-when-compile' is not defined in Emacs 18.  We define it as a<br>
;; no-op.<br>
(or (fboundp 'eval-when-compile)<br>
    (defmacro eval-when-compile (&rest rest) nil))<br>
<br>
Replacing the old style backquotes whith new style ones would break<br>
compatibility with Emacs 18, so i just expanded them.<br>
<br>
Regards,<br>
Balint<br>
<br>
<br>
2008. 10. 16, csütörtök keltezéssel 22.01-kor Robert Virding ezt írta:<br>
<div><div></div><div class="Wj3C7c">> This fix just expands the backquote/unquote forms by hand. I have here<br>
> a better fix (I think) which uses the "new" backquote style. This has<br>
> been around a long while, and is compatible with Common Lisp<br>
> backquote. We'll see if it makes it through, I have also included the<br>
> file.<br>
><br>
> Compiling erlang.el with Emacs 22.1 also gives some obsolete<br>
> functions, but they seem to be for this version of Emacs.<br>
><br>
> Robert<br>
><br>
> *** erlang.el.orig    Thu Oct 16 21:33:08 2008<br>
> --- erlang.el    Thu Oct 16 21:36:45 2008<br>
> ***************<br>
> *** 1891,1895 ****<br>
>         "(unless CONDITION BODY...): If CONDITION is false, do BODY,<br>
> else return nil."<br>
> !       (` (if (, condition)<br>
> !          nil<br>
> !        (,@ body)))))<br>
><br>
> --- 1891,1895 ----<br>
>         "(unless CONDITION BODY...): If CONDITION is false, do BODY,<br>
> else return nil."<br>
> !       `(if ,condition<br>
> !        nil<br>
> !      ,@body)))<br>
><br>
> ***************<br>
> *** 1898,1902 ****<br>
>         "(when CONDITION BODY...): If CONDITION is true, do BODY, else<br>
> return nil."<br>
> !       (` (if (, condition)<br>
> !          (progn (,@ body))<br>
> !        nil))))<br>
><br>
> --- 1898,1902 ----<br>
>         "(when CONDITION BODY...): If CONDITION is true, do BODY, else<br>
> return nil."<br>
> !       `(if ,condition<br>
> !        (progn ,@body)<br>
> !      nil)))<br>
><br>
> ***************<br>
> *** 1905,1907 ****<br>
>         "Return the character in the current buffer just before POS."<br>
> !       (` (char-after (1- (or (, pos) (point)))))))<br>
><br>
> --- 1905,1907 ----<br>
>         "Return the character in the current buffer just before POS."<br>
> !       `(char-after (1- (or ,pos (point))))))<br>
><br>
><br>
> 2008/10/16 Balint Reczey <<a href="mailto:Balint.Reczey@ericsson.com">Balint.Reczey@ericsson.com</a>><br>
>         Hi,<br>
>         I tried to submit the patch to erlang-bugs several times, but<br>
>         somehow it<br>
>         did not get through the spam filter/listadmin. :-(<br>
><br>
>         You can find the patch here:<br>
>         <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=494823" target="_blank">http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=494823</a><br>
><br>
>         Regards,<br>
>         Balint<br>
><br>
>         2008. 10. 16, csütörtök keltezéssel 09.12-kor Sergey A. ezt<br>
>         írta:<br>
><br>
>         > Hello.<br>
>         ><br>
>         > The latest Emacs from CVS doesn't like the backuotes from<br>
>         erlang.el<br>
>         > --<br>
>         ><br>
>         > When I open any *.erl file in my emacs then the following<br>
>         warning<br>
>         > message is shown:<br>
>         ><br>
>         > "Loading `erlang': old-style backquotes detected!"<br>
>         ><br>
>         > I know this bug is of little importance, but maybe there is<br>
>         an easy<br>
>         > way to modify the erlang.el in such a way that all<br>
>         backquotes become<br>
>         > correct.<br>
>         ><br>
>         > Unfortunately, I have not got working knowledge of Lisp and<br>
>         don't know<br>
>         > what "backquotes" are :(<br>
>         ><br>
>         > I use erlang.el coming with Erlang R12B.3 and the latest<br>
>         emacs from<br>
>         > CVS (v23.0.60.1).<br>
>         ><br>
>         > Thanks.<br>
>         ><br>
>         > --<br>
>         > Sergey<br>
>         > _______________________________________________<br>
>         > erlang-bugs mailing list<br>
>         > <a href="mailto:erlang-bugs@erlang.org">erlang-bugs@erlang.org</a><br>
>         > <a href="http://www.erlang.org/mailman/listinfo/erlang-bugs" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-bugs</a><br>
>         _______________________________________________<br>
>         erlang-bugs mailing list<br>
>         <a href="mailto:erlang-bugs@erlang.org">erlang-bugs@erlang.org</a><br>
>         <a href="http://www.erlang.org/mailman/listinfo/erlang-bugs" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-bugs</a><br>
><br>
><br>
</div></div></blockquote></div><br></div>