Emacs fill-paragraph Problem
What is Emacs Fill Commands
Emacs has a command fill-paragraph
【Alt+q】 that does hard-wrap of current paragraph (it inserts a newline char at every ~70 chars.)
Emacs also has fill-region
, which acts on a text selection.
However, there are some usability problems with these commands.
This page discuss the problems and fixes.
Problems of Emacs Fill Commands
It is inconvenient to “unfill” a paragraph or region.
One frequently asked question is how to “unfill” — do inverse of fill-paragraph
.
Technically, this means replacing newline char by space.
Emacs does not have a built-in command for this.
The typical answer to this question, is to set the cut-width to a huge number (e.g. set fill-column to 10001000), then Alt+x fill-paragraph
, then set fill-column back to previous value.
If you need to reformat several paragraphs, Alt+x fill-region
.
There is no keyboard shortcut.
Solution: Command that Auto Toggle Fill or Unfill, on Region or Current Paragraph
Emacs Modernization
- Emacs Modernization: Simple Changes Emacs Should Adopt
- Why Emacs Keys are Painful
- Emacs: Problems of the Scratch Buffer
- Emacs Modernization: Meta Key Notation
- Emacs Menu Usability Problem
- Emacs Mode Line Problem
- Emacs cua-mode Problems
- Emacs: Inconsistency of Search Features
- Problems of grep in Emacs
- Emacs: Usability Problems of Mode Documentation
- Problems of Emacs Manual
- Emacs Manual Sucks by Examples
- Emacs: kill-buffer Induces Buffer Accumulation
- Emacs Spell Checker Problems
- Emacs: Form Feed ^L Problem
- Emacs: Single Key to Delete Whole Line
- Emacs HTML Mode Sucks
- Emacs Does Not Support Viewing Images Files In Windows
- Emacs Should Adopt HTML as Texinfo Replacement
- Emacs Should Support HTML Mail
- Problems of Emacs's “man” Command
- Emacs Lisp Mode Syntax Coloring Problem
- Emacs AutoHotkey Mode Problems
- Elisp: Ban Syntax Table
- Emacs: Make elisp-index-search use Current Symbol
- Emacs GNU Texinfo Problems; Invalid HTML
- A Record of Frustration in IT Industry; Disappearing FSF URLs, 2006
- Emacs Manual Node Persistency Issues
- Emacs: dired-do-query-replace-regex Replace ALL (fixed)
- Problems of Emacs Supporting Obsolete Systems
- Elisp: Function to Copy/Delete a Dir Recursively (fixed)
- Thoughts on Common Lisp Scheme Lisp Based Emacs
- Text Editors Popularity and Market Research
- Text Editor's Cursor Movement Behavior (emacs, vi, Notepad++)
- Emacs: Usability Problems of Letter-Case Changing Commands
- Emacs Select Word Command Problem
- Emacs: Search Current Word 🚀
- Emacs fill-paragraph Problem