From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: rvclayton@acm.org (R. Clayton) Newsgroups: gmane.emacs.help Subject: Re: Newline-phobic text help. Date: Fri, 15 Jul 2016 12:22:38 -0400 Message-ID: References: <87d1mgt5tz.fsf@BanjaLuka.rclayton.net> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1468599980 4683 80.91.229.3 (15 Jul 2016 16:26:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Jul 2016 16:26:20 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: John Mastro Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 15 18:26:12 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bO5wC-00014F-Al for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Jul 2016 18:26:04 +0200 Original-Received: from localhost ([::1]:33694 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bO5wB-000491-G8 for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Jul 2016 12:26:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bO5t3-0001MN-Gw for help-gnu-emacs@gnu.org; Fri, 15 Jul 2016 12:22:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bO5sy-0002Ec-DQ for help-gnu-emacs@gnu.org; Fri, 15 Jul 2016 12:22:48 -0400 Original-Received: from mout.perfora.net ([74.208.4.194]:52405) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bO5sy-0002EV-6x for help-gnu-emacs@gnu.org; Fri, 15 Jul 2016 12:22:44 -0400 Original-Received: from BanjaLuka.rclayton.net ([74.105.65.207]) by mrelay.perfora.net (mreueus003) with ESMTPSA (Nemesis) id 0MNK2R-1bQ1h82Wi1-006x8u; Fri, 15 Jul 2016 18:22:39 +0200 Original-Received: from rclayton by BanjaLuka.rclayton.net with local (Exim 4.87) (envelope-from ) id 1bO5ss-0005ki-2R; Fri, 15 Jul 2016 12:22:38 -0400 In-reply-to: (message from John Mastro on Thu, 14 Jul 2016 18:43:41 -0700) X-Provags-ID: V03:K0:tkXRSeSe+tYiFS8EjaJT49e2EXGWK/RpxoUwm86m3hGfFokzlR0 cD3XVdUqHv5A9n0sbxnU2L491NWenBksWeTfH30Yo5OMcMgfkepRY15lW+dZm87lzvFa8Mg 3NRrbkUcEmvxaFYI279bA5K6//mBZrlLsANGfmgbM1JMqsG2ZHZJ6mMl8s+LYrOFcl/HYF6 es997Ud0AsZa8q+tEwGpA== X-UI-Out-Filterresults: notjunk:1;V01:K0:PSwpoAGFfV0=:sTGUNWhctAXcKNmT00CiYb kzAujohxYpmTGRsSVf/F0WCAxkpxHYsZliEZPlEigzOJ88M9i1Z1+2WXdZ1vGq8SEt6Ahfs8p mD5wPIij2R4JkxB8euF9liReDrv0mdrHuwscv2IFuMfPkVPKn22HJSRrfXOYFa/xBpOBaggSJ B5RA3vsPseNaN3nCcdsnR5wraKDMm8QEgTfyKGpYD8AMdjQdIdstIazNdFrmV6xH6eK8lfPDV U01213RyRnPEOeBsY6u39n6S/735BJyEkdfr6vGq6DQZ0fdQIB3bDkMv9Fk1pNeeArHtfX5Sa 3QrEOPe+43TAigXgrpZnSeSxlIYYN1K5JXW/uGGlxwMcQ2NUL5OfLsSBx70k6vxOJ1pRr337+ +vhVQGWYZK+1AtaNIQW9Eli31U2CiHh62f6z2YjcD5hG9iaBDSTLKVF4/tuYeNUSNmh3aHSa9 JTtYrYs9arPi2lnUPp+eXu/8AMJBHcDLBd1hgubYfZtU8Dzp1fj3nVTLNb/1s7jOU9UFj9JHV yP5rN2tLcTTcZ9g/DALWpurAlfy8wWCoEbN0GYKKWBHum0yw5xnhx+Sfb3fYbUBKgR20SWfSt 4dePOIf4FYH1yK0uChyqck8g5kXqe5Cl/5z9j+oxEVOYbKxFyTlzjcM34e4mMU2+fDQVGc6Hx U2EWVOpJQzXziL+j/nDeiPWqJSX719kA72Eo/49BE+nm0mJfFQRPtK87VDjn2FEM9utk= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 74.208.4.194 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110870 Archived-At: Thanks for your reply to my message. I think your scenario boils down to the fact that you don't want the intra-paragraph newlines in your buffer to end up in your web form; if I got that wrong, you can ignore what I wrote below. Nope, you got it. I don't know the answer to your question about controlling how newlines are written, but perhaps another approach would be to: You're being polite by not pointing out that using enriched-mode to do what I want is a stupid idea. Apart from the hard-soft newlines problem, there's also the header at the beginning of the file. The only trick would be identifying when you've got an "It's All Text!" buffer so you can evaluate that code. I hacked around that like so: point iat to an editor that's the shim shell script emacs --exec '(defconst its-all-text! t)' $@ and put (when (boundp? 'its-all-text!) (auto-fill-mode -1) (visual-line-mode)) in the text-mode-hook.