Lines Matching defs:hard
37 (put 'use-hard-newlines 'permanent-local t)
38 (define-minor-mode use-hard-newlines
39 "Minor mode to distinguish hard and soft newlines.
41 text-property `hard' to newlines that they insert, and a line is
43 `paragraph-separate' if it follows a hard newline.
46 When the mode is turned on, if there are newlines in the buffer but no hard
47 newlines, ask the user whether to mark as hard any newlines preceeding a
53 Newlines not marked hard are called \"soft\", and are always internal
57 (when use-hard-newlines
59 ;; Intuit hard newlines --
60 ;; mark as hard any newlines preceding a paragraph-start line.
63 (not (text-property-any (point-min) (point-max) 'hard t))
68 (y-or-n-p "Make newlines between paragraphs hard? "))))
75 (set-hard-newline-properties (1- pos) pos))
76 ;; If paragraph-separate, newline after it is hard too.
78 (set-hard-newline-properties (1- pos) pos)
81 (set-hard-newline-properties (point) (1+ (point)))))))))))
97 If the variable `use-hard-newlines' is non-nil, then only lines following a
98 hard newline are considered to match."
103 ;; paragraph-start requires a hard newline, but paragraph-separate does not:
106 ;; something very minimal, even including "." (which makes every hard newline
294 (or (not use-hard-newlines)
297 (1- start) 'hard)))))
343 (and use-hard-newlines
344 (not (get-text-property (1- start) 'hard)))))