title: folding multi-line-comments in emacs automatically
body: <p>in my .emacs configuration, i have the following :</p>
  
  <pre><code>(defun fold-long-comment-lines ()
  "This functions allows us to fold long comment lines
   automatically in programming modes. Quite handy."
   (auto-fill-mode 1)
   (set (make-local-variable 'fill-no-break-predicate)
       (lambda ()
           (not (eq (get-text-property (point) 'face)
                  'font-lock-comment-face)))))
  </code></pre>
  
  <p>the above gets invoked as part of "c-mode-common-hook" and correctly provides folding long comment lines automatically.</p>
  
  <p>however, the above thing works indiscriminately, whether i am using a single line comment e.g. describing struct fields, or multi-line comments describing some complicated piece of code. </p>
  
  <p>so, the basic question is, how can i get automatic folding of long comment lines only if it is a multi-line comment ? </p>
  
  <p>thanks
  anupam</p>
  
  <p>edit-1: multi-line-comment explanation
  when i say "multi-line-comment", it basically means comments like this:</p>
  
  <pre><code>/*
   * this following piece of code does something totally funky with client
   * state, but it is ok.
  */
  code follows
  </code></pre>
  
  <p>a correspondingly, a single line comment would be something like this</p>
  
  <pre><code>struct foo {
     char buf_state : 3; // client protocol state 
     char buf_value : 5; // some value
  }
  </code></pre>
  
  <p>the above elisp code, dutifully folds both these comment lines. i would like to fold only the former, not the latter.</p>