RE: Indentation

"Clementson, Bill" <[email protected]> Wed, 17 Apr 2002 07:41:56 -0600
Newsgroups gmane.lisp.ilisp.general
Message-ID <[email protected]>
Put the following in your .emacs to get the indentation in your 2nd example:

  (setq lisp-indent-function 'common-lisp-indent-function)
 
--
Bill Clementson


> -----Original Message-----
> From: Robert Folland [mailto:[email protected]]
> Sent: Wednesday, April 17, 2002 2:40 AM
> To: [email protected]
> Subject: [Ilisp-help] Indentation
> 
> 
> I am wondering if there is an easy way to get proper indentation for
> 'with-open-file'.
> 
> Example:
> 
> This is what I get in my GNU Emacs 21.1 with ilisp 5.11.1:
> 
> (let ((value 300))
>   (with-open-file (stream "testfile"
> 			  :element-type '(unsigned-byte 8)
> 			  :direction :output)
> 		  (write-byte (ldb (byte 8 8) value) stream)
> 		  (write-byte (ldb (byte 8 0) value) stream)))
> 
> Shouldn't it be:
> 
> (let ((value 300))
>   (with-open-file (stream "testfile"
>                    :element-type '(unsigned-byte 8)
>                    :direction :output)
>     (write-byte (ldb (byte 8 8) value) stream)
>     (write-byte (ldb (byte 8 0) value) stream)))
> 
> ?
> 
> -Robert
> 
> 
> _______________________________________________
> Ilisp-help mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ilisp-help
>