unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* difference between window and buffer
@ 2021-01-11 11:51 michael-franzese
  2021-01-11 12:05 ` Eduardo Ochs
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: michael-franzese @ 2021-01-11 11:51 UTC (permalink / raw)
  To: Help Gnu Emacs


I am getting confused what is the difference between window and buffer.





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

* Re: difference between window and buffer
  2021-01-11 11:51 difference between window and buffer michael-franzese
@ 2021-01-11 12:05 ` Eduardo Ochs
  2021-01-12  4:31 ` Jean Louis
  2021-01-12  4:50 ` Emanuel Berg via Users list for the GNU Emacs text editor
  2 siblings, 0 replies; 4+ messages in thread
From: Eduardo Ochs @ 2021-01-11 12:05 UTC (permalink / raw)
  To: michael-franzese; +Cc: Help Gnu Emacs

The standard explanations are here:

http://www.gnu.org/software/emacs/manual/html_node/emacs/Buffers.html
http://www.gnu.org/software/emacs/manual/html_node/emacs/Windows.html
http://www.gnu.org/software/emacs/manual/html_node/emacs/Frames.html
http://www.gnu.org/software/emacs/manual/html_node/emacs/Glossary.html

Hope this helps...
  E.

On Mon, 11 Jan 2021 at 08:54, <michael-franzese@gmx.com> wrote:
>
>
> I am getting confused what is the difference between window and buffer.
>
>
>



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

* Re: difference between window and buffer
  2021-01-11 11:51 difference between window and buffer michael-franzese
  2021-01-11 12:05 ` Eduardo Ochs
@ 2021-01-12  4:31 ` Jean Louis
  2021-01-12  4:50 ` Emanuel Berg via Users list for the GNU Emacs text editor
  2 siblings, 0 replies; 4+ messages in thread
From: Jean Louis @ 2021-01-12  4:31 UTC (permalink / raw)
  To: help-gnu-emacs

* michael-franzese@gmx.com <michael-franzese@gmx.com> [2021-01-11 14:53]:
> 
> I am getting confused what is the difference between window and buffer.

You could find it in the info documentation:

20.1 Concepts of Emacs Windows
==============================

Each Emacs window displays one Emacs buffer at any time.  A single
buffer may appear in more than one window; if it does, any changes in
its text are displayed in all the windows where it appears.  But these
windows can show different parts of the buffer, because each window has
its own value of point.

   At any time, one Emacs window is the “selected window”; the buffer
this window is displaying is the current buffer.  On graphical displays,
the point is indicated by a solid blinking cursor in the selected
window, and by a hollow box in non-selected windows.  On text terminals,
the cursor is drawn only in the selected window.  *Note Cursor
Display::.
-----------------

I will explain it how I see it:

- buffers are memory parts that Emacs as software maintains. Buffers
  usually contain text or or other pieces of information. And usually
  buffers can be edited. Some buffers cannot be edited as they may be
  read-only, some are only to display information, keep, process or
  manage information. Buffers can be many. They are not seen unless
  displayed in a window.

- window is the rectangular area that you see in Emacs. You can split
  it into multiple windows. Window may show one buffer of text or
  other information, and you could split windows to display multiple
  buffers. You can as well use multiple windows to display and use the
  same buffer.

The command M-x list-buffers should help you understand it, as then
you can see there are so many buffers even if you just have one
rectangular area in front of you displaying the current buffer or the
one buffer being used in the window.

Jean




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

* Re: difference between window and buffer
  2021-01-11 11:51 difference between window and buffer michael-franzese
  2021-01-11 12:05 ` Eduardo Ochs
  2021-01-12  4:31 ` Jean Louis
@ 2021-01-12  4:50 ` Emanuel Berg via Users list for the GNU Emacs text editor
  2 siblings, 0 replies; 4+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2021-01-12  4:50 UTC (permalink / raw)
  To: help-gnu-emacs

michael-franzese wrote:

> I am getting confused what is the difference between window
> and buffer.

Think of a buffer as a bucket which contains text, while
windows are what you see, in particular they show buffers or
parts of buffers.

A buffer is a data structure, a window is part of the
user interface.

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




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

end of thread, other threads:[~2021-01-12  4:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-11 11:51 difference between window and buffer michael-franzese
2021-01-11 12:05 ` Eduardo Ochs
2021-01-12  4:31 ` Jean Louis
2021-01-12  4:50 ` Emanuel Berg via Users list for the GNU Emacs text editor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).