On 07/25/2013 12:11 AM, Nikolaus Rath wrote:
> "Eric M. Ludlam"<eric@...> writes:
>> On 07/16/2013 10:10 PM, Nikolaus Rath wrote:
>>> I'm a bit irritated by the behavior of semantic when editing Python
>>> code. It seems that almost every semantic parse is followed/interrupted
>>> by a message of the form "To Remove Middle Tag: xxx". My minibuffer
>>> rarely shows anything else anymore. Even more annoying, when editing
>>> docstrings the "xxx" often happens to be a complete docstring (which can
>>> be tens of lines), which causes the the minibuffer to grow by several
>>> lines for a fraction of a second before it jumps back to normal.
>>> Can someone explain to me what this message means, and (if it's
>>> harmless) is there a way to get rid of it?
>>> I'm using semantic 2.0 in Emacs 23.4.
>> There are a series of debug messages in the incremental parser. As
>> you might imagine, getting an incremental parser to work is a bit
>> tricky. Most of the messages are wrapped in a
>> semantic-edits-verbose-flag check, but that one was missed.
>> I will check in a change to fix that in the CEDET repository. It is
>> safe for you to ignore the issue, or go into semantic/edit.el, find the
>> message, and remove it.
> Will do, thanks!
> Can you tell me what's the best way to make my modified version of
> the semantic-edits-splice-remove function take precedence over the one
> from the system-wide edit.el?
> I tried to put the following in my .emacs,
> (require 'semantic)
> (defun semantic-edits-splice-remove (oldtags parent cachelist)
> ; [...]
> but this doesn't seem to actually replace the definition (presumably because
> it's an autoload function?), and I have to C-x C-e the defun again after
> I have opened a buffer that actually uses semantic...
You just need to add:
before your definition, or you can do something like:
for days when you aren't using semantic to make your startup faster.