Comments

Karl Pflästerer sigurd at 12move.de
Wed May 8 16:03:38 EDT 2002


On 8 May 2002, Philip Swartzleonard <- starx at pacbell.net wrote:
> I removed the extra blank lines manually. Unfortuantly if you try to
> do something like this without the extra padding

> def foo:
>     # A comment that is longer than fill length
>     c=1
>     c=2
>     pass

> You'll get

> def foo: # A comment that is
> longer than fill length c=1
> c=2 pass

> ... Is there a way to make emacs ignore lines that wouldn't be 
> considered comments by the language when wrapping?

I changed the value of `paragraph-start'. I did it like this:

(add-hook 'python-mode-hook
	  (lambda ()
	      (setq paragraph-start "[ \t\n\f#]")))

"[ \t\n\f]" is the default for this variable.

bye
   KP

-- 
      And has thou slain the Jabberwock?
          Come to my arms, my beamish boy!
      O frabjous day!  Callooh!  Callay!'
          He chortled in his joy.   "Lewis Carroll" "Jabberwocky"



More information about the Python-list mailing list