Blame SOURCES/cscope-8-emacs-plugin-fixup-GNU-Emacs-27.1-removes-function-p.patch

37d6e3
From eaea31cb93ecddda69a373f83f632e1a450c3c90 Mon Sep 17 00:00:00 2001
37d6e3
From: Brock Zheng Techyauld Ltd <yzheng@techyauld.com>
37d6e3
Date: Tue, 25 Aug 2020 20:28:11 +0800
37d6e3
Subject: [PATCH 9/9] emacs plugin fixup: GNU/Emacs 27.1 removes function
37d6e3
 process-kill-without-query
37d6e3
37d6e3
Signed-off-by: Vladis Dronov <vdronov@redhat.com>
37d6e3
---
37d6e3
 contrib/xcscope/xcscope.el | 14 +++++++-------
37d6e3
 1 file changed, 7 insertions(+), 7 deletions(-)
37d6e3
37d6e3
diff --git a/contrib/xcscope/xcscope.el b/contrib/xcscope/xcscope.el
37d6e3
index 0e814ea..859dff5 100644
37d6e3
--- a/contrib/xcscope/xcscope.el
37d6e3
+++ b/contrib/xcscope/xcscope.el
37d6e3
@@ -180,7 +180,7 @@
37d6e3
 ;; variable is used to determine the mapping.  One use for this
37d6e3
 ;; variable is when you want to share the database file with other
37d6e3
 ;; users; in this case, the database may be located in a directory
37d6e3
-;; separate from the source files.  
37d6e3
+;; separate from the source files.
37d6e3
 ;;
37d6e3
 ;; Setting the variable, `cscope-initial-directory', is useful when a
37d6e3
 ;; search is to be expanded by specifying a cscope database directory
37d6e3
@@ -366,7 +366,7 @@
37d6e3
 ;;      disable automatic database creation, updating, and
37d6e3
 ;;      maintenance.
37d6e3
 ;;
37d6e3
-;; "cscope-display-cscope-buffer" 
37d6e3
+;; "cscope-display-cscope-buffer"
37d6e3
 ;;      If non-nil, display the *cscope* buffer after each search
37d6e3
 ;;      (default).  This variable can be set in order to reduce the
37d6e3
 ;;      number of keystrokes required to navigate through the matches.
37d6e3
@@ -1233,7 +1233,7 @@ directory should begin.")
37d6e3
 			:style toggle :selected cscope-use-relative-paths ]
37d6e3
 		      [ "No mouse prompts" (setq cscope-no-mouse-prompts
37d6e3
 						 (not cscope-no-mouse-prompts))
37d6e3
-			:style toggle :selected cscope-no-mouse-prompts ] 
37d6e3
+			:style toggle :selected cscope-no-mouse-prompts ]
37d6e3
 		      )
37d6e3
 		    ))
37d6e3
 
37d6e3
@@ -1291,7 +1291,7 @@ The text properties to be added:
37d6e3
   )
37d6e3
 
37d6e3
 
37d6e3
-(defun cscope-show-entry-internal (file line-number 
37d6e3
+(defun cscope-show-entry-internal (file line-number
37d6e3
 					&optional save-mark-p window arrow-p)
37d6e3
   "Display the buffer corresponding to FILE and LINE-NUMBER
37d6e3
 in some window.  If optional argument WINDOW is given,
37d6e3
@@ -1943,7 +1943,7 @@ using the mouse."
37d6e3
 			    cscope-directory
37d6e3
 			    (file-name-directory cscope-directory))
37d6e3
 		      ))
37d6e3
-		(setq cscope-directory 
37d6e3
+		(setq cscope-directory
37d6e3
 		      (file-name-as-directory cscope-directory))
37d6e3
 		(if (not (member cscope-directory cscope-searched-dirs))
37d6e3
 		    (progn
37d6e3
@@ -2006,7 +2006,7 @@ using the mouse."
37d6e3
 	      (set-process-filter cscope-process cscope-filter-func)
37d6e3
 	      (set-process-sentinel cscope-process cscope-sentinel-func)
37d6e3
 	      (set-marker (process-mark cscope-process) (point))
37d6e3
-	      (process-kill-without-query cscope-process)
37d6e3
+              (set-process-query-on-exit-flag cscope-process nil)
37d6e3
 	      (if cscope-running-in-xemacs
37d6e3
 		  (setq modeline-process ": Searching ..."))
37d6e3
 	      (setq buffer-read-only t)
37d6e3
@@ -2139,7 +2139,7 @@ SENTINEL-FUNC are optional process filter and sentinel, respectively."
37d6e3
 		   cscope-indexing-script args))
37d6e3
       (set-process-sentinel cscope-unix-index-process
37d6e3
 			    'cscope-unix-index-files-sentinel)
37d6e3
-      (process-kill-without-query cscope-unix-index-process)
37d6e3
+      (set-process-query-on-exit-flag cscope-unix-index-process nil)
37d6e3
       )
37d6e3
     ))
37d6e3
 
37d6e3
-- 
37d6e3
2.26.2
37d6e3