>>>>> "Nick" == Nick Sieger <[EMAIL PROTECTED]> writes:

  Nick> Thanks for the nifty code, Klaus.  Your `my-cc-mode-return'
  Nick> function led me to wonder if there was a way to make
  Nick> auto-fill/filladapt obey string semantics.  It'd be slick if
  Nick> hitting space after the fill-column would close the current
  Nick> string and re-open it in the proper way on the next line.  I
  Nick> looked at the lisp code for auto-fill/filladapt but did not
  Nick> see any obvious hooks to make this work.  Anyone have an idea?


Probably better to bind this to a key and do it manually. Several
short strings catenated together will probably before significantly
worse than a single long one, and should happen by programmer choice,
when it doesn't matter (debug, or fatal error reports), rather than
automatically. 

Also its very easy to do this way....

(defun insert-new-string-line()
  (interactive)
  (insert " \" +\n")
  (insert "\"")
  (indent-according-to-mode))


Cheers

Phil

Reply via email to