make pangu-spacing ignore some term-mode and minu-buffer
update search region