unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Emanuel Berg via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: finding the hork point in ~/.emacs
Date: Thu, 27 Aug 2020 04:27:20 +0200	[thread overview]
Message-ID: <87a6ygj01j.fsf@ebih.ebihd> (raw)
In-Reply-To: 1731fb09-fa74-49a7-bd02-df34d8a00544@default

Drew Adams wrote:

> Unless you have only a few such statements, see
> what others have suggested as an alternative:
> binary search. Use `M-x comment-region' to comment
> out 1/2, then 3/4, 7/8, 15/16,... of the file, till
> you find just what caused the problem.
>
> If you use `C-u M-x comment-region' it UNcomments.

Try M-; for `comment-dwim'. It comments and then
uncomments if the region contains a comment. Also,
this preserves comments already there. So if you have

  ;; parens
  
  (require 'paren)
  (show-paren-mode t)
  (setq show-paren-delay  0)
  
  ;; fanfare / splash
  
  (setq inhibit-startup-screen t)
  (setq inhibit-startup-echo-area-message "incal")
  (setq byte-compile-verbose nil)

do M-;

  ;; ;; parens
  ;; 
  ;; (require 'paren)
  ;; (show-paren-mode t)
  ;; (setq show-paren-delay  0)
  ;; 
  ;; ;; fanfare / splash
  ;; 
  ;; (setq inhibit-startup-screen t)
  ;; (setq inhibit-startup-echo-area-message "incal")
  ;; (setq byte-compile-verbose nil)

do M-; again

  ;; parens

  (require 'paren)
  (show-paren-mode t)
  (setq show-paren-delay  0)

  ;; fanfare / splash

  (setq inhibit-startup-screen t)
  (setq inhibit-startup-echo-area-message "incal")
  (setq byte-compile-verbose nil)

M-; is also one of the most ergonomic keystrokes on
the keyboard, so make sure to use it often :)

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




  reply	other threads:[~2020-08-27  2:27 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-26 20:08 finding the hork point in ~/.emacs ken
2020-08-26 20:10 ` Yuan Fu
2020-08-26 20:12 ` Stefan Kangas
2020-08-26 22:38   ` ken
2020-08-26 23:27     ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-08-26 23:39       ` ken
2020-08-27  0:23         ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-08-27  4:08     ` Eli Zaretskii
2020-08-27 17:24       ` ken
2020-08-27 17:42         ` Eli Zaretskii
2020-08-27 22:40           ` ken
2020-08-28  6:41             ` Eli Zaretskii
2020-08-28 11:56               ` ken
2020-08-27 17:17     ` finding the hork point in ~/.emacs: timerp ken
2020-08-27 17:34       ` Noam Postavsky
2020-08-28 10:07         ` hork point in ~/.emacs: -Q and --debug outputs in terminal & *Messages* ken
2020-08-28 11:13           ` Eli Zaretskii
2020-08-28 12:08             ` ken
2020-08-28 12:39               ` Eli Zaretskii
2020-08-28 13:02                 ` ken
2020-08-28 13:19                   ` Eli Zaretskii
     [not found]                     ` <d4982eda-fd8a-c2fd-3342-b446d83218fc@mousecar.com>
2020-08-29 12:47                       ` Eli Zaretskii
2020-08-29 16:02                         ` hork point in ~/.emacs: needing emacs.pdmp & other ken
2020-08-29 18:13                           ` Eli Zaretskii
2020-08-29 18:59                             ` Yuri Khan
2020-08-29 19:21                               ` Eli Zaretskii
2020-08-29 21:49                             ` Togan Muftuoglu via Users list for the GNU Emacs text editor
2020-08-31 11:30                             ` ken
2020-08-28 13:13                 ` hork point in ~/.emacs: -Q and --debug outputs in terminal & *Messages* ken
2020-08-28 13:21                   ` Eli Zaretskii
2020-08-27 17:41       ` finding the hork point in ~/.emacs: timerp Robert Pluim
2020-08-27 17:43         ` Noam Postavsky
2020-08-28 10:50         ` ken
2020-08-28 11:17           ` Eli Zaretskii
2020-08-28 12:26             ` ken
2020-08-28 12:41               ` Eli Zaretskii
2020-08-29 12:14                 ` ken
2020-08-28 12:46             ` finding the hork point in ~/.emacs -> emacs.pdmp ken
2020-08-26 20:52 ` finding the hork point in ~/.emacs Emanuel Berg via Users list for the GNU Emacs text editor
2020-08-26 23:37   ` ken
2020-08-27  0:46     ` Eric Abrahamsen
2020-08-27  2:18       ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-08-27  0:53 ` Carson Chittom
2020-08-27  1:42   ` Drew Adams
2020-08-27  2:27     ` Emanuel Berg via Users list for the GNU Emacs text editor [this message]
2020-08-27  2:58       ` Drew Adams
2020-08-27  4:23         ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-08-27  4:57           ` Drew Adams
2020-08-27  5:06             ` Emanuel Berg via Users list for the GNU Emacs text editor
     [not found]   ` <mailman.1413.1598489645.2469.help-gnu-emacs@gnu.org>
2020-08-27  1:53     ` Ihor Radchenko
2020-08-27  2:19   ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-08-27  2:59     ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a6ygj01j.fsf@ebih.ebihd \
    --to=help-gnu-emacs@gnu.org \
    --cc=moasenwood@zoho.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).