From: Hiraoka Date: Sat, 10 Dec 2022 11:01:20 +0000 (+0900) Subject: cleaning (order of functions) X-Git-Url: http://git.osdn.net/view?p=howm%2Fhowm.git;a=commitdiff_plain;h=8efbc622edd14e64a2b9b93187ab525c3f473146;hp=3771a06e7a5081b1163bf7fe0380908c0b6c700c cleaning (order of functions) --- diff --git a/howm-mode.el b/howm-mode.el index ef94d5f..ee511e3 100644 --- a/howm-mode.el +++ b/howm-mode.el @@ -446,6 +446,19 @@ key binding (howm-write-history regexp)) (funcall action regexp))) +(defun howm-search (regexp fixed-p &optional emacs-regexp filter bufname) + (if (string= regexp "") + (howm-list-all) + (howm-message-time "search" + (let* ((trio (howm-call-view-search-internal regexp fixed-p emacs-regexp)) + (kw (car trio)) + (name (or bufname (cadr trio))) + (items (cl-caddr trio))) + (when filter + (setq items (funcall filter items))) + (howm-normalize-show name items (or emacs-regexp regexp) nil nil kw) + (howm-record-view-window-configuration))))) + (defun howm-iigrep (completion-p action) (howm-with-iigrep (howm-iigrep-command-for-pattern completion-p) howm-iigrep-show-what action @@ -481,19 +494,6 @@ key binding (save-selected-window (funcall ,action pattern))))) -(defun howm-search (regexp fixed-p &optional emacs-regexp filter bufname) - (if (string= regexp "") - (howm-list-all) - (howm-message-time "search" - (let* ((trio (howm-call-view-search-internal regexp fixed-p emacs-regexp)) - (kw (car trio)) - (name (or bufname (cadr trio))) - (items (cl-caddr trio))) - (when filter - (setq items (funcall filter items))) - (howm-normalize-show name items (or emacs-regexp regexp) nil nil kw) - (howm-record-view-window-configuration))))) - (defvar *howm-view-window-configuration* nil "For internal use") (defun howm-view-window-configuration ()