[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacsweblogs] Weblogger bugs (WordPress, Emacs 22, Linux)

From: Mark A. Hershberger
Subject: Re: [Emacsweblogs] Weblogger bugs (WordPress, Emacs 22, Linux)
Date: Mon, 28 Jun 2010 19:06:10 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux)

> I'm enjoying weblogger.el, which I'm using with WordPress, and would be
> happy to volunteer with testing---I think a few tweaks could be easily
> made (like supporting tags and categories) that would make it much more
> practical to use.

Excellent.  I'd love to add these features which (as you can tell from
my tardy reply) might take a while.

I'm in the middle of making some significant changes to mediawiki.el so
I can't say when I'll finish that and have time to focus on the
necessary changes to weblogger.el.

> The other bug is that the body text is sent to Wordpress with soft
> linefeeds. This doesn't work. What happens is that if you have Emacs set
> up with a normal fill column (like 70), and auto-fill-mode as I imagine
> most people do, your post buffer will look nice in Emacs, but when it
> appears on WordPress the end of lines for each line will have been
> treated like a hard carriage return, so the wordwrap will be off and
> you'll have to go in (with the WordPress editor) and manually take out
> every newline. The post text needs to be sent without any word wrap or
> fill at all.

I'm familiar with this sort of problem.

> I saw this problem mentioned on
> http://ciju.wordpress.com/2008/06/06/twiddling-with-webloggerel-emacs-wordpress/
> but I tried applying his hooks and they didn't work. (What he does is
> turn on longlines-mode before editing an entry, and then turns it off
> before publishing it.)

That is what I would recommend.

> How would you remove all soft newlines from the text of a buffer
> before publishing it? That's the way to do it. I tried setting the fill
> column to a value like 0, 99999, -1, but these did not work.

You can do it manually: turn on longlines-mode when you start editing
and turn off auto-fill-mode.

    M-x auto-fill-mode RET
    M-x longlines-mode RET

and then, before posting it, turn off long lines mode:

    M-x longlines-mode RET

Since this is a common complaint, it'd be good to automate this and
document what needs to be done.



Embrace Ignorance.  Just don't get too attached.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]