• Buffer stuff

    From Michael Heerdegen@21:1/5 to Dieter Britz on Thu Jun 11 11:50:12 2020
    Dieter Britz <dieterhansbritz@gmail.com> writes:

    Sometimes in an emacs session, my thick fingers type
    something wrong, and I go into this state:

    ;; This buffer is for text that is not saved, and for Lisp evaluation.
    ;; To create a file, visit it with C-x C-f and enter text in its buffer.

    How do I get out of that and back into my editing session?

    You've just switched to the *scratch* buffer. You want to switch back
    to your previous buffer.

    The easiest way is C-x b. You are prompted for a buffer name. The
    default should be the buffer you want in your case, so you can just
    confirm with RET.

    You can also use a buffer menu (C-x C-b, or M-x ibuffer).

    `winner-mode' also comes handy, then you can switch to the previous
    window config with one key, similar to `undo', when you have enabled the
    mode.

    Michael.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dieter Britz@21:1/5 to All on Thu Jun 11 09:28:48 2020
    Sometimes in an emacs session, my thick fingers type
    something wrong, and I go into this state:

    ;; This buffer is for text that is not saved, and for Lisp evaluation.
    ;; To create a file, visit it with C-x C-f and enter text in its buffer.

    How do I get out of that and back into my editing session?

    --
    Dieter Britz

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From N. Jackson@21:1/5 to Michael Heerdegen on Thu Jun 11 07:59:22 2020
    At 11:50 +0200 on Thursday 2020-06-11, Michael Heerdegen wrote:

    Dieter Britz <dieterhansbritz@gmail.com> writes:

    Sometimes in an emacs session, my thick fingers type
    something wrong, and I go into this state:

    ;; This buffer is for text that is not saved, and for Lisp evaluation.
    ;; To create a file, visit it with C-x C-f and enter text in its buffer.

    How do I get out of that and back into my editing session?

    You've just switched to the *scratch* buffer. You want to
    switch back to your previous buffer.

    The easiest way is C-x b. You are prompted for a buffer name.
    The default should be the buffer you want in your case, so you
    can just confirm with RET.

    You can also use a buffer menu (C-x C-b, or M-x ibuffer).

    `winner-mode' also comes handy, then you can switch to the
    previous window config with one key, similar to `undo', when you
    have enabled the mode.

    Also, you can use the "Buffers" menu in the menu bar. From here
    you can switch to any buffer.

    (Navigating your buffers from the menu is not as powerful as
    `switch-buffer' (C-x b) and `list-buffers' (C-x C-b) (suggested by
    Michael) but it might be easier to remember, and if you only have
    one buffer (or three, maybe, counting *scratch* and *Messages*),
    it should be sufficient.)

    Also from the "Buffers" menu in the menu bar, you can run
    `next-buffer' and `previous-buffer' to cycle through your
    buffers. By default they are bound to C-x <right> and C-x <left>.

    Perhaps you are inadvertently using C-x <right> or C-x <left> when
    you accidentally switch buffers? To find out, the next time this
    happens you can look at your most recent keystrokes ("lossage")
    with C-h l.

    N.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ralf Fassel@21:1/5 to All on Thu Jun 11 15:44:48 2020
    * Michael Heerdegen <michael_heerdegen@web.de>
    | Dieter Britz <dieterhansbritz@gmail.com> writes:

    | > Sometimes in an emacs session, my thick fingers type
    | > something wrong, and I go into this state:
    | >
    | > ;; This buffer is for text that is not saved, and for Lisp evaluation.
    | > ;; To create a file, visit it with C-x C-f and enter text in its buffer.
    | >
    | > How do I get out of that and back into my editing session?

    | You've just switched to the *scratch* buffer. You want to switch back
    | to your previous buffer.

    | The easiest way is C-x b. You are prompted for a buffer name. The
    | default should be the buffer you want in your case, so you can just
    | confirm with RET.

    M-x bury-buffer does that in one step (I have it bound on C-x y), and
    also gets the *scratch* buffer "out of the way" (which would otherwise
    be the default on the next C-x b).

    R'

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dmitry Alexandrov@21:1/5 to Ralf Fassel on Fri Jun 12 16:48:18 2020
    Ralf Fassel <ralfixx@gmx.de> wrote:
    M-x bury-buffer does that in one step (I have it bound on C-x y), and also gets the *scratch* buffer "out of the way" (which would otherwise be the default on the next C-x b).

    FWIW, I found M-x quit-window be more useful to be bound on some keyseq (namely, C-x q). In most cases itʼs the same as M-x bury-buffer, but it also closes some ‘pop-up’ windows, such as *Help*.

    --=-=-Content-Type: application/pgp-signature; name="signature.asc"

    -----BEGIN PGP SIGNATURE-----

    iIMEARYIACsWIQRSX35grYEsI2F1K7TIsPhUjufz5wUCXuOHog0cZGFnQGdudWku b3JnAAoJEMiw+FSO5/PnqWEBAPZaRjaM6dRqWrHUKyTjHFokSmKa/haenhbNSqF2 Bf8tAQCGpJ9gs0ONhmnolVQk2YAwkAS0rn6uatznBbRk7mpXAQ==JhfT
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)