aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorGlenn Morris2018-09-10 13:12:38 -0700
committerGlenn Morris2018-09-10 13:12:38 -0700
commit0407733ef3d4e8e133e91917097dbc9bcc688b47 (patch)
tree9223757d1d54460b3ca0e7867636072a51cd55f2 /lisp
parent6e050694f247671e67c1eabace36cf9792ab4451 (diff)
parent7efcdf7b3e70f0334caa328cbb5b05a4e30099bd (diff)
downloademacs-0407733ef3d4e8e133e91917097dbc9bcc688b47.tar.gz
emacs-0407733ef3d4e8e133e91917097dbc9bcc688b47.zip
Merge from origin/emacs-26
7efcdf7 (origin/emacs-26) Clarify completion text in the ELisp manual 30b0b0e Fix handling of abbreviated control command in gdb-mi.el 5cf282d Clarify documentation of functions reading character events 96281c5 Record :version for built-in variables while dumping 82160cf * src/process.c (connect_network_socket): Fix memory leak. (... 6c616e4 * Makefile.in (appdatadir): Use the non-obsolete location "me... 9618e16 Better fix for bug#32550 30d94e4 Fix Bug#32550 57bcdc7 Don't call XGetGeometry for frames without outer X window (Bu... 82fc6b6 * lisp/calculator.el: Fix doc typo. ddc7c64 Standardize calc bug reporting instructions Conflicts: lisp/cus-start.el
Diffstat (limited to 'lisp')
-rw-r--r--lisp/calc/calc-misc.el16
-rw-r--r--lisp/calc/calc.el4
-rw-r--r--lisp/calculator.el2
-rw-r--r--lisp/cus-start.el3
-rw-r--r--lisp/net/tramp.el41
-rw-r--r--lisp/progmodes/gdb-mi.el5
-rw-r--r--lisp/rfn-eshadow.el4
7 files changed, 34 insertions, 41 deletions
diff --git a/lisp/calc/calc-misc.el b/lisp/calc/calc-misc.el
index 29e85104131..6543920d07e 100644
--- a/lisp/calc/calc-misc.el
+++ b/lisp/calc/calc-misc.el
@@ -943,19 +943,9 @@ loaded and the keystroke automatically re-typed."
943;;; Bug reporting 943;;; Bug reporting
944 944
945;;;###autoload 945;;;###autoload
946(defun report-calc-bug () 946(define-obsolete-function-alias 'report-calc-bug 'report-emacs-bug "26.2")
947 "Report a bug in Calc, the GNU Emacs calculator. 947;;;###autoload
948Prompts for bug subject. Leaves you in a mail buffer." 948(define-obsolete-function-alias 'calc-report-bug 'report-emacs-bug "26.2")
949 (interactive)
950 (let ((reporter-prompt-for-summary-p t))
951 (reporter-submit-bug-report calc-bug-address "Calc"
952 nil nil nil
953 "Please describe exactly what actions triggered the bug and the
954precise symptoms of the bug. If possible, include a backtrace by
955doing `\\[toggle-debug-on-error]', then reproducing the bug.
956" )))
957;;;###autoload
958(defalias 'calc-report-bug 'report-calc-bug)
959 949
960(provide 'calc-misc) 950(provide 'calc-misc)
961 951
diff --git a/lisp/calc/calc.el b/lisp/calc/calc.el
index 364b44bfcfe..c79db821eb6 100644
--- a/lisp/calc/calc.el
+++ b/lisp/calc/calc.el
@@ -486,8 +486,8 @@ to be identified as that note."
486 "Face used to show the selected portion of a formula." 486 "Face used to show the selected portion of a formula."
487 :group 'calc) 487 :group 'calc)
488 488
489(defvar calc-bug-address "emacs-devel@gnu.org" 489(define-obsolete-variable-alias 'calc-bug-address 'report-emacs-bug-address
490 "Address of the maintainer of Calc, for use by `report-calc-bug'.") 490 "26.2")
491 491
492(defvar calc-scan-for-dels t 492(defvar calc-scan-for-dels t
493 "If t, scan keymaps to find all DEL-like keys. 493 "If t, scan keymaps to find all DEL-like keys.
diff --git a/lisp/calculator.el b/lisp/calculator.el
index b6959af795a..f559fb48284 100644
--- a/lisp/calculator.el
+++ b/lisp/calculator.el
@@ -627,7 +627,7 @@ Here are the editing keys:
627 627
628These operators are pre-defined: 628These operators are pre-defined:
629* `+' `-' `*' `/' the common binary operators 629* `+' `-' `*' `/' the common binary operators
630* `\\' `%' integer division and reminder 630* `\\' `%' integer division and remainder
631* `_' `;' postfix unary negation and reciprocal 631* `_' `;' postfix unary negation and reciprocal
632* `^' `L' binary operators for x^y and log(x) in base y 632* `^' `L' binary operators for x^y and log(x) in base y
633* `Q' `!' unary square root and factorial 633* `Q' `!' unary square root and factorial
diff --git a/lisp/cus-start.el b/lisp/cus-start.el
index 1a5b3caea23..88a61753f25 100644
--- a/lisp/cus-start.el
+++ b/lisp/cus-start.el
@@ -711,6 +711,8 @@ since it could result in memory overflow and make Emacs crash."
711 (put symbol 'risky-local-variable (cadr prop))) 711 (put symbol 'risky-local-variable (cadr prop)))
712 (if (setq prop (memq :set rest)) 712 (if (setq prop (memq :set rest))
713 (put symbol 'custom-set (cadr prop))) 713 (put symbol 'custom-set (cadr prop)))
714 ;; This is used by describe-variable.
715 (if version (put symbol 'custom-version version))
714 ;; Don't re-add to custom-delayed-init-variables post-startup. 716 ;; Don't re-add to custom-delayed-init-variables post-startup.
715 (unless after-init-time 717 (unless after-init-time
716 ;; Note this is the _only_ initialize property we handle. 718 ;; Note this is the _only_ initialize property we handle.
@@ -731,7 +733,6 @@ since it could result in memory overflow and make Emacs crash."
731 (custom-add-to-group group symbol 'custom-variable)) 733 (custom-add-to-group group symbol 'custom-variable))
732 ;; Set the type. 734 ;; Set the type.
733 (put symbol 'custom-type type) 735 (put symbol 'custom-type type)
734 (if version (put symbol 'custom-version version))
735 (while rest 736 (while rest
736 (setq prop (car rest) 737 (setq prop (car rest)
737 propval (cadr rest) 738 propval (cadr rest)
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index 07154b57f20..567701a9b28 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -1954,7 +1954,6 @@ For definition of that list see `tramp-set-completion-function'."
1954 ;; The method related defaults. 1954 ;; The method related defaults.
1955 (cdr (assoc method tramp-completion-function-alist)))) 1955 (cdr (assoc method tramp-completion-function-alist))))
1956 1956
1957
1958;;; Fontification of `read-file-name': 1957;;; Fontification of `read-file-name':
1959 1958
1960(defvar tramp-rfn-eshadow-overlay) 1959(defvar tramp-rfn-eshadow-overlay)
@@ -1964,11 +1963,11 @@ For definition of that list see `tramp-set-completion-function'."
1964 "Set up a minibuffer for `file-name-shadow-mode'. 1963 "Set up a minibuffer for `file-name-shadow-mode'.
1965Adds another overlay hiding filename parts according to Tramp's 1964Adds another overlay hiding filename parts according to Tramp's
1966special handling of `substitute-in-file-name'." 1965special handling of `substitute-in-file-name'."
1967 (when (symbol-value 'minibuffer-completing-file-name) 1966 (when minibuffer-completing-file-name
1968 (setq tramp-rfn-eshadow-overlay 1967 (setq tramp-rfn-eshadow-overlay
1969 (make-overlay (minibuffer-prompt-end) (minibuffer-prompt-end))) 1968 (make-overlay (minibuffer-prompt-end) (minibuffer-prompt-end)))
1970 ;; Copy rfn-eshadow-overlay properties. 1969 ;; Copy rfn-eshadow-overlay properties.
1971 (let ((props (overlay-properties (symbol-value 'rfn-eshadow-overlay)))) 1970 (let ((props (overlay-properties rfn-eshadow-overlay)))
1972 (while props 1971 (while props
1973 ;; The `field' property prevents correct minibuffer 1972 ;; The `field' property prevents correct minibuffer
1974 ;; completion; we exclude it. 1973 ;; completion; we exclude it.
@@ -1986,6 +1985,13 @@ special handling of `substitute-in-file-name'."
1986(defun tramp-rfn-eshadow-update-overlay-regexp () 1985(defun tramp-rfn-eshadow-update-overlay-regexp ()
1987 (format "[^%s/~]*\\(/\\|~\\)" tramp-postfix-host-format)) 1986 (format "[^%s/~]*\\(/\\|~\\)" tramp-postfix-host-format))
1988 1987
1988;; Package rfn-eshadow is preloaded in Emacs, but for some reason,
1989;; it only did (defvar rfn-eshadow-overlay) without giving it a global
1990;; value, so it was only declared as dynamically-scoped within the
1991;; rfn-eshadow.el file. This is now fixed in Emacs>26.1 but we still need
1992;; this defvar here for older releases.
1993(defvar rfn-eshadow-overlay)
1994
1989(defun tramp-rfn-eshadow-update-overlay () 1995(defun tramp-rfn-eshadow-update-overlay ()
1990 "Update `rfn-eshadow-overlay' to cover shadowed part of minibuffer input. 1996 "Update `rfn-eshadow-overlay' to cover shadowed part of minibuffer input.
1991This is intended to be used as a minibuffer `post-command-hook' for 1997This is intended to be used as a minibuffer `post-command-hook' for
@@ -1993,26 +1999,25 @@ This is intended to be used as a minibuffer `post-command-hook' for
1993been set up by `rfn-eshadow-setup-minibuffer'." 1999been set up by `rfn-eshadow-setup-minibuffer'."
1994 ;; In remote files name, there is a shadowing just for the local part. 2000 ;; In remote files name, there is a shadowing just for the local part.
1995 (ignore-errors 2001 (ignore-errors
1996 (let ((end (or (overlay-end (symbol-value 'rfn-eshadow-overlay)) 2002 (let ((end (or (overlay-end rfn-eshadow-overlay)
1997 (minibuffer-prompt-end))) 2003 (minibuffer-prompt-end)))
1998 ;; We do not want to send any remote command. 2004 ;; We do not want to send any remote command.
1999 (non-essential t)) 2005 (non-essential t))
2000 (when 2006 (when
2001 (tramp-tramp-file-p 2007 (tramp-tramp-file-p
2002 (buffer-substring-no-properties end (point-max))) 2008 (buffer-substring-no-properties end (point-max)))
2003 (save-excursion 2009 (save-restriction
2004 (save-restriction 2010 (narrow-to-region
2005 (narrow-to-region 2011 (1+ (or (string-match
2006 (1+ (or (string-match 2012 (tramp-rfn-eshadow-update-overlay-regexp)
2007 (tramp-rfn-eshadow-update-overlay-regexp) 2013 (buffer-string) end)
2008 (buffer-string) end) 2014 end))
2009 end)) 2015 (point-max))
2010 (point-max)) 2016 (let ((rfn-eshadow-overlay tramp-rfn-eshadow-overlay)
2011 (let ((rfn-eshadow-overlay tramp-rfn-eshadow-overlay) 2017 (rfn-eshadow-update-overlay-hook nil)
2012 (rfn-eshadow-update-overlay-hook nil) 2018 file-name-handler-alist)
2013 file-name-handler-alist) 2019 (move-overlay rfn-eshadow-overlay (point-max) (point-max))
2014 (move-overlay rfn-eshadow-overlay (point-max) (point-max)) 2020 (rfn-eshadow-update-overlay)))))))
2015 (rfn-eshadow-update-overlay))))))))
2016 2021
2017(add-hook 'rfn-eshadow-update-overlay-hook 2022(add-hook 'rfn-eshadow-update-overlay-hook
2018 'tramp-rfn-eshadow-update-overlay) 2023 'tramp-rfn-eshadow-update-overlay)
@@ -4666,8 +4671,6 @@ Only works for Bourne-like shells."
4666;; strange when doing zerop, we should kill the process and start 4671;; strange when doing zerop, we should kill the process and start
4667;; again. (Greg Stark) 4672;; again. (Greg Stark)
4668;; 4673;;
4669;; * Make shadowfile.el grok Tramp filenames. (Bug#4526, Bug#4846)
4670;;
4671;; * I was wondering if it would be possible to use tramp even if I'm 4674;; * I was wondering if it would be possible to use tramp even if I'm
4672;; actually using sshfs. But when I launch a command I would like 4675;; actually using sshfs. But when I launch a command I would like
4673;; to get it executed on the remote machine where the files really 4676;; to get it executed on the remote machine where the files really
diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el
index 6fee895e6a0..da979de5400 100644
--- a/lisp/progmodes/gdb-mi.el
+++ b/lisp/progmodes/gdb-mi.el
@@ -1780,9 +1780,10 @@ static char *magick[] = {
1780(defvar gdb-control-commands-regexp 1780(defvar gdb-control-commands-regexp
1781 (concat 1781 (concat
1782 "^\\(" 1782 "^\\("
1783 "commands\\|if\\|while\\|define\\|document\\|" 1783 "comm\\(a\\(n\\(ds?\\)?\\)?\\)?\\|if\\|while"
1784 "\\|def\\(i\\(ne?\\)?\\)?\\|doc\\(u\\(m\\(e\\(nt?\\)?\\)?\\)?\\)?\\|"
1784 gdb-python-guile-commands-regexp 1785 gdb-python-guile-commands-regexp
1785 "\\|while-stepping\\|stepping\\|ws\\|actions" 1786 "\\|while-stepping\\|stepp\\(i\\(ng?\\)?\\)?\\|ws\\|actions"
1786 "\\)\\([[:blank:]]+\\([^[:blank:]]*\\)\\)?$") 1787 "\\)\\([[:blank:]]+\\([^[:blank:]]*\\)\\)?$")
1787 "Regexp matching GDB commands that enter a recursive reading loop. 1788 "Regexp matching GDB commands that enter a recursive reading loop.
1788As long as GDB is in the recursive reading loop, it does not expect 1789As long as GDB is in the recursive reading loop, it does not expect
diff --git a/lisp/rfn-eshadow.el b/lisp/rfn-eshadow.el
index 41fd8b5f97d..d6e9a1efae1 100644
--- a/lisp/rfn-eshadow.el
+++ b/lisp/rfn-eshadow.el
@@ -132,9 +132,7 @@ system, `file-name-shadow-properties' is used instead."
132 132
133;; An overlay covering the shadowed part of the filename (local to the 133;; An overlay covering the shadowed part of the filename (local to the
134;; minibuffer). 134;; minibuffer).
135(defvar rfn-eshadow-overlay) 135(defvar-local rfn-eshadow-overlay nil)
136(make-variable-buffer-local 'rfn-eshadow-overlay)
137
138 136
139;;; Hook functions 137;;; Hook functions
140 138