aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorJuanma Barranquero2014-03-27 18:34:22 +0100
committerJuanma Barranquero2014-03-27 18:34:22 +0100
commit1e757eb0a5bab2bdd26de8a6553ee5c2b2e2a381 (patch)
tree01db12aa0584e566f44f32c062a67f98ea836837 /lisp
parentb9b37dd04e6f60ef16738efe1b396a9e0a461d86 (diff)
parent0c4e715c98919593413a76a0ab1458b0d10ea287 (diff)
downloademacs-1e757eb0a5bab2bdd26de8a6553ee5c2b2e2a381.tar.gz
emacs-1e757eb0a5bab2bdd26de8a6553ee5c2b2e2a381.zip
Merge from emacs-24; up to 2014-03-24T03:06:35Z!dancol@dancol.org
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog17
-rw-r--r--lisp/emacs-lisp/package-x.el18
-rw-r--r--lisp/frameset.el8
-rw-r--r--lisp/progmodes/ruby-mode.el24
4 files changed, 44 insertions, 23 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 613108fc015..fc83e157d18 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,20 @@
12014-03-27 Dmitry Gutov <dgutov@yandex.ru>
2
3 * progmodes/ruby-mode.el (ruby-font-lock-keywords): Highlight
4 special globals with font-lock-builtin-face. (Bug#17057)
5
6 * progmodes/ruby-mode.el (ruby-syntax-propertize-function):
7 Don't propertize `?' or `!' as symbol constituent when after
8 colon. (Bug#17097)
9
102014-03-27 Juanma Barranquero <lekktu@gmail.com>
11
12 * frameset.el (frameset--restore-frame): Remove workaround for bug#14795
13 which is no longer needed and causes trouble in GTK builds (bug#17046).
14
15 * emacs-lisp/package-x.el (package--archive-contents-from-url):
16 Use url-insert-file-contents; package-handle-response no longer exists.
17
12014-03-26 Daniel Colascione <dancol@dancol.org> 182014-03-26 Daniel Colascione <dancol@dancol.org>
2 19
3 * simple.el (process-menu-mode-map): New variable. 20 * simple.el (process-menu-mode-map): New variable.
diff --git a/lisp/emacs-lisp/package-x.el b/lisp/emacs-lisp/package-x.el
index 6a6a62dc916..1d9d1a04668 100644
--- a/lisp/emacs-lisp/package-x.el
+++ b/lisp/emacs-lisp/package-x.el
@@ -114,18 +114,12 @@ inserted after its first occurrence in the file."
114(defun package--archive-contents-from-url (archive-url) 114(defun package--archive-contents-from-url (archive-url)
115 "Parse archive-contents file at ARCHIVE-URL. 115 "Parse archive-contents file at ARCHIVE-URL.
116Return the file contents, as a string, or nil if unsuccessful." 116Return the file contents, as a string, or nil if unsuccessful."
117 (ignore-errors 117 (when archive-url
118 (when archive-url 118 (with-temp-buffer
119 (let* ((buffer (url-retrieve-synchronously 119 (ignore-errors
120 (concat archive-url "archive-contents")))) 120 (url-insert-file-contents (concat archive-url "archive-contents"))
121 (set-buffer buffer) 121 (package-read-from-string
122 (package-handle-response) 122 (buffer-substring-no-properties (point-min) (point-max)))))))
123 (re-search-forward "^$" nil 'move)
124 (forward-char)
125 (delete-region (point-min) (point))
126 (prog1 (package-read-from-string
127 (buffer-substring-no-properties (point-min) (point-max)))
128 (kill-buffer buffer))))))
129 123
130(defun package--archive-contents-from-file () 124(defun package--archive-contents-from-file ()
131 "Parse the archive-contents at `package-archive-upload-base'" 125 "Parse the archive-contents at `package-archive-upload-base'"
diff --git a/lisp/frameset.el b/lisp/frameset.el
index 2f1453f2a19..b943d47e7bf 100644
--- a/lisp/frameset.el
+++ b/lisp/frameset.el
@@ -950,15 +950,10 @@ PARAMETERS is the frame's parameter alist; WINDOW-STATE is its window state.
950For the meaning of FILTERS and FORCE-ONSCREEN, see `frameset-restore'. 950For the meaning of FILTERS and FORCE-ONSCREEN, see `frameset-restore'.
951Internal use only." 951Internal use only."
952 (let* ((fullscreen (cdr (assq 'fullscreen parameters))) 952 (let* ((fullscreen (cdr (assq 'fullscreen parameters)))
953 (lines (assq 'tool-bar-lines parameters))
954 (filtered-cfg (frameset-filter-params parameters filters nil)) 953 (filtered-cfg (frameset-filter-params parameters filters nil))
955 (display (cdr (assq 'display filtered-cfg))) ;; post-filtering 954 (display (cdr (assq 'display filtered-cfg))) ;; post-filtering
956 alt-cfg frame) 955 alt-cfg frame)
957 956
958 ;; This works around bug#14795 (or feature#14795, if not a bug :-)
959 (setq filtered-cfg (assq-delete-all 'tool-bar-lines filtered-cfg))
960 (push '(tool-bar-lines . 0) filtered-cfg)
961
962 (when fullscreen 957 (when fullscreen
963 ;; Currently Emacs has the limitation that it does not record the size 958 ;; Currently Emacs has the limitation that it does not record the size
964 ;; and position of a frame before maximizing it, so we cannot save & 959 ;; and position of a frame before maximizing it, so we cannot save &
@@ -1009,8 +1004,7 @@ Internal use only."
1009 (not (eq (frame-parameter frame 'visibility) 'icon))) 1004 (not (eq (frame-parameter frame 'visibility) 'icon)))
1010 (frameset-move-onscreen frame force-onscreen)) 1005 (frameset-move-onscreen frame force-onscreen))
1011 1006
1012 ;; Let's give the finishing touches (visibility, tool-bar, maximization). 1007 ;; Let's give the finishing touches (visibility, maximization).
1013 (when lines (push lines alt-cfg))
1014 (when alt-cfg (modify-frame-parameters frame alt-cfg)) 1008 (when alt-cfg (modify-frame-parameters frame alt-cfg))
1015 ;; Now restore window state. 1009 ;; Now restore window state.
1016 (window-state-put window-state (frame-root-window frame) 'safe) 1010 (window-state-put window-state (frame-root-window frame) 'safe)
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el
index 2b8f2fa6868..6c6cdd3427d 100644
--- a/lisp/progmodes/ruby-mode.el
+++ b/lisp/progmodes/ruby-mode.el
@@ -1812,6 +1812,7 @@ It will be properly highlighted even when the call omits parens.")
1812 ("[!?]" 1812 ("[!?]"
1813 (0 (unless (save-excursion 1813 (0 (unless (save-excursion
1814 (or (nth 8 (syntax-ppss (match-beginning 0))) 1814 (or (nth 8 (syntax-ppss (match-beginning 0)))
1815 (eq (char-before) ?:)
1815 (let (parse-sexp-lookup-properties) 1816 (let (parse-sexp-lookup-properties)
1816 (zerop (skip-syntax-backward "w_"))) 1817 (zerop (skip-syntax-backward "w_")))
1817 (memq (preceding-char) '(?@ ?$)))) 1818 (memq (preceding-char) '(?@ ?$))))
@@ -2108,13 +2109,28 @@ See `font-lock-syntax-table'.")
2108 1 font-lock-variable-name-face) 2109 1 font-lock-variable-name-face)
2109 ;; Keywords that evaluate to certain values. 2110 ;; Keywords that evaluate to certain values.
2110 ("\\_<__\\(?:LINE\\|ENCODING\\|FILE\\)__\\_>" 2111 ("\\_<__\\(?:LINE\\|ENCODING\\|FILE\\)__\\_>"
2111 (0 font-lock-variable-name-face)) 2112 (0 font-lock-builtin-face))
2112 ;; Symbols. 2113 ;; Symbols.
2113 ("\\(^\\|[^:]\\)\\(:\\([-+~]@?\\|[/%&|^`]\\|\\*\\*?\\|<\\(<\\|=>?\\)?\\|>[>=]?\\|===?\\|=~\\|![~=]?\\|\\[\\]=?\\|@?\\(\\w\\|_\\)+\\([!?=]\\|\\b_*\\)\\|#{[^}\n\\\\]*\\(\\\\.[^}\n\\\\]*\\)*}\\)\\)" 2114 ("\\(^\\|[^:]\\)\\(:\\([-+~]@?\\|[/%&|^`]\\|\\*\\*?\\|<\\(<\\|=>?\\)?\\|>[>=]?\\|===?\\|=~\\|![~=]?\\|\\[\\]=?\\|@?\\(\\w\\|_\\)+\\([!?=]\\|\\b_*\\)\\|#{[^}\n\\\\]*\\(\\\\.[^}\n\\\\]*\\)*}\\)\\)"
2114 2 font-lock-constant-face) 2115 2 font-lock-constant-face)
2115 ;; Variables. 2116 ;; Special globals.
2116 ("\\$[^a-zA-Z \n]" 2117 (,(concat "\\$\\(?:[:\"!@;,/\\._><\\$?~=*&`'+0-9]\\|-[0adFiIlpvw]\\|"
2117 0 font-lock-variable-name-face) 2118 (regexp-opt '("LOAD_PATH" "LOADED_FEATURES" "PROGRAM_NAME"
2119 "ERROR_INFO" "ERROR_POSITION"
2120 "FS" "FIELD_SEPARATOR"
2121 "OFS" "OUTPUT_FIELD_SEPARATOR"
2122 "RS" "INPUT_RECORD_SEPARATOR"
2123 "ORS" "OUTPUT_RECORD_SEPARATOR"
2124 "NR" "INPUT_LINE_NUMBER"
2125 "LAST_READ_LINE" "DEFAULT_OUTPUT" "DEFAULT_INPUT"
2126 "PID" "PROCESS_ID" "CHILD_STATUS"
2127 "LAST_MATCH_INFO" "IGNORECASE"
2128 "ARGV" "MATCH" "PREMATCH" "POSTMATCH"
2129 "LAST_PAREN_MATCH" "stdin" "stdout" "stderr"
2130 "DEBUG" "FILENAME" "VERBOSE" "SAFE" "CLASSPATH"
2131 "JRUBY_VERSION" "JRUBY_REVISION" "ENV_JAVA"))
2132 "\\_>\\)")
2133 0 font-lock-builtin-face)
2118 ("\\(\\$\\|@\\|@@\\)\\(\\w\\|_\\)+" 2134 ("\\(\\$\\|@\\|@@\\)\\(\\w\\|_\\)+"
2119 0 font-lock-variable-name-face) 2135 0 font-lock-variable-name-face)
2120 ;; Constants. 2136 ;; Constants.