From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Re: HTML export and blogging to blogger.com Date: Wed, 17 Nov 2010 23:44:14 -0600 Message-ID: References: <83eial4my9.fsf@yahoo.it> <4CE3C0C4.8020503@christianmoe.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1696975101==" Return-path: Received: from [140.186.70.92] (port=33601 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PIxIB-0001Fg-0o for emacs-orgmode@gnu.org; Thu, 18 Nov 2010 00:44:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PIxI9-0001Bd-Ga for emacs-orgmode@gnu.org; Thu, 18 Nov 2010 00:44:18 -0500 Received: from mail-bw0-f41.google.com ([209.85.214.41]:38530) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PIxI9-0001BJ-0N for emacs-orgmode@gnu.org; Thu, 18 Nov 2010 00:44:17 -0500 Received: by bwz16 with SMTP id 16so2461538bwz.0 for ; Wed, 17 Nov 2010 21:44:15 -0800 (PST) In-Reply-To: <4CE3C0C4.8020503@christianmoe.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: mail@christianmoe.com Cc: emacs-orgmode@gnu.org --===============1696975101== Content-Type: multipart/alternative; boundary=0016e6da2e32ad204e04954d47ee --0016e6da2e32ad204e04954d47ee Content-Type: text/plain; charset=ISO-8859-1 On Wed, Nov 17, 2010 at 5:47 AM, Christian Moe wrote: > Hi, > > Samuel Wales wrote: > >> So I guess I'd like to know if: >> >> 1) anybody has a /hook in the exporter/ to unfill paragraphs, or >> > > This is what I've come up with for posting comments on WordPress blogs, > without

tags and linebreaks. It can probably be written more elegantly, > but it does what I need. Haven't tried Blogger but possibly it works for you > as well. > ,---- | code > `----- > > I didn't try yours, but I found many similar functions and sent them out last night. I'm hoping they did not get missed! It looks like many have written functions to do just what Samuel is looking for (unfill-region/paragraph). Here is the code again which worked like so: - write a bunch of stuff and highlight it - M-x unfill-region (command provided by the code below) - C-u C-c C-e R - M-< C-space M-> M-w - Paste in blogger box >From http://blog.bookworm.at/2007/08/emacs-unfill-region.html: > ,----- > | (defun unfill-region (begin end) > | "Remove all linebreaks in a region but leave paragraphs, indented text > | (quotes, code) and lines starting with an asterisk (lists) intact" > | (interactive "r") > | (replace-regexp "\\([^\n]\\)\n\\([^ *\n]\\)" "\\1 \\2" nil begin end)) > `----- > And several links with additional very similar looking code: - http://blog.chrislowis.co.uk/2010/03/03/unfill-region-emacs.html - http://xahlee.org/emacs/emacs_unfill-paragraph.html - http://nolan.eakins.net/node/208 John > Yours, > Christian > > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > --0016e6da2e32ad204e04954d47ee Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Wed, Nov 17, 2010 at 5:47 AM, Christian Moe <= span dir=3D"ltr"><mail@christianmoe.com> wrote:
Hi,

Samuel Wales wrote:
So I guess I'd like to know if:

=A0 1) anybody has a /hook in the exporter/ to unfill paragraphs, or

This is what I've come up with for posting comments on WordPress blogs,= without <p> tags and linebreaks. It can probably be written more ele= gantly, but it does what I need. Haven't tried Blogger but possibly it = works for you as well.
,----=A0
| code
`-----

I didn't try yours, but I found many = similar functions and sent them out last night. I'm hoping they did not= get missed! It looks like many have written functions to do just what Samu= el is looking for (unfill-region/paragraph). Here is the code again which w= orked like so:

- write a bunch of stuff and highlight = it
- M-x unfill-region (command provided by the code below)
- C-u C-c C-e R
- M-< C-space M-> M-w
- Past= e in blogger box

,-----
=
| (defun unfill-region (begin end)
| "Remove all linebreaks in a region but leave paragraphs, indented te= xt
| (quotes, code) and lines star= ting with an asterisk (lists) intact"
| (interactive "r")
| (r= eplace-regexp "\\([^\n]\\)\n\\([^ *\n]\\)" "\\1 \\2" ni= l begin end))
`-----


John
=A0
Yours,
Christian



_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gn= u.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

--0016e6da2e32ad204e04954d47ee-- --===============1696975101== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1696975101==--