summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-mathematics/Macaulay2/files/1.4-comint-use-fields.patch')
-rw-r--r--sci-mathematics/Macaulay2/files/1.4-comint-use-fields.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/sci-mathematics/Macaulay2/files/1.4-comint-use-fields.patch b/sci-mathematics/Macaulay2/files/1.4-comint-use-fields.patch
new file mode 100644
index 000000000000..5895f3ef2145
--- /dev/null
+++ b/sci-mathematics/Macaulay2/files/1.4-comint-use-fields.patch
@@ -0,0 +1,20 @@
+Index: Macaulay2/emacs/M2.el
+===================================================================
+--- Macaulay2/emacs/M2.el (revision 13949)
++++ Macaulay2/emacs/M2.el (revision 13951)
+@@ -38,7 +38,6 @@
+ \\{M2-comint-mode-map}"
+ (M2-common)
+ (setq comint-prompt-regexp M2-comint-prompt-regexp)
+- (setq comint-use-prompt-regexp-instead-of-fields t)
+ (set (make-local-variable 'comint-dynamic-complete-functions) '( M2-dynamic-complete-symbol comint-dynamic-complete-filename))
+ ;; give up trying to fix this:
+ ;; (set (make-local-variable 'ansi-color-for-comint-mode-on) nil)
+@@ -46,7 +45,6 @@
+
+ (defun M2-common()
+ "Set up features common to both Macaulay 2 major modes."
+- (set (make-local-variable 'comint-use-prompt-regexp-instead-of-fields) nil) ; we might want to start using "input fields", too!
+ (set (make-local-variable 'comment-start) "-- ")
+ (set (make-local-variable 'comment-end) "")
+ (set (make-local-variable 'comment-column) 60)