unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* use-hard-newlines
@ 2004-09-03  1:22 Luc Teirlinck
  2004-09-04  3:29 ` use-hard-newlines Richard Stallman
  0 siblings, 1 reply; 6+ messages in thread
From: Luc Teirlinck @ 2004-09-03  1:22 UTC (permalink / raw)


When visiting a file that Emacs earlier saved in text/enriched format,
Enriched mode is turned on, but hard newlines do not work.  The
reason is that visiting the file sets the major mode _after_
enriched-mode is called and has set the non-permanent local variable
`use-hard-newlines' to t.  That is futile, because
`kill-all-local-variables' kills it.

Since the variable `enriched-mode' is a permanent local, would it not
be consistent to make the closely related `use-hard-newlines'
permanent local too?  The trivial patch below does that.  This solves
the problem described above.  I could install the patch if there are
no objections.

===File ~/paragraphs-diff===================================
*** paragraphs.el	13 Jun 2004 17:08:05 -0500	1.72
--- paragraphs.el	02 Sep 2004 19:37:08 -0500	
***************
*** 34,39 ****
--- 34,40 ----
    "Paragraph and sentence parsing."
    :group 'editing)
  
+ (put 'use-hard-newlines 'permanent-local t)
  (define-minor-mode use-hard-newlines
    "Minor mode to distinguish hard and soft newlines.
  When active, the functions `newline' and `open-line' add the
============================================================

^ permalink raw reply	[flat|nested] 6+ messages in thread
* use-hard-newlines
@ 2015-08-28  6:36 Andreas Röhler
  2015-08-28  9:28 ` use-hard-newlines Artur Malabarba
  2015-08-29 20:23 ` use-hard-newlines Philipp Stephani
  0 siblings, 2 replies; 6+ messages in thread
From: Andreas Röhler @ 2015-08-28  6:36 UTC (permalink / raw)
  To: emacs-devel

Hi all,

is the concept of use-hard-newlines still considered useful?

Just looking how to simplify fill-paragraph.

AFAICS it introduces complexity which doesn't contribute, not reallly.

Cheers,

Andreas



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-08-29 20:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-03  1:22 use-hard-newlines Luc Teirlinck
2004-09-04  3:29 ` use-hard-newlines Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2015-08-28  6:36 use-hard-newlines Andreas Röhler
2015-08-28  9:28 ` use-hard-newlines Artur Malabarba
2015-08-28 21:18   ` use-hard-newlines Richard Stallman
2015-08-29 20:23 ` use-hard-newlines Philipp Stephani

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).