1. 09 Jun, 2012 4 commits
    • Eli Zaretskii's avatar
      Fix "lisp nesting exceeds max-lisp-eval-depth" errors on MS-Windows. · 1e48e282
      Eli Zaretskii authored
      This happens during bootstrap; see bug#11649.
      
       lisp/makefile.w32-in (BIG_STACK_DEPTH): Enlarge to 2200.
      1e48e282
    • Chong Yidong's avatar
      * fringe.c (Fset_fringe_bitmap_face): Handle the noninteractive case. · 44286096
      Chong Yidong authored
      Fixes: debbugs:9752
      44286096
    • Chong Yidong's avatar
      Doc improvements for face remapping. · 6175e34b
      Chong Yidong authored
      * face-remap.el (face-remap-add-relative, face-remap-set-base)
      (buffer-face-set, buffer-face-toggle, buffer-face-mode-invoke):
      Doc fixes.
      
      * doc/lispref/display.texi (Face Remapping): Minor clarification.
      
      * doc/lispref/text.texi (Special Properties): Clarify the meaning of a
      list of faces in the `face' property.
      
      Fixes: debbugs:11225
      6175e34b
    • Stefan Monnier's avatar
      Don't autoload functions too eagerly during macroexpansion. · d9857e53
      Stefan Monnier authored
      * lisp/emacs-lisp/macroexp.el (macroexp--expand-all): Only autoload
      a function if there's a clear indication that it has a compiler-macro.
      * lisp/emacs-lisp/byte-run.el (defun-declarations-alist, defmacro, defun)
      (macro-declarations-alist): Add arglist to declaration functions.
      (defun-declarations-alist): Add `obsolete' and `compiler-macro'.
      * lisp/emacs-lisp/cl-seq.el (cl-member, cl-assoc):
      * lisp/emacs-lisp/cl-lib.el (cl-list*, cl-adjoin):
      * lisp/emacs-lisp/cl-extra.el (cl-get): Use the new `declare' statement.
      Also add autoload to find the compiler macro.
      * lisp/emacs-lisp/cl-macs.el (eql) [compiler-macro]: Remove.
      (cl--compiler-macro-member, cl--compiler-macro-assoc)
      (cl--compiler-macro-adjoin, cl--compiler-macro-list*)
      (cl--compiler-macro-get): New functions, replacing calls to
      cl-define-compiler-macro.
      (cl-typep) [compiler-macro]: Use macroexp-let².
      d9857e53
  2. 08 Jun, 2012 18 commits
    • Andreas Schwab's avatar
      * make-docfile.c (search_lisp_doc_at_eol): Unget last read · 7cb70fd7
      Andreas Schwab authored
      character.
      7cb70fd7
    • Glenn Morris's avatar
      Mark tiny change · f81298f8
      Glenn Morris authored
      f81298f8
    • Paul Eggert's avatar
      * xdisp.c (vmessage): Treat frame message as multibyte. · d86feb17
      Paul Eggert authored
      Without this change, (let ((§ 1)) (make-variable-buffer-local '§))
      would generate the diagnostic "Making \302\247 buffer-local while
      let-bound!".
      d86feb17
    • Ulf Jasper's avatar
      icalendar / icalendar-tests: Fix Bug#11473 -- unescape commas in timezone specs · ee574791
      Ulf Jasper authored
      2012-06-08 Nick Dokos <nicholas.dokos@hp.com>
      
      	* calendar/icalendar.el (icalendar--parse-vtimezone): Import TZID
      	string properly, fixes Bug#11473.
      
      2012-06-08  Ulf Jasper  <ulf.jasper@web.de>
      
      	* automated/icalendar-tests.el (icalendar--parse-vtimezone): Test
      	escaped commas in TZID (Bug#11473).
      	(icalendar-import-with-timezone): New.
      	(icalendar-real-world): Add new testcase as found in the bugreport
      	of Bug#11473.
      ee574791
    • Chong Yidong's avatar
      Face cleanups. Remove some uses of old-style face spec and :bold/:italic. · 4b56d0fe
      Chong Yidong authored
      * faces.el (set-face-attribute): Doc fix.
      (modify-face): Don't use :bold and :italic.
      (error, warning, success): Tweak definitions.
      
      * cus-edit.el (custom-modified, custom-invalid, custom-rogue)
      (custom-modified, custom-set, custom-changed, custom-themed)
      (custom-saved, custom-button, custom-button-mouse)
      (custom-button-pressed, custom-state, custom-comment-tag)
      (custom-variable-tag, custom-group-tag-1, custom-group-tag)
      (custom-group-subtitle): Use new-style face specs.
      (custom-invalid-face, custom-rogue-face, custom-modified-face)
      (custom-set-face, custom-changed-face, custom-saved-face)
      (custom-button-face, custom-button-pressed-face)
      (custom-documentation-face, custom-state-face)
      (custom-comment-face, custom-comment-tag-face)
      (custom-variable-tag-face, custom-variable-button-face)
      (custom-face-tag-face, custom-group-tag-face-1)
      (custom-group-tag-face): Remove obsolete face alias.
      
      * epa.el (epa-validity-high, epa-validity-medium)
      (epa-validity-low, epa-mark, epa-field-name, epa-string)
      (epa-field-name, epa-field-body):
      * font-lock.el (font-lock-comment-face, font-lock-string-face)
      (font-lock-keyword-face, font-lock-builtin-face)
      (font-lock-function-name-face, font-lock-variable-name-face)
      (font-lock-type-face, font-lock-constant-face):
      * ido.el (ido-first-match, ido-only-match, ido-subdir)
      (ido-virtual, ido-indicator, ido-incomplete-regexp):
      * speedbar.el (speedbar-button-face, speedbar-file-face)
      (speedbar-directory-face, speedbar-tag-face)
      (speedbar-selected-face, speedbar-highlight-face)
      (speedbar-separator-face):
      * whitespace.el (whitespace-newline, whitespace-space)
      (whitespace-hspace, whitespace-tab, whitespace-trailing)
      (whitespace-line, whitespace-space-before-tab)
      (whitespace-space-after-tab, whitespace-indentation)
      (whitespace-empty):
      * emulation/cua-base.el (cua-global-mark):
      * eshell/em-prompt.el (eshell-prompt):
      * net/newst-plainview.el (newsticker-new-item-face)
      (newsticker-old-item-face, newsticker-immortal-item-face)
      (newsticker-obsolete-item-face, newsticker-date-face)
      (newsticker-statistics-face, newsticker-default-face):
      * net/newst-reader.el (newsticker-feed-face)
      (newsticker-extra-face, newsticker-enclosure-face):
      * net/newst-treeview.el (newsticker-treeview-face)
      (newsticker-treeview-new-face, newsticker-treeview-old-face)
      (newsticker-treeview-immortal-face)
      (newsticker-treeview-obsolete-face)
      (newsticker-treeview-selection-face):
      * net/rcirc.el (rcirc-my-nick, rcirc-other-nick)
      (rcirc-bright-nick, rcirc-server, rcirc-timestamp)
      (rcirc-nick-in-message, rcirc-nick-in-message-full-line)
      (rcirc-prompt, rcirc-track-keyword, rcirc-url, rcirc-keyword):
      * nxml/nxml-outln.el (nxml-heading, nxml-outline-indicator)
      (nxml-outline-active-indicator, nxml-outline-ellipsis):
      * play/mpuz.el (mpuz-unsolved, mpuz-solved, mpuz-trivial)
      (mpuz-text):
      * progmodes/vera-mode.el (vera-font-lock-number)
      (vera-font-lock-function, vera-font-lock-interface):
      * textmodes/table.el (table-cell): Use new-style face specs, and
      don't use the old :bold and :italic attributes.
      
      * erc-button.el (erc-button):
      * erc-goodies.el (erc-bold-face, erc-inverse-face)
      (erc-underline-face, fg:erc-color-*):
      * erc-match.el (erc-current-nick-face, erc-dangerous-host-face)
      (erc-pal-face, erc-fool-face, erc-keyword-face):
      * erc-stamp.el (erc-timestamp-face): Likewise.
      
      * erc.el (erc-direct-msg-face, erc-header-line, erc-input-face)
      (erc-command-indicator-face, erc-notice-face, erc-action-face)
      (erc-error-face, erc-my-nick-face, erc-nick-default-face)
      (erc-nick-msg-face): Use new-style face specs, and avoid :bold.
      
      * progmodes/ebrowse.el (ebrowse-tree-mark, ebrowse-root-class)
      (ebrowse-member-attribute, ebrowse-default, ebrowse-file-name)
      (ebrowse-member-class, ebrowse-progress): Likewise.
      (ebrowse-tree-mark-face, ebrowse-root-class-face)
      (ebrowse-file-name-face, ebrowse-default-face)
      (ebrowse-member-attribute-face, ebrowse-member-class-face)
      (ebrowse-progress-face): Remove obsolete faces.
      
      * progmodes/flymake.el (flymake-errline, flymake-warnline):
      Inherit from error and warning faces respectively.
      
      * textmodes/flyspell.el (flyspell-incorrect, flyspell-duplicate):
      Likewise.
      (flyspell-incorrect-face, flyspell-duplicate-face): Remove
      obsolete aliases.
      
      * display.texi (Face Attributes): Font family does not accept
      wildcards.  De-document obsolete :bold and :italic attributes.
      (Defining Faces): Use new-style face spec format.
      4b56d0fe
    • Eli Zaretskii's avatar
      Revert inadvertent commit in dispnew.c as part of 2012-06-08T08:44:45Z!eliz@gnu.org. · d5c20fe8
      Eli Zaretskii authored
       src/dispnew.c (showing_window_margins_p): Undo last change, which
       was done due to an inadvertent commit.
       (adjust_frame_glyphs_for_frame_redisplay): Do call
       showing_window_margins_p.
      d5c20fe8
    • Michael Albinus's avatar
    • Stefan Monnier's avatar
      Clean up scoping rule of predefined single-word vars. · 513749ee
      Stefan Monnier authored
      * lisp/startup.el (argv, argi): Make lexically scoped.
      * lisp/emacs-lisp/float-sup.el (pi): Use internal-make-var-non-special.
      * lisp/emacs-lisp/cl-macs.el: Use lexical-binding.
      Rename cl-bind-* to cl--bind-*.
      * lisp/files.el: Don't require `cl' since it doesn't use it.
      * lisp/emacs-lisp/pcase.el, lisp/emacs-lisp/macroexp.el: Add coding cookie.
      * src/eval.c (Fmake_var_non_special): New primitive.
      (syms_of_eval): Defsubr it.
      * src/lread.c (syms_of_lread): Mark `values' as lexically scoped.
      513749ee
    • Juanma Barranquero's avatar
      lisp/textmodes/texinfmt.el: Fix bug#11640 (reverts part of 2008-07-31T05:33:56Z!dann@ics.uci.edu). · 595ef4ad
      Juanma Barranquero authored
      (texinfo-format-printindex): Use `texinfo-sort-region' in all platforms,
      instead of calling external sort utility.
      (texinfo-sort-region, texinfo-sort-startkeyfun): Restore functions.
      595ef4ad
    • Juanma Barranquero's avatar
    • Eli Zaretskii's avatar
      Fix BLOCK_INPUT/UNBLOCK_INPUT mismatch in 2012-06-08T08:44:30Z!dmantipov@yandex.ru. · 8bbbc977
      Eli Zaretskii authored
       src/alloc.c (allocate_vectorlike): Fix last change.
      8bbbc977
    • Eli Zaretskii's avatar
      Mention in "C-u C-x =" display how to insert the character w/o input methods. · e9f66fcb
      Eli Zaretskii authored
       lisp/descr-text.el (describe-char): Mention how to insert the
       character, if the current input method doesn't support it.
       See the discussion in this thread for the details:
       http://lists.gnu.org/archive/html/emacs-devel/2012-05/msg00533.html.
      e9f66fcb
    • Dmitry Antipov's avatar
      Block-based vector allocation of small vectors. · f3372c87
      Dmitry Antipov authored
      * src/lisp.h (struct vectorlike_header): New field `nbytes',
      adjust comment accordingly.
      * src/alloc.c (enum mem_type): New type `MEM_TYPE_VECTOR_BLOCK'
      to denote vector blocks. Adjust users (live_vector_p,
      mark_maybe_pointer, valid_lisp_object_p) accordingly.
      (COMMON_MULTIPLE): Move outside #if USE_LSB_TAG.
      (VECTOR_BLOCK_SIZE, vroundup, VECTOR_BLOCK_BYTES),
      (VBLOCK_BYTES_MIN, VBLOCK_BYTES_MAX, VECTOR_MAX_FREE_LIST_INDEX),
      (VECTOR_FREE_LIST_FLAG, ADVANCE, VINDEX, SETUP_ON_FREE_LIST),
      (VECTOR_SIZE, VECTOR_IN_BLOCK): New macros.
      (roundup_size): New constant.
      (struct vector_block): New data type.
      (vector_blocks, vector_free_lists, zero_vector): New variables.
      (all_vectors): Renamed to `large_vectors'.
      (allocate_vector_from_block, init_vectors, allocate_vector_from_block)
      (sweep_vectors): New functions.
      (allocate_vectorlike): Return `zero_vector' as the only vector of
      0 items. Allocate new vector from block if vector size is less than
      or equal to VBLOCK_BYTES_MAX.
      (Fgarbage_collect): Move all vector sweeping code to sweep_vectors.
      (init_alloc_once): Add call to init_vectors.
      * doc/lispref/internals.text (Garbage Collection): Document new
      vector management code and vectorlike_header structure.
      f3372c87
    • Katsumi Yamaoka's avatar
      Merge bugfixes done in Gnus trunk · d52ba5af
      Katsumi Yamaoka authored
      Those changes fix only the bugs having appeared in the bug list.
      Many other Gnus changes not yet merged to Emacs are in:
         ftp://ftp.jpl.org/pub/tmp/MaGnus-to-Emacs.patch
      (or http://www.jpl.org/ftp/pub/tmp/MaGnus-to-Emacs.patch)
      
      2012-06-07 Lars Magne Ingebrigtsen <larsi@gnus.org>
      * gnus-msg.el (gnus-msg-mail): Warn the user about Gnus not running
        (bug#11514).
      2012-04-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
      * gnus-msg.el (gnus-summary-cancel-article): See what From header we
        would have gotten if we posted to the group, and use that to compare
        against the message we want to cancel (bug#10808).
      d52ba5af
    • Sam Steingold's avatar
      * lisp/bindings.el (global-map): Bind XF86Forward to next-buffer and · 3d10db47
      Sam Steingold authored
      XF86Back to previous-buffer.
      (minibuffer-local-map): Bind them to next-history-element and
      previous-history-element respectively.
      * lisp/help-mode.el (help-mode-map): Bind them to help-go-forward and
      help-go-back respectively.
      * lisp/info.el (Info-mode-map): Bind them to Info-history-forward and
      Info-history-back respectively.
      These are the keys next to Up on the ThinkPad keyboard.
      3d10db47
    • Stefan Monnier's avatar
      Get rid of cl-lexical-let, keeping only lexical-let for compatibility. · de7e2b36
      Stefan Monnier authored
      * lisp/emacs-lisp/cl-macs.el: Provide itself.
      (cl--labels-convert-cache): New var.
      (cl--labels-convert): New function.
      (cl-flet, cl-labels): New implementation with new semantics, relying on
      lexical-binding.
      * lisp/emacs-lisp/cl.el: Mark compatibility aliases as obsolete.
      (cl-closure-vars, cl--function-convert-cache)
      (cl--function-convert): Move from cl-macs.el.
      (lexical-let, lexical-let*, flet, labels): Move from cl-macs.el and
      rename by removing the "cl-" prefix.
      * lisp/emacs-lisp/macroexp.el (macroexp-unprogn): New function.
      de7e2b36
    • Stefan Monnier's avatar
    • Paul Eggert's avatar
      * texinfo.tex: Merge from gnulib. · 0e8bbf66
      Paul Eggert authored
      0e8bbf66
  3. 07 Jun, 2012 7 commits
    • Stefan Monnier's avatar
      Move old compatiblity to cl.el. Remove cl-macroexpand-all. · 6fa6c4ae
      Stefan Monnier authored
      * emacs-lisp/cl-extra.el (cl-map-keymap, cl-copy-tree)
      (cl-not-hash-table, cl-builtin-gethash, cl-builtin-remhash)
      (cl-builtin-clrhash, cl-builtin-maphash, cl-gethash, cl-puthash)
      (cl-remhash, cl-clrhash, cl-maphash, cl-make-hash-table)
      (cl-hash-table-p, cl-hash-table-count): Move to cl.el.
      (cl-macroexpand-cmacs): Remove var.
      (cl-macroexpand-all, cl-macroexpand-body): Remove funs.
      Use macroexpand-all instead.
      
      * emacs-lisp/cl-lib.el (cl-macro-environment): Remove decl.
      (cl-macroexpand): Move to cl-macs.el and rename to cl--sm-macroexpand.
      (cl-member): Remove old alias.
      
      * emacs-lisp/cl-macs.el (cl-macro-environment): Remove var.
      Use macroexpand-all-environment instead.
      (cl--old-macroexpand): New var.
      (cl--sm-macroexpand): New function.
      (cl-symbol-macrolet): Use it during macro expansion.
      (cl--function-convert-cache): New var.
      (cl--function-convert): New function, extracted from
      cl-macroexpand-all.
      (cl-lexical-let): Use it.
      
      * emacs-lisp/cl.el (cl-macroexpand, cl-macro-environment)
      (cl-macroexpand-all, cl-not-hash-table, cl-builtin-gethash)
      (cl-builtin-remhash, cl-builtin-clrhash, cl-builtin-maphash)
      (cl-map-keymap, cl-copy-tree, cl-gethash, cl-puthash, cl-remhash)
      (cl-clrhash, cl-maphash, cl-make-hash-table, cl-hash-table-p)
      (cl-hash-table-count): Add old compatibility aliases.
      6fa6c4ae
    • Stefan Monnier's avatar
      Cleanup cl-macs namespace. Add macro helpers in macroexp.el. · 4dd1c416
      Stefan Monnier authored
      * emacs-lisp/macroexp.el (macroexp-progn, macroexp-let*, macroexp-if)
      (macroexp-let², macroexp--const-symbol-p, macroexp-const-p)
      (macroexp-copyable-p): New functions and macros.
      * emacs-lisp/edebug.el (edebug-unwrap):
      * emacs-lisp/disass.el (disassemble-internal): Use macroexp-progn.
      * emacs-lisp/pcase.el: Use macroexp-let*, macroexp-if, ...
      (pcase--let*): Remove.
      * emacs-lisp/bytecomp.el (byte-compile-const-symbol-p)
      (byte-compile-constp): Remove.  Use macroexp--const-symbol-p and
      macroexp-const-p instead.
      * emacs-lisp/byte-opt.el: Use macroexp-const-p and macroexp-progn.
      
      * emacs-lisp/cl-macs.el: Clean up the name space by using "cl--"
      instead of "cl-" for internal definitions.  Use macroexp-const-p.
      (cl-old-bc-file-form): Remove var.
      (cl-const-exprs-p): Remove fun.
      (cl-labels, cl-macrolet): Use backquote.
      (cl-lexical-let): Use cl-symbol-macrolet.  Don't use cl-defun-expander.
      (cl-defun-expander, cl-byte-compile-compiler-macro): Remove fun.
      (cl-define-setf-expander): Rename from cl-define-setf-method.
      * emacs-lisp/cl.el: Adjust alias for define-setf-method.
      
      * international/mule-cmds.el: Don't require CL.
      (view-hello-file): Don't use `letf'.
      4dd1c416
    • Stefan Monnier's avatar
      * tmm.el (tmm-prompt): Use string-prefix-p. · 7287f2f3
      Stefan Monnier authored
      (tmm-completion-delete-prompt): Don't affect current-buffer outside.
      (tmm-add-prompt): Use minibuffer-completion-help.
      (tmm-delete-map): Remove.
      7287f2f3
    • Stefan Monnier's avatar
      ed8bd4d7
    • Chong Yidong's avatar
      Add NEWS item about Buffer Menu rewrite. · 8b0823d6
      Chong Yidong authored
      8b0823d6
    • Stefan Merten's avatar
      * rst.el: Use `eval-when-compile' for requiring · 7b4cdbf4
      Stefan Merten authored
      `cl.el'.  Silence compiler warnings.  Fix versions.
      
      (rst-position-if, rst-position, rst-some, rst-signum): New
      functions.
      (rst-shift-region, rst-adornment-level, rst-compute-tabs)
      (rst-indent-line, rst-shift-region, rst-forward-line): Use new
      functions.
      
      (rst-package-emacs-version-alist): Correct Emacs version to
      represent major merge with upstream.
      (rst-transition, rst-adornment, rst-compile-toolsets): Fix
      versions.
      7b4cdbf4
    • Paul Eggert's avatar
      * doprnt.c (doprnt): Truncate multibyte char correctly. · 86f158bc
      Paul Eggert authored
      Without this change, doprnt (buf, 2, "%s", FORMAT_END, AP)
      would mishandle a string argument "Xc" if X was a multibyte
      character of length 2: it would truncate after X's first byte
      rather than including all of X.
      86f158bc
  4. 06 Jun, 2012 11 commits