From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Skip Montanaro Newsgroups: gmane.emacs.help Subject: You learn something every day... Date: Thu, 12 Apr 2018 14:26:05 -0500 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1523561125 13790 195.159.176.226 (12 Apr 2018 19:25:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 12 Apr 2018 19:25:25 +0000 (UTC) To: Help GNU Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 12 21:25:20 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f6hqS-0003TF-EA for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Apr 2018 21:25:20 +0200 Original-Received: from localhost ([::1]:36857 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f6hsZ-0005sW-4F for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Apr 2018 15:27:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38775) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f6hrj-0005qm-A0 for help-gnu-emacs@gnu.org; Thu, 12 Apr 2018 15:26:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f6hri-00066d-C3 for help-gnu-emacs@gnu.org; Thu, 12 Apr 2018 15:26:39 -0400 Original-Received: from mail-pf0-x22c.google.com ([2607:f8b0:400e:c00::22c]:46670) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f6hri-00064n-6B for help-gnu-emacs@gnu.org; Thu, 12 Apr 2018 15:26:38 -0400 Original-Received: by mail-pf0-x22c.google.com with SMTP id h69so4537537pfe.13 for ; Thu, 12 Apr 2018 12:26:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=9Yzii4Zj5/xX3fmg5PCidYVDjfVXAwI8i6PHJXJh5NA=; b=ntwY0h1pYWuuC3hBd2J8KP3w643Tfe4qaHURoPvPUwATisDWmPyU10Xvt2Q0ZUqH+a ErQAbtJwugbB9BooOTZKcz9ZGt8MGoHMP9S5m4DlQVwlpIDMjUzFIbb+lWdhigQbwjXS 7NHTQ/Y2qN9yBlwPZf5YM5T6kmaH/BrQSP0PB7tRRsMdtsqxi4H+Qe3ec0MmF76MKuKZ CnwNfDF8bYn75CQv5MBJXWPUZ+neTdOOIGja7+Jls2x1bxLekCKqL3xE42BBNtah2Tbz RQr8h+d40aridOlB4b1UYrn8q97EBXpuiub4Rz4RTAEo5z/QONNV8s1p0KYnKZbtYTE8 dePg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=9Yzii4Zj5/xX3fmg5PCidYVDjfVXAwI8i6PHJXJh5NA=; b=FZv4ploZhTq0UtpGHFiLX834gc8ZCZnFPDngeyxsz+62IEQmGUonV3Al6uLTRaKlrc MlhZ3F5UkP/E7jMEwncaM3g9UwPchntHU7SPHfWKAtB36i9v9qV4Jv8qQ9DyNDPOvkkg zHv5uaT0Gr9zcUAIzUIvKVcLYuem6ek3hdEChLz6KyLZI/o5MBnTePyf0X0mn4IWgKPC MJOEhfCrIbf00EXrbJbxuyrxeHC8Xh6Ovq4MZuiWBnC/ptgY2LkYVdWJqjl0/8nx99PK S3F55CsQRZ1STIoJnZL5cIEwbZ//HzQj7ILL5/5HzKQ2sW+QgYBPxo9OucWZSY1vl3Im kJmw== X-Gm-Message-State: ALQs6tCU2l0gkR0i+BX4Hlbv/rlPeP+HjgPM+y45Qqcun0ECvOQb2zfl r7ZzwHHEX5gAO0E3wtuMACL8LvOxDtOFWkEm/FCveGsIPg== X-Google-Smtp-Source: AIpwx4+CIqgFSSHb238IAb9vITV+k3NdExRs6hiRPSgOps0nH1VASLjLL2+9Et979lsqh1CAY+d/7SUuBL/b6JYlyY4= X-Received: by 10.98.36.76 with SMTP id r73mr8782206pfj.108.1523561196493; Thu, 12 Apr 2018 12:26:36 -0700 (PDT) Original-Received: by 10.100.164.81 with HTTP; Thu, 12 Apr 2018 12:26:05 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::22c X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:116503 Archived-At: 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...