all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* What's wrong with this seemingly simple function for unwrapping text?
@ 2007-01-12 11:00 Endless Story
  2007-01-12 11:28 ` Tassilo Horn
  2007-01-12 15:01 ` B. T. Raven
  0 siblings, 2 replies; 4+ messages in thread
From: Endless Story @ 2007-01-12 11:00 UTC (permalink / raw)


I like autofill mode, but it has one disadvantage: the filled lines
require unfilling if I want to copy the text over into a Word
processor, e.g. Word or OpenOffice. This can be rather tedious, so I
thought I would write a simple function and put it in my .init file to
make everything easy:

(defun unwrap-text ()
  (interactive)
  (setq fill-column 5000)
  (mark-whole-buffer)
  (fill-region)
  (setq fill-column '70)
)

When the function gets to fill-region, it bombs out, complaining about
'wrong number of variables.'  So my questions are:

1) For any lisp experts, what's going wrong here?
2) Is there some built-in way for doing what I want to do?

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

end of thread, other threads:[~2007-01-13 12:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-12 11:00 What's wrong with this seemingly simple function for unwrapping text? Endless Story
2007-01-12 11:28 ` Tassilo Horn
2007-01-12 15:01 ` B. T. Raven
2007-01-13 12:18   ` Endless Story

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.