From f938a7e7b80eacb7c66777a20b81db87b67f3bd6 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 23 Jul 2005 17:06:41 +0000 Subject: [PATCH] (message): Don't print a message more than once, and omit line-number decoration that makes Emacs compile think that informative messages are worth worrying about. --- examples/extexi | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/examples/extexi b/examples/extexi index c0f67df2..4bd48979 100644 --- a/examples/extexi +++ b/examples/extexi @@ -123,8 +123,11 @@ function normalize(contents, i, lines, n, line, res) { function message(msg) { - # FNR starts at 0 instead of 1 for line numbers. - print "extexi: " FILENAME ":" (FNR + 1) ": " msg > "/dev/stderr"; + if (! message_printed[msg]) + { + print "extexi: " msg > "/dev/stderr"; + message_printed[msg] = 1; + } } function fatal(msg) { -- 2.45.2