all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* You learn something every day...
@ 2018-04-12 19:26 Skip Montanaro
  2018-04-13 14:41 ` Marcin Borkowski
  0 siblings, 1 reply; 11+ messages in thread
From: Skip Montanaro @ 2018-04-12 19:26 UTC (permalink / raw)
  To: Help GNU Emacs

I've been using some version of Emacs since 1981, when I installed
Gosling Emacs from a DECUS tape on VMS. (I had gotten used to a "full
screen" editor on the PR1ME computers we used at school, and
complained about what was effectively an ed(1)-style editor on VMS.
Not sure EDT was available yet.) So though I long ago stopped messing
with Emacs at the Lisp level other than to define some keys in my init
file, I have used many versions of Emacs, plumbed the depths of its
user interface and have tried any number of packages.

Still, there is always something new under the sun. Today I learned
about M-n and M-p in the minibuffer. I pass this along in case there
are any other Emacs users as apparently oblivious as I've been all
these years.

For the past couple days, I have been monitoring the logfile from an
uncooperative server process using occur to match and highlight
interesting bits. A simple keyboard macro looks like this:

* revisit the log file
* return to the top
* execute occur, accepting the default pattern
* scroll the *Occur* buffer to the end
* return point to the log file

This all goes swimmingly, unless I need to tweak the pattern or use
occur for some other task. The pattern grows and shrinks over time,
but basically looks like this:

subpat1 \| subpat2 \| ... \| subpatN

where N is generally five or less and the various subpatterns aren't
too complex, often just simple strings.

It was getting to be a royal PITA to have to retype the pattern from
scratch any time I wanted to alter it. As I went looking for how to
load the last regular expression into the minibuffer to edit it, I
stumbled on the Minibuf menu and its M-n and M-p bindings. I almost
*never* use the graphical menu (remember how long I've been using
Emacs, old habits die hard - I used to suppress it altogether as a
waste of screen space). I don't know what possessed me to glance at
the menu bar at just the right time, but that glance saved me a trip
down a deep, dark rabbit hole.

M-p-is-your-friend-ly, y'rs,

Skip

Yo, Adam...



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

end of thread, other threads:[~2018-04-15 21:48 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.12203.1523561201.27995.help-gnu-emacs@gnu.org>
2018-04-13  6:17 ` You learn something every day Loris Bennett
2018-04-13  7:56   ` Eli Zaretskii
     [not found]   ` <mailman.12247.1523606180.27995.help-gnu-emacs@gnu.org>
2018-04-13  8:29     ` Loris Bennett
2018-04-13  8:41       ` tomas
2018-04-13  8:58         ` Eli Zaretskii
2018-04-13  8:58       ` Eli Zaretskii
2018-04-15 17:00       ` Gene
2018-04-15 17:15         ` Eli Zaretskii
2018-04-15 21:48         ` Skip Montanaro
2018-04-12 19:26 Skip Montanaro
2018-04-13 14:41 ` Marcin Borkowski

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.