all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Zachary Napier <zachary.napier.44@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>, acm@muc.de
Cc: 37137@debbugs.gnu.org
Subject: bug#37137: Setting font-lock-case-fold-search to t causes hangs on certain types in c-mode
Date: Sun, 1 Sep 2019 14:28:31 -0700	[thread overview]
Message-ID: <CAOtOpxKRdh33WFDWkNcwVm-fa_VtDuT_LAq12mhrvVwwJJaF-Q@mail.gmail.com> (raw)
In-Reply-To: <jwv7e71qfpy.fsf-monnier+emacs@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1554 bytes --]

Hello Alen and Stefan,

> May I ask why you're making this setting?

> How did you end up with that?
> font-lock-keywords-case-fold-search is not a customize variable, so you
> should not set it with custom-set-variables.

I inherited this .emacs file from someone else who had this
set. I'm guessing it used to be customizable? If it really isn't
proper to customize it this way thats fine. I can disable it with
no real issues. I can just change the regexps I am using in
font-lock-add-keywords. I assumed that it could be customized
because if I did a search the customize option for it showed up,
but maybe improperly setting it with custom-set-variables just
adds it to Customize.

On Sun, Aug 25, 2019 at 11:12 AM Stefan Monnier <monnier@iro.umontreal.ca>
wrote:

> > I have in my .emacs file only these two lines:
> >
> >     (custom-set-variables
> >      '(font-lock-keywords-case-fold-search t))
>
> How did you end up with that?
> font-lock-keywords-case-fold-search is not a customize variable, so you
> should not set it with custom-set-variables.
>
> > Then if I visit an empty or nonexistent C file and just type "LONG"
> > (in all caps or with at least one letter being capital), Emacs will
> > hang after typing the final G but before the G appears on screen
>
> Clearly not a desirable behavior, indeed, but the above var setting is
> clearly a pilot error.  Of course
>
>     (setq-default font-lock-keywords-case-fold-search t)
>
> would give the same result, but I'd also argue that it'd be
> a pilot error.
>
>
>         Stefan
>
>

[-- Attachment #2: Type: text/html, Size: 2376 bytes --]

  reply	other threads:[~2019-09-01 21:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-21 22:20 bug#37137: Setting font-lock-case-fold-search to t causes hangs on certain types in c-mode Zachary Napier
     [not found] ` <mailman.18.1566429065.1922.bug-gnu-emacs@gnu.org>
2019-08-25 10:22   ` Alan Mackenzie
2019-08-25 18:12 ` Stefan Monnier
2019-09-01 21:28   ` Zachary Napier [this message]
2019-09-02 12:50     ` Stefan Monnier
2019-09-02 19:26       ` Alan Mackenzie

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

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

  git send-email \
    --in-reply-to=CAOtOpxKRdh33WFDWkNcwVm-fa_VtDuT_LAq12mhrvVwwJJaF-Q@mail.gmail.com \
    --to=zachary.napier.44@gmail.com \
    --cc=37137@debbugs.gnu.org \
    --cc=acm@muc.de \
    --cc=monnier@iro.umontreal.ca \
    /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.
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.