all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* linefeed ^L symbol
@ 2007-12-11 16:41 Tyler Smith
  2007-12-11 19:06 ` Peter Dyballa
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Tyler Smith @ 2007-12-11 16:41 UTC (permalink / raw)
  To: help-gnu-emacs

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 \f\|[ 	]*$\|.* 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

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

* Re: linefeed ^L symbol
  2007-12-11 16:41 linefeed ^L symbol Tyler Smith
@ 2007-12-11 19:06 ` Peter Dyballa
  2007-12-11 21:09 ` Xah Lee
  2007-12-11 21:32 ` Giorgos Keramidas
  2 siblings, 0 replies; 4+ messages in thread
From: Peter Dyballa @ 2007-12-11 19:06 UTC (permalink / raw)
  To: Tyler Smith; +Cc: help-gnu-emacs


Am 11.12.2007 um 17:41 schrieb Tyler Smith:

> I notice
> now that ^L shows up here and there, presumably where a newline should
> be.

^L is a page feed/newpage. Sometimes they're there on purpose. See  
also: man ascii.

--
Greetings

   Pete

Clovis' Consideration of an Atmospheric Anomaly:
         The perversity of nature is nowhere better demonstrated
         than by the fact that, when exposed to the same atmosphere,
         bread becomes hard while crackers become soft.

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

* Re: linefeed ^L symbol
  2007-12-11 16:41 linefeed ^L symbol Tyler Smith
  2007-12-11 19:06 ` Peter Dyballa
@ 2007-12-11 21:09 ` Xah Lee
  2007-12-11 21:32 ` Giorgos Keramidas
  2 siblings, 0 replies; 4+ messages in thread
From: Xah Lee @ 2007-12-11 21:09 UTC (permalink / raw)
  To: help-gnu-emacs

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

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

* Re: linefeed ^L symbol
  2007-12-11 16:41 linefeed ^L symbol Tyler Smith
  2007-12-11 19:06 ` Peter Dyballa
  2007-12-11 21:09 ` Xah Lee
@ 2007-12-11 21:32 ` Giorgos Keramidas
  2 siblings, 0 replies; 4+ messages in thread
From: Giorgos Keramidas @ 2007-12-11 21:32 UTC (permalink / raw)
  To: help-gnu-emacs

On 11 Dec 2007 16:41:56 GMT, Tyler Smith <tyler.smith@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 \f\|[ 	]*$\|.* 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?

You are a bit confused.  ^L is not `line feed', but a different
character (with ASCII code 12 instead of 10).  It is commonly
represented by the C-like escape sequence "\f" in strings...

To see more information about the ^L character, type in a scratch buffer
the following:

    C-q C-l

Then move the point to that character and type `C-u C-x =' :)

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

end of thread, other threads:[~2007-12-11 21:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-11 16:41 linefeed ^L symbol Tyler Smith
2007-12-11 19:06 ` Peter Dyballa
2007-12-11 21:09 ` Xah Lee
2007-12-11 21:32 ` Giorgos Keramidas

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.