[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patch: Syntax and Hard Newlines
From: |
Stefan Monnier |
Subject: |
Re: Patch: Syntax and Hard Newlines |
Date: |
Tue, 14 Nov 2006 22:58:07 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.90 (gnu/linux) |
> *************** (defun longlines-wrap-line ()
> *** 243,248 ****
> --- 245,257 ----
> (progn (insert-before-markers ?\n)
> (backward-char 1)
> (delete-char -1)
> + (let* ((point (point))
> + (state (syntax-ppss point)))
> + (if (nth 4 state)
> + ;; We are in a comment context.
> + (add-text-properties point
> + (1+ point)
> + '(syntax-table (14)))))
> (forward-char 1)
> nil)
> (if (longlines-merge-lines-p)
Why not just unconditionally do
(put-text-property (point)
(1+ (point))
'syntax-table '(0))
Or even just:
(progn (insert-before-markers (propertize "\n" 'syntax-table '(0)))
...)
-- Stefan
- RE: Patch: Syntax and Hard Newlines, (continued)
Re: Patch: Syntax and Hard Newlines, Stefan Monnier, 2006/11/13
- Re: Patch: Syntax and Hard Newlines, Herbert Euler, 2006/11/13
- Re: Patch: Syntax and Hard Newlines, Herbert Euler, 2006/11/14
- Re: Patch: Syntax and Hard Newlines,
Stefan Monnier <=
- Re: Patch: Syntax and Hard Newlines, Herbert Euler, 2006/11/14
- Re: Patch: Syntax and Hard Newlines, Richard Stallman, 2006/11/16
- Re: Patch: Syntax and Hard Newlines, Herbert Euler, 2006/11/30
- Re: Patch: Syntax and Hard Newlines, Stefan Monnier, 2006/11/30
Re: Patch: Syntax and Hard Newlines, Herbert Euler, 2006/11/14
Re: Patch: Syntax and Hard Newlines, Miles Bader, 2006/11/15
Re: Patch: Syntax and Hard Newlines, Stefan Monnier, 2006/11/15
Re: Patch: Syntax and Hard Newlines, Johan Bockgård, 2006/11/15
Re: Patch: Syntax and Hard Newlines, Stefan Monnier, 2006/11/15
Re: Patch: Syntax and Hard Newlines, Richard Stallman, 2006/11/16