[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] trunk r114523: * progmodes/octave.el (inferior-octave-
From: |
Stefan Monnier |
Subject: |
Re: [Emacs-diffs] trunk r114523: * progmodes/octave.el (inferior-octave-mode): Call |
Date: |
Fri, 04 Oct 2013 13:53:10 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
> + * progmodes/octave.el (inferior-octave-mode): Call
> + compilation-forget-errors.
This call doesn't seem very useful: at that point in time, there aren't
any errors parsed yet anyway.
The need for compilation-forget-errors is because in a comint-buffer,
you can have error "foo:3:Syntax error" appear many times following
different commands loading different versions of "foo" (e.g. because it
was edited in the mean time). So you need to call
compilation-forget-errors whenever you know that the underlying process
will look at "files that have been modified". It's often difficult to
know "the right place" where it should be called, but typically
<foo>-send-region, and related functions are good spots.
Stefan
- Re: [Emacs-diffs] trunk r114523: * progmodes/octave.el (inferior-octave-mode): Call,
Stefan Monnier <=