all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Xah Lee <xah@xahlee.org>
To: help-gnu-emacs@gnu.org
Subject: Re: linefeed ^L symbol
Date: Tue, 11 Dec 2007 13:09:12 -0800 (PST)	[thread overview]
Message-ID: <50896d4b-9f5a-4368-bfed-f5f7296d11ef@t1g2000pra.googlegroups.com> (raw)
In-Reply-To: slrnflttgf.fru.tyler.smith@blackbart.sedgenet

Tyler Smith:
<<I've just reinstalled Emacs 22.1 from source on Debian Lenny. I
notice now that ^L shows up here and there, presumably where a newline
should be.>>

The "^L" char is form feed (ascii 12). It is not the unix newline char
(which is line feed, ^J, ascii 10).

During the 1980s or early 1990s, the form feed char basically
functions as page break marker. It is still what emacs uses it for.

However, after 2 decades of computing industry changes, using the form
feed char for page break in source code is no longer widely practiced.
Emacs still uses it so because emacs did not take particular effort to
modernize. (modernize here means to adopt changing situation (usually
for the better), as opposed to following fashions and trends)

In emacs, you can jump to next ^L by pressing "Ctrl+x ]" and previosu
by "Ctrl+x [". By tradition, elisp code still uses it to indicate a
code page break. (not sure if this is mentioned or recommended in
emacs coding style guide, or how frequent it is used in existing elisp
files)

For more detail on this, please see:

* Why Emacs's Keyboard Shortcuts Are Painful
http://xahlee.org/emacs/emacs_kb_shortcuts_pain.html

* The Confusion of Emacs's Keystroke Representation
http://xahlee.org/emacs/keystroke_rep.html

  Xah
  xah@xahlee.org
\xAD\xF4 http://xahlee.org/

On Dec 11, 8:41 am, Tyler Smith <tyler.sm...@mail.mcgill.ca> wrote:
> Hi,
>
> I've just reinstalled Emacs 22.1 from source on Debian Lenny. I notice
> now that ^L shows up here and there, presumably where a newline should
> be. Does this mean I've messed something up something in the config? I
> shouldn't be seeing escape characters like this should I?
>
> Examples:
> From the Paragraph Start customize variable window:
> Paragraph Start: Hide Value  \|[        ]*$\|.* wrote:$\|.* wrote:$
>
> The actual value of this variable is:
> "\f\\|[    ]*$\\|.* wrote:$\\|.* wrote:$\\|.* wrote:$\\|.* wrote:$"
>
> I'm also confused as to why I should have \f in there to begin with,
> since I think Unix-like systems use \n instead?
>
> Thanks for any clarification,
>
> Tyler

  parent reply	other threads:[~2007-12-11 21:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-11 16:41 linefeed ^L symbol Tyler Smith
2007-12-11 19:06 ` Peter Dyballa
2007-12-11 21:09 ` Xah Lee [this message]
2007-12-11 21:32 ` Giorgos Keramidas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50896d4b-9f5a-4368-bfed-f5f7296d11ef@t1g2000pra.googlegroups.com \
    --to=xah@xahlee.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.