diff options
| author | Glenn Morris | 2018-05-07 07:50:49 -0700 |
|---|---|---|
| committer | Glenn Morris | 2018-05-07 07:50:49 -0700 |
| commit | 766b057e41df7316808ec7658836fda75facda75 (patch) | |
| tree | 9f35f8fdc99192a66c01c10b8a6b3cae1fb6ebd4 /lisp | |
| parent | 6e362a32bc9d21f73a0f29ca6f45481edeea6f29 (diff) | |
| parent | 1d732d699d63b5dbfa7d0a0f44e6119d58f852bc (diff) | |
| download | emacs-766b057e41df7316808ec7658836fda75facda75.tar.gz emacs-766b057e41df7316808ec7658836fda75facda75.zip | |
Merge from origin/emacs-26
1d732d6 (origin/emacs-26) Fix gud-statement for pdb
91a68b5 ; * msdos/INSTALL: Add info about GCC versions.
7ddcc9a Document 'custom-group'
58f9e15 A minor addition to etc/DEBUG
4590414 Avoid errors in ispell.el when Enchant returns empty extra chars
d0d75f9 Make 'ispell-initialize-spellchecker-hook' work again
b90ce66 Handle selected_window change in prepare_menu_bars (Bug#31312)
79ad0b3 ; * INSTALL: Fix Emacs version number. (Bug#31358)
91de88b Fix report-emacs-bug via mailclient on MS-Windows
f4b5ff2 Port collation tests to glibc 2.27
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/net/browse-url.el | 16 | ||||
| -rw-r--r-- | lisp/progmodes/gud.el | 3 | ||||
| -rw-r--r-- | lisp/textmodes/ispell.el | 10 |
3 files changed, 24 insertions, 5 deletions
diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el index bdedcb2bd3e..bf179c8782a 100644 --- a/lisp/net/browse-url.el +++ b/lisp/net/browse-url.el | |||
| @@ -877,7 +877,21 @@ The optional NEW-WINDOW argument is not used." | |||
| 877 | (error "Browsing URLs is not supported on this system"))) | 877 | (error "Browsing URLs is not supported on this system"))) |
| 878 | ((eq system-type 'cygwin) | 878 | ((eq system-type 'cygwin) |
| 879 | (call-process "cygstart" nil nil nil url)) | 879 | (call-process "cygstart" nil nil nil url)) |
| 880 | (t (w32-shell-execute "open" (url-unhex-string url))))) | 880 | (t |
| 881 | (w32-shell-execute "open" | ||
| 882 | ;; w32-shell-execute passes file:// URLs | ||
| 883 | ;; to APIs that expect file names, so we | ||
| 884 | ;; need to unhex any %nn encoded | ||
| 885 | ;; characters in the URL. We don't do | ||
| 886 | ;; that for other URLs; in particular, | ||
| 887 | ;; default Windows mail client barfs on | ||
| 888 | ;; quotes in the MAILTO URLs, so we prefer | ||
| 889 | ;; to leave the URL with its embedded %nn | ||
| 890 | ;; encoding intact. | ||
| 891 | (if (eq t (compare-strings url nil 7 | ||
| 892 | "file://" nil nil)) | ||
| 893 | (url-unhex-string url) | ||
| 894 | url))))) | ||
| 881 | 895 | ||
| 882 | (defun browse-url-default-macosx-browser (url &optional _new-window) | 896 | (defun browse-url-default-macosx-browser (url &optional _new-window) |
| 883 | "Invoke the macOS system's default Web browser. | 897 | "Invoke the macOS system's default Web browser. |
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index 2664d03e723..de398350bd2 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el | |||
| @@ -1695,8 +1695,7 @@ and source-file directory for your debugger." | |||
| 1695 | (gud-def gud-up "up" "<" "Up one stack frame.") | 1695 | (gud-def gud-up "up" "<" "Up one stack frame.") |
| 1696 | (gud-def gud-down "down" ">" "Down one stack frame.") | 1696 | (gud-def gud-down "down" ">" "Down one stack frame.") |
| 1697 | (gud-def gud-print "p %e" "\C-p" "Evaluate Python expression at point.") | 1697 | (gud-def gud-print "p %e" "\C-p" "Evaluate Python expression at point.") |
| 1698 | ;; Is this right? | 1698 | (gud-def gud-statement "!%e" "\C-e" "Execute Python statement at point.") |
| 1699 | (gud-def gud-statement "! %e" "\C-e" "Execute Python statement at point.") | ||
| 1700 | 1699 | ||
| 1701 | ;; (setq comint-prompt-regexp "^(.*pdb[+]?) *") | 1700 | ;; (setq comint-prompt-regexp "^(.*pdb[+]?) *") |
| 1702 | (setq comint-prompt-regexp "^(Pdb) *") | 1701 | (setq comint-prompt-regexp "^(Pdb) *") |
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index d03d12b3758..73a2c2da8b1 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el | |||
| @@ -1212,8 +1212,10 @@ Internal use.") | |||
| 1212 | (defun ispell--get-extra-word-characters (&optional lang) | 1212 | (defun ispell--get-extra-word-characters (&optional lang) |
| 1213 | "Get the extra word characters for LANG as a character class. | 1213 | "Get the extra word characters for LANG as a character class. |
| 1214 | If LANG is omitted, get the extra word characters for the default language." | 1214 | If LANG is omitted, get the extra word characters for the default language." |
| 1215 | (concat "[" (string-trim-right (apply 'ispell--call-enchant-lsmod | 1215 | (let ((extra (string-trim-right |
| 1216 | (append '("-word-chars") (if lang `(,lang))))) "]")) | 1216 | (apply 'ispell--call-enchant-lsmod |
| 1217 | (append '("-word-chars") (if lang `(,lang))))))) | ||
| 1218 | (if (string= extra "") "" (concat "[" extra "]")))) | ||
| 1217 | 1219 | ||
| 1218 | (defun ispell-find-enchant-dictionaries () | 1220 | (defun ispell-find-enchant-dictionaries () |
| 1219 | "Find Enchant's dictionaries, and record in `ispell-enchant-dictionary-alist'." | 1221 | "Find Enchant's dictionaries, and record in `ispell-enchant-dictionary-alist'." |
| @@ -1243,6 +1245,10 @@ If LANG is omitted, get the extra word characters for the default language." | |||
| 1243 | (defvar ispell-last-program-name nil | 1245 | (defvar ispell-last-program-name nil |
| 1244 | "Last value of `ispell-program-name'. Internal use.") | 1246 | "Last value of `ispell-program-name'. Internal use.") |
| 1245 | 1247 | ||
| 1248 | ;; Allow dynamically binding ispell-base-dicts-override-alist as | ||
| 1249 | ;; advertised in the doc string of ispell-initialize-spellchecker-hook. | ||
| 1250 | (defvar ispell-base-dicts-override-alist) | ||
| 1251 | |||
| 1246 | (defvar ispell-initialize-spellchecker-hook nil | 1252 | (defvar ispell-initialize-spellchecker-hook nil |
| 1247 | "Normal hook run on spellchecker initialization. | 1253 | "Normal hook run on spellchecker initialization. |
| 1248 | This hook is run when a spellchecker is used for the first | 1254 | This hook is run when a spellchecker is used for the first |