Now on revision 113092. ------------------------------------------------------------ revno: 113092 committer: Paul Eggert branch nick: trunk timestamp: Wed 2013-06-19 18:19:43 -0700 message: * floatfns.c: Add commentary re C99 and C11. diff: === modified file 'src/floatfns.c' --- src/floatfns.c 2013-06-17 06:03:19 +0000 +++ src/floatfns.c 2013-06-20 01:19:43 +0000 @@ -26,6 +26,17 @@ the starred functions since we haven't found a use for them: acos, asin, atan, atan2, ceil, cos, *cosh, exp, fabs, floor, fmod, frexp, ldexp, log, log10, *modf, pow, sin, *sinh, sqrt, tan, *tanh. + + C99 and C11 require the following math.h functions in addition to + the C89 functions. Of these, Emacs currently exports only the + starred ones to Lisp, since we haven't found a use for the others: + acosh, atanh, cbrt, *copysign, erf, erfc, exp2, expm1, fdim, fma, + fmax, fmin, fpclassify, hypot, ilogb, isfinite, isgreater, + isgreaterequal, isinf, isless, islessequal, islessgreater, *isnan, + isnormal, isunordered, lgamma, log1p, log2, *logb (approximately), + lrint/llrint, lround/llround, nan, nearbyint, nextafter, + nexttoward, remainder, remquo, *rint, round, scalbln, scalbn, + signbit, tgamma, trunc. */ #include ------------------------------------------------------------ revno: 113091 committer: Juanma Barranquero branch nick: trunk timestamp: Thu 2013-06-20 03:03:57 +0200 message: lisp/ansi-color.el: Convert to lexical binding. (ansi-colors): Fix URL. (ansi-color-context, ansi-color-context-region): Use defvar-local. (ansi-color-apply-sequence, ansi-color-map): Fix typos in docstrings. (ansi-color-make-color-map): Rename local var ansi-color-map to map. diff: === modified file 'lisp/ChangeLog' --- lisp/ChangeLog 2013-06-20 00:39:59 +0000 +++ lisp/ChangeLog 2013-06-20 01:03:57 +0000 @@ -1,5 +1,11 @@ 2013-06-20 Juanma Barranquero + * ansi-color.el: Convert to lexical binding. + (ansi-colors): Fix URL. + (ansi-color-context, ansi-color-context-region): Use defvar-local. + (ansi-color-apply-sequence, ansi-color-map): Fix typos in docstrings. + (ansi-color-make-color-map): Rename local var ansi-color-map to map. + * progmodes/prog-mode.el (prettify-symbols-mode) (global-prettify-symbols-mode, prog-mode): Remove autoload cookies. === modified file 'lisp/ansi-color.el' --- lisp/ansi-color.el 2013-01-01 09:11:05 +0000 +++ lisp/ansi-color.el 2013-06-20 01:03:57 +0000 @@ -1,4 +1,4 @@ -;;; ansi-color.el --- translate ANSI escape sequences into faces +;;; ansi-color.el --- translate ANSI escape sequences into faces -*- lexical-binding: t -*- ;; Copyright (C) 1999-2013 Free Software Foundation, Inc. @@ -84,8 +84,9 @@ This translation effectively colorizes strings and regions based upon SGR control sequences embedded in the text. SGR (Select Graphic Rendition) control sequences are defined in section 8.3.117 of the -ECMA-48 standard \(identical to ISO/IEC 6429), which is freely available -as a PDF file ." +ECMA-48 standard (identical to ISO/IEC 6429), which is freely available +at +as a PDF file." :version "21.1" :group 'processes) @@ -119,7 +120,7 @@ ["black" "red" "green" "yellow" "blue" "magenta" "cyan" "white"] "Colors used for SGR control sequences determining a color. This vector holds the colors used for SGR control sequences parameters -30 to 37 \(foreground colors) and 40 to 47 (background colors). +30 to 37 (foreground colors) and 40 to 47 (background colors). Parameter Color 30 40 black @@ -234,14 +235,13 @@ 'font-lock-default-unfontify-region "24.1") ;; Working with strings -(defvar ansi-color-context nil +(defvar-local ansi-color-context nil "Context saved between two calls to `ansi-color-apply'. This is a list of the form (CODES FRAGMENT) or nil. CODES represents the state the last call to `ansi-color-apply' ended with, currently a list of ansi codes, and FRAGMENT is a string starting with an escape sequence, possibly the start of a new escape sequence.") -(make-variable-buffer-local 'ansi-color-context) (defun ansi-color-filter-apply (string) "Filter out all ANSI control sequences from STRING. @@ -324,7 +324,8 @@ (setq codes (ansi-color-apply-sequence escape-sequence codes))) ;; if the rest of the string should have a face, put it there (when codes - (put-text-property start (length string) 'font-lock-face (ansi-color--find-face codes) string)) + (put-text-property start (length string) + 'font-lock-face (ansi-color--find-face codes) string)) ;; save context, add the remainder of the string to the result (let (fragment) (if (string-match "\033" string start) @@ -337,14 +338,13 @@ ;; Working with regions -(defvar ansi-color-context-region nil +(defvar-local ansi-color-context-region nil "Context saved between two calls to `ansi-color-apply-on-region'. This is a list of the form (CODES MARKER) or nil. CODES represents the state the last call to `ansi-color-apply-on-region' ended with, currently a list of ansi codes, and MARKER is a buffer position within an escape sequence or the last position processed.") -(make-variable-buffer-local 'ansi-color-context-region) (defun ansi-color-filter-region (begin end) "Filter out all ANSI control sequences from region BEGIN to END. @@ -461,7 +461,7 @@ "Return a face with PROPERTY set to COLOR. PROPERTY can be either symbol `foreground' or symbol `background'. -For Emacs, we just return the cons cell \(PROPERTY . COLOR). +For Emacs, we just return the cons cell (PROPERTY . COLOR). For XEmacs, we create a temporary face and return it." (if (featurep 'xemacs) (let ((face (make-face (intern (concat color "-" (symbol-name property))) @@ -530,9 +530,10 @@ (nreverse codes))) (defun ansi-color-apply-sequence (escape-sequence codes) - "Apply ESCAPE-SEQ to CODES and return the new list of codes. + "Apply ESCAPE-SEQUENCE to CODES and return the new list of codes. -ESCAPE-SEQ is an escape sequence parsed by `ansi-color-parse-sequence'. +ESCAPE-SEQUENCE is an escape sequence parsed by +`ansi-color-parse-sequence'. For each new code, the following happens: if it is 1-7, add it to the list of codes; if it is 21-25 or 27, delete appropriate @@ -577,19 +578,19 @@ The face definitions are based upon the variables `ansi-color-faces-vector' and `ansi-color-names-vector'." - (let ((ansi-color-map (make-vector 50 nil)) + (let ((map (make-vector 50 nil)) (index 0)) ;; miscellaneous attributes (mapc (function (lambda (e) - (aset ansi-color-map index e) + (aset map index e) (setq index (1+ index)) )) ansi-color-faces-vector) ;; foreground attributes (setq index 30) (mapc (function (lambda (e) - (aset ansi-color-map index + (aset map index (ansi-color-make-face 'foreground (if (consp e) (car e) e))) (setq index (1+ index)) )) @@ -598,12 +599,12 @@ (setq index 40) (mapc (function (lambda (e) - (aset ansi-color-map index + (aset map index (ansi-color-make-face 'background (if (consp e) (cdr e) e))) (setq index (1+ index)) )) ansi-color-names-vector) - ansi-color-map)) + map)) (defvar ansi-color-map (ansi-color-make-color-map) "A brand new color map suitable for `ansi-color-get-face'. @@ -613,9 +614,9 @@ numbers included in an SGR control sequences point to the correct foreground or background colors. -Example: The sequence \033[34m specifies a blue foreground. Therefore: +Example: The sequence \\033[34m specifies a blue foreground. Therefore: (aref ansi-color-map 34) - => \(foreground-color . \"blue\")") + => (foreground-color . \"blue\")") (defun ansi-color-map-update (symbol value) "Update `ansi-color-map'. ------------------------------------------------------------ revno: 113090 committer: Juanma Barranquero branch nick: trunk timestamp: Thu 2013-06-20 02:39:59 +0200 message: lisp/progmodes/prog-mode.el: Remove autoload cookies. diff: === modified file 'lisp/ChangeLog' --- lisp/ChangeLog 2013-06-19 22:28:04 +0000 +++ lisp/ChangeLog 2013-06-20 00:39:59 +0000 @@ -1,3 +1,8 @@ +2013-06-20 Juanma Barranquero + + * progmodes/prog-mode.el (prettify-symbols-mode) + (global-prettify-symbols-mode, prog-mode): Remove autoload cookies. + 2013-06-19 Lars Magne Ingebrigtsen * net/eww.el (eww-process-text-input): Display passwords as asterisks. === modified file 'lisp/progmodes/prog-mode.el' --- lisp/progmodes/prog-mode.el 2013-06-18 22:13:25 +0000 +++ lisp/progmodes/prog-mode.el 2013-06-20 00:39:59 +0000 @@ -89,7 +89,6 @@ (defvar-local prettify-symbols--keywords nil) -;;;###autoload (define-minor-mode prettify-symbols-mode "Toggle Prettify Symbols mode. With a prefix argument ARG, enable Prettify Symbols mode if ARG is @@ -132,11 +131,9 @@ (local-variable-p 'prettify-symbols-alist)) (prettify-symbols-mode 1))) -;;;###autoload (define-globalized-minor-mode global-prettify-symbols-mode prettify-symbols-mode turn-on-prettify-symbols-mode) -;;;###autoload (define-derived-mode prog-mode fundamental-mode "Prog" "Major mode for editing programming language source code." (setq-local require-final-newline mode-require-final-newline) ------------------------------------------------------------ revno: 113089 author: Gnus developers committer: Katsumi Yamaoka branch nick: trunk timestamp: Wed 2013-06-19 22:28:04 +0000 message: Merge changes made in Gnus master 2013-06-19 Lars Magne Ingebrigtsen * net/eww.el (eww-process-text-input): Display passwords as asterisks. * net/shr.el (shr-make-table-1): Protect against invalid column-spans. 2013-06-19 Tom Tromey * net/eww.el (eww-top-url): Remove. (eww-home-url, eww-start-url, eww-contents-url): New defvars. (eww-render): Set new variables. Don't set eww-top-url. (eww-handle-link): Handle "prev", "home", and "contents". Downcase the rel text. (eww-top-url): Choose best top URL. 2013-06-19 Lars Magne Ingebrigtsen * net/eww.el: Rewrite to implement form elements "by hand" instead of relying in widget.el. Using widget.el leads to too many user interface inconsistencies. (eww-self-insert): Implement entering commands in text fields. (eww-process-text-input): New function to make text input field editing work. (eww-submit): Rewrite to use the new-style form methods. (eww-select-display): Display the correct selected item. (eww-change-select): Implement changing the select value. (eww-toggle-checkbox): Implement radio/checkboxes. (eww-update-field): Fix compilation error. (eww-tag-textarea): Implement