From: Jason Merrill <jason@redhat.com>
To: "Manuel López-Ibáñez" <lopezibanez@gmail.com>
Cc: Gcc Patch List <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH] Caret diagnostics
Date: Tue, 10 Apr 2012 19:32:00 -0000 [thread overview]
Message-ID: <4F848A9F.8070905@redhat.com> (raw)
In-Reply-To: <CAESRpQDN2UYP3AEG_pHVm32pYtJ8xtFjM3GnSUvdscqMSm-iSA@mail.gmail.com>
On 04/10/2012 12:46 PM, Manuel López-Ibáñez wrote:
> + max_width = context->caret_max_width;
> + if (max_width<= 0)
> + max_width = INT_MAX;
I don't think we need the test here; diagnostic_set_caret_max_width
should make sure caret_max_width is set sensibly. Otherwise, yes, thanks.
On 04/10/2012 02:52 PM, Gabriel Dos Reis wrote:
> There is a novelty in this new version that I don't think we discussed
> before: automatic expansion of tabs to 8 hard space characters. That
> number should not be hardcoded as there is no reason to believe a tab
> character always expands to 8 space characters. You should check
> the environment first; if not present the default expansion number should
> be a symbolic constant as opposed to a magic number sprinkled all over the
> places.
Hmm. I don't know if there's any reliable way to query tab stops; the
"it" termcap/terminfo capability tells you what it was originally
(presumably 8), but it might have changed.
Jason
next prev parent reply other threads:[~2012-04-10 19:32 UTC|newest]
Thread overview: 66+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-06 8:12 Manuel López-Ibáñez
2012-04-06 13:42 ` Mike Stump
2012-04-06 14:12 ` Manuel López-Ibáñez
2012-04-06 22:04 ` Jason Merrill
2012-04-06 22:31 ` Manuel López-Ibáñez
2012-04-07 2:31 ` Jason Merrill
2012-04-07 22:29 ` Manuel López-Ibáñez
2012-04-08 4:09 ` Jason Merrill
2012-04-08 12:07 ` Manuel López-Ibáñez
2012-04-08 15:14 ` Gabriel Dos Reis
2012-04-08 16:10 ` Manuel López-Ibáñez
2012-04-08 16:34 ` Gabriel Dos Reis
2012-04-08 16:14 ` Manuel López-Ibáñez
2012-04-08 16:35 ` Gabriel Dos Reis
2012-04-08 16:53 ` Manuel López-Ibáñez
2012-04-08 17:07 ` Gabriel Dos Reis
2012-04-09 0:48 ` Jason Merrill
2012-04-09 20:02 ` Manuel López-Ibáñez
2012-04-09 22:28 ` Jason Merrill
2012-04-10 16:46 ` Manuel López-Ibáñez
2012-04-10 18:52 ` Gabriel Dos Reis
2012-04-10 19:38 ` Manuel López-Ibáñez
2012-04-11 4:04 ` Gabriel Dos Reis
2012-04-12 16:53 ` Tom Tromey
2012-04-12 17:08 ` Gabriel Dos Reis
2012-04-10 22:24 ` Mike Stump
2012-04-10 23:37 ` Gabriel Dos Reis
2012-04-11 0:55 ` Mike Stump
2012-04-11 3:59 ` Gabriel Dos Reis
2012-04-10 19:32 ` Jason Merrill [this message]
2012-04-10 19:42 ` Manuel López-Ibáñez
2012-04-10 20:33 ` Manuel López-Ibáñez
2012-04-11 1:57 ` Jason Merrill
2012-04-11 4:04 ` Gabriel Dos Reis
2012-04-11 16:40 ` H.J. Lu
2012-04-11 18:15 ` Manuel López-Ibáñez
2012-04-11 18:19 ` Andrew Pinski
2012-04-11 20:12 ` Mike Stump
2012-04-11 20:29 ` Manuel López-Ibáñez
-- strict thread matches above, loose matches on Subject: below --
2008-08-14 12:12 [PATCH] caret diagnostics (was: broken FE diagnostics wrt complex expressions) Manuel López-Ibáñez
2008-08-14 12:41 ` Joseph S. Myers
2008-08-14 12:57 ` Manuel López-Ibáñez
2008-08-14 13:54 ` Joseph S. Myers
2008-08-14 14:07 ` Manuel López-Ibáñez
2008-08-14 14:41 ` Joseph S. Myers
2008-08-14 15:03 ` Manuel López-Ibáñez
2008-08-14 15:08 ` [PATCH] caret diagnostics Robert Dewar
2008-08-14 15:22 ` Joseph S. Myers
2008-08-14 15:43 ` Robert Dewar
2008-08-14 15:48 ` Manuel López-Ibáñez
2008-08-14 16:06 ` Robert Dewar
2008-08-14 16:18 ` Joseph S. Myers
2008-08-14 17:22 ` Chris Lattner
2008-08-16 13:30 ` Paolo Bonzini
2008-08-16 17:19 ` Joseph S. Myers
2008-08-16 18:59 ` Paolo Bonzini
2008-08-14 16:18 ` Manuel López-Ibáñez
2008-08-14 18:49 ` Mark Mitchell
2008-08-14 19:10 ` Manuel López-Ibáñez
2008-08-14 19:28 ` Mark Mitchell
2008-08-14 15:17 ` [PATCH] caret diagnostics (was: broken FE diagnostics wrt complex expressions) Joseph S. Myers
2008-08-14 17:18 ` [PATCH] caret diagnostics Tom Tromey
2008-08-14 17:21 ` Ralf Wildenhues
2008-08-14 17:34 ` Joseph S. Myers
2008-08-14 18:20 ` Tom Tromey
2008-08-14 18:34 ` Ralf Wildenhues
2008-08-14 19:02 ` Robert Dewar
2008-08-14 17:33 ` Joseph S. Myers
2008-08-14 17:51 ` Joseph S. Myers
2008-08-14 18:52 ` Mark Mitchell
2008-08-16 10:09 ` Gabriel Dos Reis
2008-08-16 13:00 ` Robert Dewar
2008-08-14 15:18 ` [PATCH] caret diagnostics (was: broken FE diagnostics wrt complex expressions) Aldy Hernandez
2008-08-14 15:29 ` Manuel López-Ibáñez
2008-08-14 17:23 ` Aldy Hernandez
2008-08-16 7:45 ` Gabriel Dos Reis
2008-08-16 13:12 ` [PATCH] caret diagnostics Robert Dewar
2008-08-14 18:00 ` Tom Tromey
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=4F848A9F.8070905@redhat.com \
--to=jason@redhat.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=lopezibanez@gmail.com \
/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).