No need to reset process-query-on-exit-flag

The code for resetting process-query-on-exit-flag is not executed and
it works fine without it.  I think this flag was reset in the old
version because the buffer is killed in the query callback.
This commit is contained in:
Takafumi Arakaki 2012-06-12 20:40:23 +02:00
parent d32f7e5a75
commit 255b3a7696

View file

@ -168,11 +168,6 @@ is killed immediately after the execution of this function.
(ein:log 'debug "(buffer-string) =\n%s" (buffer-string))
(ein:query-ajax-cancel-timer)
;; It seems that `delete-process' resets `process-query-on-exit-flag'.
;; So, setting this flag must be placed here, just before killing buffer.
(ein:aif (get-buffer-process (current-buffer))
(progn (set-process-query-on-exit-flag it nil)
(ein:log 'debug "(set-process-query-on-exit-flag %S nil)" it)))
(let* ((buffer (current-buffer)) ; `parser' could change buffer...
(response-status url-http-response-status)
(status-code-callback (cdr (assq response-status status-code)))