aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDima Kogan2017-01-31 07:46:10 -0800
committerDima Kogan2017-01-31 07:49:37 -0800
commitfbf74c158ea81ff6349f68760f8861c1c497c989 (patch)
tree5efc784d12ec1b735fcd720bd488f8325fa5d849
parentf3c77d11af65f3b319b1784b4c3cf08c51aa7997 (diff)
downloademacs-fbf74c158ea81ff6349f68760f8861c1c497c989.tar.gz
emacs-fbf74c158ea81ff6349f68760f8861c1c497c989.zip
Revert two accidental commits
This reverts commit f3c77d11af65f3b319b1784b4c3cf08c51aa7997. This reverts commit 3c941b900007c9e79c00af0f21d88154f6d8af1a.
-rw-r--r--lisp/comint.el11
-rw-r--r--lisp/emacs-lisp/debug.el54
-rw-r--r--lisp/shell.el2
-rw-r--r--src/data.c50
-rw-r--r--src/fns.c4
5 files changed, 5 insertions, 116 deletions
diff --git a/lisp/comint.el b/lisp/comint.el
index c82c3d09df3..830f4ca88f9 100644
--- a/lisp/comint.el
+++ b/lisp/comint.el
@@ -1879,7 +1879,6 @@ Similarly for Soar, Scheme, etc."
1879 (let ((echo-len (- comint-last-input-end 1879 (let ((echo-len (- comint-last-input-end
1880 comint-last-input-start))) 1880 comint-last-input-start)))
1881 ;; Wait for all input to be echoed: 1881 ;; Wait for all input to be echoed:
1882
1883 (while (and (> (+ comint-last-input-end echo-len) 1882 (while (and (> (+ comint-last-input-end echo-len)
1884 (point-max)) 1883 (point-max))
1885 (accept-process-output proc) 1884 (accept-process-output proc)
@@ -1891,7 +1890,6 @@ Similarly for Soar, Scheme, etc."
1891 ;; (+ comint-last-input-start 1890 ;; (+ comint-last-input-start
1892 ;; (- (point-max) comint-last-input-end)) 1891 ;; (- (point-max) comint-last-input-end))
1893 nil comint-last-input-end (point-max))))) 1892 nil comint-last-input-end (point-max)))))
1894
1895 (if (and 1893 (if (and
1896 (<= (+ comint-last-input-end echo-len) 1894 (<= (+ comint-last-input-end echo-len)
1897 (point-max)) 1895 (point-max))
@@ -1903,7 +1901,6 @@ Similarly for Soar, Scheme, etc."
1903 ;; Certain parts of the text to be deleted may have 1901 ;; Certain parts of the text to be deleted may have
1904 ;; been mistaken for prompts. We have to prevent 1902 ;; been mistaken for prompts. We have to prevent
1905 ;; problems when `comint-prompt-read-only' is non-nil. 1903 ;; problems when `comint-prompt-read-only' is non-nil.
1906
1907 (let ((inhibit-read-only t)) 1904 (let ((inhibit-read-only t))
1908 (delete-region comint-last-input-end 1905 (delete-region comint-last-input-end
1909 (+ comint-last-input-end echo-len)) 1906 (+ comint-last-input-end echo-len))
@@ -1912,7 +1909,6 @@ Similarly for Soar, Scheme, etc."
1912 (goto-char comint-last-input-end) 1909 (goto-char comint-last-input-end)
1913 (comint-update-fence))))))) 1910 (comint-update-fence)))))))
1914 1911
1915
1916 ;; This used to call comint-output-filter-functions, 1912 ;; This used to call comint-output-filter-functions,
1917 ;; but that scrolled the buffer in undesirable ways. 1913 ;; but that scrolled the buffer in undesirable ways.
1918 (run-hook-with-args 'comint-output-filter-functions ""))))) 1914 (run-hook-with-args 'comint-output-filter-functions "")))))
@@ -2243,7 +2239,10 @@ the current line with any initial string matching the regexp
2243 (null (get-char-property (setq bof (field-beginning)) 'field))) 2239 (null (get-char-property (setq bof (field-beginning)) 'field)))
2244 (field-string-no-properties bof) 2240 (field-string-no-properties bof)
2245 (comint-bol) 2241 (comint-bol)
2246 (buffer-substring-no-properties (point) (line-end-position))))) 2242 (buffer-substring-no-properties (point)
2243 (if comint-use-prompt-regexp
2244 (line-end-position)
2245 (field-end))))))
2247 2246
2248(defun comint-copy-old-input () 2247(defun comint-copy-old-input ()
2249 "Insert after prompt old input at point as new input to be edited. 2248 "Insert after prompt old input at point as new input to be edited.
@@ -2670,7 +2669,7 @@ This command is like `M-.' in bash."
2670 (set-marker comint-insert-previous-argument-last-start-pos (point)) 2669 (set-marker comint-insert-previous-argument-last-start-pos (point))
2671 ;; Insert the argument. 2670 ;; Insert the argument.
2672 (let ((input-string (comint-previous-input-string 0))) 2671 (let ((input-string (comint-previous-input-string 0)))
2673 (when (string-match "[ \t\n]*&[ \t\n]*$" input-string) 2672 (when (string-match "[ \t\n]*&" input-string)
2674 ;; strip terminating '&' 2673 ;; strip terminating '&'
2675 (setq input-string (substring input-string 0 (match-beginning 0)))) 2674 (setq input-string (substring input-string 0 (match-beginning 0))))
2676 (insert (comint-arguments input-string index index))) 2675 (insert (comint-arguments input-string index index)))
diff --git a/lisp/emacs-lisp/debug.el b/lisp/emacs-lisp/debug.el
index faa323f733a..cb77148c285 100644
--- a/lisp/emacs-lisp/debug.el
+++ b/lisp/emacs-lisp/debug.el
@@ -816,60 +816,6 @@ Redefining FUNCTION also cancels it."
816 '((depth . -100))) 816 '((depth . -100)))
817 function) 817 function)
818 818
819;;;###autoload
820;; (defun debug-on-set (symbol)
821;; "Request FUNCTION to invoke debugger each time it is called.
822
823;; When called interactively, prompt for FUNCTION in the minibuffer.
824
825;; This works by modifying the definition of FUNCTION. If you tell the
826;; debugger to continue, FUNCTION's execution proceeds. If FUNCTION is a
827;; normal function or a macro written in Lisp, you can also step through
828;; its execution. FUNCTION can also be a primitive that is not a special
829;; form, in which case stepping is not possible. Break-on-entry for
830;; primitive functions only works when that function is called from Lisp.
831
832;; Use \\[cancel-debug-on-entry] to cancel the effect of this command.
833;; Redefining FUNCTION also cancels it."
834;; (interactive
835;; (let ((v (variable-at-point))
836;; (enable-recursive-minibuffers t)
837;; (orig-buffer (current-buffer))
838;; val)
839;; (setq val (completing-read
840;; (if (symbolp v)
841;; (format
842;; "Debug on set to symbol (default %s): " v)
843;; "Debug on set to symbol: ")
844;; #'help--symbol-completion-table
845;; (lambda (vv)
846;; ;; In case the variable only exists in the buffer
847;; ;; the command we switch back to that buffer before
848;; ;; we examine the variable.
849;; (with-current-buffer orig-buffer
850;; (or (get vv 'variable-documentation)
851;; (and (boundp vv) (not (keywordp vv))))))
852;; t nil nil
853;; (if (symbolp v) (symbol-name v))))
854;; (list (if (equal val "")
855;; v (intern val)))))
856
857
858
859;; (interactive
860;; (let* ((var-default (variable-at-point))
861;; (var (completing-read
862;; (if var-default
863;; (format "Debug on set to symbol (default %s): " var-default)
864;; "Debug on set to symbol: ")
865;; nil
866;; #'boundp
867;; t nil nil (symbol-name var-default))))
868;; (list (if (equal var "") var-default (intern var)))))
869;; (advice-add function :before #'debug--implement-debug-on-entry
870;; '((depth . -100)))
871;; function)
872
873(defun debug--function-list () 819(defun debug--function-list ()
874 "List of functions currently set for debug on entry." 820 "List of functions currently set for debug on entry."
875 (let ((funs '())) 821 (let ((funs '()))
diff --git a/lisp/shell.el b/lisp/shell.el
index c7ba64ecf4e..c8a8555d632 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -1000,8 +1000,6 @@ command again."
1000 (let ((pt (point)) 1000 (let ((pt (point))
1001 (regexp 1001 (regexp
1002 (concat 1002 (concat
1003 ;; comint-process-echoes is the thing that breaks the
1004 ;; throbber
1005 (if comint-process-echoes 1003 (if comint-process-echoes
1006 ;; Skip command echo if the process echoes 1004 ;; Skip command echo if the process echoes
1007 (concat "\\(" (regexp-quote shell-dirstack-query) "\n\\)") 1005 (concat "\\(" (regexp-quote shell-dirstack-query) "\n\\)")
diff --git a/src/data.c b/src/data.c
index 26ff9948828..8e07bf01b44 100644
--- a/src/data.c
+++ b/src/data.c
@@ -1304,56 +1304,6 @@ set_internal (Lisp_Object symbol, Lisp_Object newval, Lisp_Object where,
1304 default: emacs_abort (); 1304 default: emacs_abort ();
1305 } 1305 }
1306 1306
1307
1308 const char* symname = SDATA(sym->name);
1309
1310 if( EQ(Vwatch_object, symbol) )
1311 {
1312 static int nest_level = 0;
1313 if(nest_level++ == 0)
1314 {
1315 switch(sym->redirect)
1316 {
1317 case SYMBOL_PLAINVAL:
1318 {
1319 AUTO_STRING (format, "Setting symbol '%s'; redirect: SYMBOL_PLAINVAL");
1320 CALLN (Fmessage, format, SYMBOL_NAME (symbol));
1321 break;
1322 }
1323 case SYMBOL_VARALIAS:
1324 {
1325 AUTO_STRING (format, "Setting symbol '%s'; redirect: SYMBOL_VARALIAS");
1326 CALLN (Fmessage, format, SYMBOL_NAME (symbol));
1327 break;
1328 }
1329 case SYMBOL_LOCALIZED:
1330 {
1331 AUTO_STRING (format, "Setting symbol '%s'; redirect: SYMBOL_LOCALIZED");
1332 CALLN (Fmessage, format, SYMBOL_NAME (symbol));
1333 break;
1334 }
1335 case SYMBOL_FORWARDED:
1336 {
1337 AUTO_STRING (format, "Setting symbol '%s'; redirect: SYMBOL_FORWARDED");
1338 CALLN (Fmessage, format, SYMBOL_NAME (symbol));
1339 break;
1340 }
1341
1342 default:
1343 {
1344 AUTO_STRING (format, "Setting symbol '%s'; redirect: UNKNOWN");
1345 CALLN (Fmessage, format, SYMBOL_NAME (symbol));
1346 break;
1347 }
1348 }
1349 }
1350 nest_level--;
1351 }
1352
1353
1354
1355
1356
1357 start: 1307 start:
1358 switch (sym->redirect) 1308 switch (sym->redirect)
1359 { 1309 {
diff --git a/src/fns.c b/src/fns.c
index 9eabc1414f4..136a2198c2c 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -5120,10 +5120,6 @@ On some platforms, file selection dialogs are also enabled if this is
5120non-nil. */); 5120non-nil. */);
5121 use_dialog_box = 1; 5121 use_dialog_box = 1;
5122 5122
5123 DEFVAR_LISP("watch-object", Vwatch_object,
5124 doc: /* Symbol to watch. */);
5125 Vwatch_object = Qnil;
5126
5127 DEFVAR_BOOL ("use-file-dialog", use_file_dialog, 5123 DEFVAR_BOOL ("use-file-dialog", use_file_dialog,
5128 doc: /* Non-nil means mouse commands use a file dialog to ask for files. 5124 doc: /* Non-nil means mouse commands use a file dialog to ask for files.
5129This applies to commands from menus and tool bar buttons even when 5125This applies to commands from menus and tool bar buttons even when