emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sesquicolon -- Note: Not a Bug


From: Richard Stallman
Subject: Re: Sesquicolon -- Note: Not a Bug
Date: Sun, 01 Sep 2002 09:15:00 -0400

    The current implementation is not enough:

    address@hidden:/tmp> cat /tmp/qq
    #!/usr/bin/emacs --script

    (message "The date is %s" (current-time-string))

    address@hidden:/tmp> /tmp/qq
    Invalid read syntax: "#"

Does this fix it?

*** lread.c.~1.296.~    Fri Aug 23 23:14:22 2002
--- lread.c     Sat Aug 31 19:38:44 2002
***************
*** 2098,2103 ****
--- 2098,2111 ----
  
          goto retry;
        }
+       if (c == '!')
+       {
+         /* #! appears at the beginning of an executable file.
+            Skip the first line.  */
+         while (c != '\n')
+           c = READCHAR;
+         goto retry;
+       }
        if (c == '$')
        return Vload_file_name;
        if (c == '\'')




reply via email to

[Prev in Thread] Current Thread [Next in Thread]