On 08/24/2011 11:25 PM, Dale Sedivec wrote:
> On Thu, Aug 4, 2011 at 8:31 AM, Leif Walsh<leif.walsh@...> wrote:
>> 1. Every so often (i think it's whenever a certain part of semantic gets
>> triggered, maybe completion) I get a series of one or more "buffer has
>> running process, kill it?" questions that stop me in my tracks. I read an
>> old message in the archives that indicates it is probably semantic, but I
>> wonder if it could also be flymake or an interaction between the two. I
>> didn't find the resolution in any case, so I would like to know it if you
> Sorry for the late response, but I think I may have had a problem
> similar to this. Unfortunately it was a while back and I've since
> forgotten the exact symptoms, but I do remember being annoyed by
> prompts as you described.
This flymake thing was helpful, and I looked into flymake.el. I
think this can be quickly fixed with this patch:
=== modified file 'semantic/semantic-fw.el'
*** semantic/semantic-fw.el 2011-08-15 19:31:41 +0000
--- semantic/semantic-fw.el 2011-09-01 01:09:33 +0000
*** 444,449 ****
--- 444,452 ----
;; whine about it either.
+ ;; This forces flymake to ignore this buffer on find-file, and
+ ;; prevents flymake processes from being started.
+ (flymake-start-syntax-check-on-find-file nil)
;; Disable revision control
;; Don't prompt to insert a template if we visit an empty file
Basically, disable flymake whenever semantic temporarily loads in a file.
I've currently got this in my .emacs:
> ;; Semantic background will find files, and for e.g. my Python files
> ;; Flymake will then pylint them in the background. Except Semantic
> ;; finishes so quickly that it tries to kill the buffer before Flymake
> ;; is done with it, resulting in the user being prompted.
> (defun my:disable-flymake-in-semantic-background ()
> (defadvice semanticdb-create-table-for-file-not-in-buffer
> (around my:disable-flymake activate)
> (letf* ((my:semantic-file-name (ad-get-arg 0))
> ((symbol-function 'my:orig-flymake-can-syntax-check-file)
> (symbol-function 'flymake-can-syntax-check-file))
> ((symbol-function 'flymake-can-syntax-check-file)
> (lambda (file-name)
> (and (not (equal file-name my:semantic-file-name))
> (my:orig-flymake-can-syntax-check-file file-name)))))
> (eval-after-load 'semantic-fw
> '(eval-after-load 'flymake '(my:disable-flymake-in-semantic-background)))
> I think Semantic was going off and opening new files briefly to scan
> them or something, but Flymake would start running on them before
> Semantic could kill them. No idea if this is the same thing that was
> happening in your situation, of course.
> EMC VNX: the world's simplest storage, starting under $10K
> The only unified storage solution that offers unified management
> Up to 160% more powerful than alternatives and 25% more efficient.
> Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
> cedet-semantic mailing list