Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Enforced wordwrap

1 view
Skip to first unread message

Eddie

unread,
Aug 19, 2008, 9:09:28 PM8/19/08
to help-gn...@gnu.org
I recently started using Emacs 22.1.1 on Mandriva 2008.1. To my dismay,
I find that this version enforces a hard line break on or before 80
characters in a line.

I've tried adding lines such as

(add-hook 'text-mode-hook 'turn-off-auto-fill)

to my .emacs, and also tried

(setq default-major-mode 'fundamental mode)

Neither work.

A lot of my usage is through a Firefox add-on called It's All Text!,
which links a Web text box to the editor of your choice. I fill in Web
forms a couple of hours a day for work; It's All Text! opens a new
iteration of Emacs in every form, and to have to reset the behavior for
every form would be a time sink.

Note: This appears to be something in the Mandriva package. I've been
using Emacs 21 and 22 on an older Ubuntu, and Emacs 23.1 on Pardus, and
there's no enforced wordwrap on any of them. I've asked this same
question on the Mandriva forum, hoping I can catch the eye of some
package developer. But I'd also like to ask here, and I welcome hints as
to where to look in other configuration files to try to find what is
causing this.

Kevin Rodgers

unread,
Aug 20, 2008, 12:27:48 AM8/20/08
to help-gn...@gnu.org

I would try `M-x find-library RET default' and `M-x find-library RET
site-start'.

What does `C-h m' show in the buffer edited via the Firefox add-on?

--
Kevin Rodgers
Denver, Colorado, USA

Nikolaj Schumacher

unread,
Aug 20, 2008, 5:48:20 AM8/20/08
to Eddie, help-gn...@gnu.org
Eddie <emac...@flyingturkeys.org> wrote:

> (add-hook 'text-mode-hook 'turn-off-auto-fill)
>
> to my .emacs, and also tried

Does manually turning it off with M-x auto-fill-mode fix the problem?
(To verify that `auto-fill-mode' is indeed causing this.)

> (setq default-major-mode 'fundamental mode)

That doesn't change anything, because auto-mode-alist will override the
major-mode based on the .txt extension "It's All Text" uses.

> It's All Text! opens a new iteration of Emacs in every form, and to
> have to reset the behavior for every form would be a time sink.

You can probably use emacsclient to re-use the same instance, if you're
interested. (I use /usr/bin/open on a Mac.)

> Note: This appears to be something in the Mandriva package.

Could you check the value of text-mode-hook with
C-h v text-mode-hook

Also you can try starting Emacs with --no-site-file.


regards,
Nikolaj Schumacher


Eddie

unread,
Aug 20, 2008, 4:43:44 PM8/20/08
to help-gn...@gnu.org
On Tue, 2008-08-19 at 22:27 -0600, Kevin Rodgers wrote:

> I would try `M-x find-library RET default' and `M-x find-library RET
> site-start'.

There is no default library, but the second string brought me to
something called /usr/share/emacs/22.1/lisp/site-start.el. (Someday I'll
understand the Linux directory structure. Maybe.)

I was able to travel to that directory, "sudo emacs site-start.el", and
comment out a line in that file that turned wordwrap on. My text-mode is
now working as expected. Thanks to both you and Nikolaj for a lot of
interesting and useful information.

0 new messages