News for hackers. Stuff that matters.
Re:Why Emacs has buffers by layer8 on Tuesday June 07, 2022 @10:32AM (#31654914)
“Buffer” is just as bad or good a name as “file” or “document”. Files and documents can be in-memory and temporary, and the primary purpose of an Emacs buffer arguably isn’t buffering.
Re:Why Emacs has buffers by DonaldPShimoda on Tuesday June 07, 2022 @11:27AM (#31655769)
> the primary purpose of an Emacs buffer arguably isn’t buffering.

Until you save the buffer to disk, that's exactly what it's doing.

Re:Why Emacs has buffers by jacobsenscott on Tuesday June 07, 2022 @12:36PM (#31656848)
I wouldn't consider an index of my email, or an ongoing IRC conversation, or a calculator to be a file or a document. Buffer is certainly a better name. There might be an even better name, but I don't know what a better name for "visual output from anything" is. Monitor?, but that would be kind of weird because people would think of the hardware.
Re:Why Emacs has buffers by d0mine on Tuesday June 07, 2022 @02:14PM (#31658125)
Another name for the API provided by "buffet" could have been "console" (combination of monitor+keyboard: read/write API).
Re:Why Emacs has buffers by morelisp on Wednesday June 08, 2022 @02:50AM (#31664158)
A buffer in Emacs has no input or display capabilities; your "console" would be an alternative to what Emacs calls a "window" (an active buffer combined with input and display parameters).
Re:Why Emacs has buffers by randomsearch on Tuesday June 07, 2022 @10:35AM (#31654943)
In the most general sense, “Document” is a better name, because more people understand what a document is than understand what a “buffer” is.
Re:Why Emacs has buffers by mattkrause on Tuesday June 07, 2022 @10:50AM (#31655201)
Maybe not for emacs?

You can have buffers that are views of many different things: directories, shells, REPLs, email boxes, etc. People might not know what a buffer is, but I think they'd be surprised to see those "in" a document, which might be worse.

Re:Why Emacs has buffers by carl-erwin on Tuesday June 07, 2022 @12:47PM (#31657015)
"Document" can be puzzling when working on a directory.

A "buffer" is a transition zone the user can work/interact with (and sync to it's source if any)

Re:Why Emacs has buffers by astrobe_ on Tuesday June 07, 2022 @01:16PM (#31657387)
Designs these days try to hide the distinction between volatile memory ("RAM") and mass storage ("disk"), so buffers can only be more and more an alien concept for common users, if not a design defect.

However, I think it doesn't really matters, because people who choose to use Emacs (or Vim) - even among developers - are much more likely to be aware of those "low level" details or understand and adapt easily. So how they are named doesn't matters more than the odd "frame" term Emacs uses instead of "Windows".

Re:Why Emacs has buffers by chimprich on Tuesday June 07, 2022 @02:05PM (#31658030)
What happens if you open two buffers to view two parts of the same document (easy in Emacs, not possible in lots of editors)? If you switch focus or close one, what are you manipulating? Not the document.

You could choose a different name (view?) but it's a different abstraction compared to a "document".

Re:Why Emacs has buffers by trelane on Tuesday June 07, 2022 @02:23PM (#31658227)
Did you mean two windows in the same buffer? Or did you mean opening the same file in two buffers, each attached to its own window?