all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
Cc: emacs-devel@gnu.org
Subject: Re: Problems stepping through PC-lint output
Date: Sat, 05 Nov 2005 09:52:55 +0200	[thread overview]
Message-ID: <87wtjnhav4.fsf@jurta.org> (raw)
In-Reply-To: <uy844yqte.fsf@raytheon.com> (Sarir Khamsi's message of "Fri, 04 Nov 2005 15:46:21 -0700")

>    MathGlobals.h:42:14: Info 773: Expression-like macro 'R2D' not parenthesized
>    MathGlobals.h:42:14: Note 1923: macro 'R2D' could become const variable --
>[...]
> the "MathGlobals.h:42:14: Info 773" line will get skipped and Emacs
> will jump to the next message (in this case, the second "Note 1923"
> about R2D).

Please see the documentation of the variable `compilation-skip-threshold'.
It has the default value 1 which means that `next-error' skips anything
less than a warning.  In your case the "MathGlobals.h:42:14: Info 773" line
is less than a warning.  It is an informational message.  If you set this
variable to 0, you can visit informational messages as well.

Also please note that when you set it to 0, you will skip the error
message on the second line "MathGlobals.h:42:14: Note 1923", but for
another reason: it is located on the same line and column as its
preceding message (i.e. both have 42:14).  The default value `t'
of another variable `compilation-skip-to-next-location' which skips
multiple error messages for the same source location, will skip it too.
You can set it to `nil' if you want.

BTW, after looking at these variables, I have some questions:

These variables are not documented in the Emacs manual.  Should they?

I don't understand why `compilation-skip-to-next-location' is not
defined with `defcustom' whereas other related variables are.  Should it?

The documentation string of `compilation-skip-threshold' says:
"The value can be either 2 -- skip anything less than error, 1 --
skip anything less than warning or 0 -- don't skip any messages."
Is it grammatically correct English?  IIUC, "either" means "one of two",
not "one of three" or more.

-- 
Juri Linkov
http://www.jurta.org/emacs/

  reply	other threads:[~2005-11-05  7:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-04 22:46 Problems stepping through PC-lint output Sarir Khamsi
2005-11-05  7:52 ` Juri Linkov [this message]
2005-11-05 23:43   ` Richard M. Stallman
2005-11-06 16:30 ` Stefan Monnier
2005-11-14 21:28   ` Sarir Khamsi
  -- strict thread matches above, loose matches on Subject: below --
2005-11-03 22:10 Sarir Khamsi
2005-11-04 11:04 ` Eli Zaretskii
     [not found] ` <mailman.13922.1131102300.20277.help-gnu-emacs@gnu.org>
2005-11-04 17:17   ` Sarir Khamsi
2005-11-22 19:59 ` Stefan Monnier

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=87wtjnhav4.fsf@jurta.org \
    --to=juri@jurta.org \
    --cc=emacs-devel@gnu.org \
    /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.