1. 21 Jun, 2013 15 commits
    • Juanma Barranquero's avatar
      leim/quail/*.el: Fix typos. · e67e483f
      Juanma Barranquero authored
      * leim/quail/croatian.el ("croatian-prefix"):
      * leim/quail/czech.el ("czech", "czech-qwerty"):
      * leim/quail/ipa-praat.el ("ipa-praat"):
      * leim/quail/ipa.el ("ipa-x-sampa"):
      * leim/quail/tibetan.el ("tibetan-wylie", "tibetan-tibkey"):
      * leim/quail/uni-input.el (ucs-input-activate): Fix typos in docstrings.
      e67e483f
    • Juanma Barranquero's avatar
      lisp/*.el: Fix typos; use string-match-p, looking-at-p, setq-local, defvar-local. · cedf5c9d
      Juanma Barranquero authored
      * lisp/allout-widgets.el (allout-widgets-mode-off)
        (allout-widgets-mode-on, allout-widgets-pre-command-business)
        (allout-widgets-post-command-business)
        (allout-widgets-after-copy-or-kill-function)
        (allout-widgets-after-undo-function, allout-test-range-overlaps)
        (allout-decorate-item-and-context)
        (allout-graphics-modification-handler): Fix typos in docstrings.
        (allout-get-or-create-parent-widget): Use `looking-at-p'.
      
      * lisp/cmuscheme.el (scheme-start-file): Doc fix.
        (inferior-scheme-mode, switch-to-scheme): Fix typos in docstrings.
        (scheme-input-filter): Use `string-match-p'.
      
      * lisp/composite.el (compose-gstring-for-terminal): Fix typo in docstring.
      
      * lisp/dired-x.el: Use Dired consistently in docstrings.
      
      * lisp/dired.el: Use Dired consistently in docstrings.
        (dired-readin, dired-mode): Use `setq-local'.
        (dired-switches-alist): Make defvar-local.
        (dired-buffers-for-dir): Use `zerop'.
        (dired-safe-switches-p, dired-switches-escape-p)
        (dired-insert-old-subdirs, dired-move-to-end-of-filename)
        (dired-glob-regexp, dired-in-this-tree, dired-goto-file-1)
        (dired-sort-set-mode-line, dired-sort-toggle, dired-sort-R-check):
        (dired-goto-next-nontrivial-file): Use `string-match-p'.
        (dired-align-file, dired-insert-directory, dired-mark-files-in-region)
        (dired-toggle-marks, dired-mark-files-containing-regexp)
        (dired-mark-symlinks, dired-mark-directories, dired-mark-executables)
        (dired-flag-auto-save-files, dired-flag-backup-files):
        Use `looking-at-p'.
        (dired-mark-files-regexp, dired-build-subdir-alist):
        Use `string-match-p', `looking-at-p'.
      
      * lisp/dos-w32.el (untranslated-canonical-name, untranslated-file-p)
        (direct-print-region-helper): Use `string-match-p'.
      cedf5c9d
    • Glenn Morris's avatar
      Auto-commit of generated files. · 4628c0bf
      Glenn Morris authored
      4628c0bf
    • Leo Liu's avatar
      * comint.el (comint-redirect-results-list-from-process): Fix · aed838b5
      Leo Liu authored
      infinite loop.
      aed838b5
    • Lars Magne Ingebrigtsen's avatar
    • Glenn Morris's avatar
      ChangeLog fix for previous change · 7f8e3b22
      Glenn Morris authored
      7f8e3b22
    • Glenn Morris's avatar
      cookie1.el small cleanup · e7a526e3
      Glenn Morris authored
      Make some funcs interactive, copy some functionality from yow.el.
      
      * lisp/play/cookie1.el (cookie): New custom group.
      (cookie-file): New option.
      (cookie-check-file): New function.
      (cookie): Make it interactive.  Make start and end messages optional.
      Interactively, display the result.  Default to cookie-file.
      (cookie-insert): Default to cookie-file.
      (cookie-snarf): Make start and end messages optional.
      Default to cookie-file.  Use with-temp-buffer.
      (cookie-read): Rename from read-cookie.
      Make start and end messages optional.  Default to cookie-file.
      (cookie-shuffle-vector): Rename from shuffle-vector.  Use dotimes.
      (cookie-apropos, cookie-doctor): New functions, copied from yow.el
      
      * lisp/obsolete/yow.el (read-zippyism): Use new name for read-cookie.
      e7a526e3
    • Leo Liu's avatar
    • Glenn Morris's avatar
    • Glenn Morris's avatar
      * lisp/url/url-future.el (url-future-call): Remove useless value call. · 6bfd7cd0
      Glenn Morris authored
      An earlier version of this function returned the value, ref
      http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00708.html
      but now it returns the function (see commentary).
      6bfd7cd0
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/package.el: Use tar-mode rather than tar executable. · fd846ab4
      Stefan Monnier authored
      Consolidate the single-file vs tarball code.
      (package-desc-suffix): New function.
      (package-desc-full-name): Don't bother inlining it.
      (package-load-descriptor): Return the new package-desc.
      (package-mark-obsolete): Remove unused arg `package'.
      (package-unpack): Make it work for single files as well.
      Make it update package-alist.
      (package--make-autoloads-and-stuff): Rename from
      package--make-autoloads-and-compile.  Don't compile any more.
      (package--compile): New function.
      (package-generate-description-file): New function, extracted from
      package-unpack-single.
      (package-unpack-single): Remove.
      (package--with-work-buffer): Add indentation and debugging info.
      (package-download-single): Remove.
      (package-install-from-archive): Rename from package-download-tar, make
      it take a pkg-desc, and make it work for single files as well.
      (package-download-transaction): Simplify.
      (package-tar-file-info): Remove `file' arg.  Rewrite not to use an
      external tar program.
      (package-install-from-buffer): Remove `pkg-desc' argument.
      Use package-tar-file-info for tar-mode buffers.
      (package-install-file): Simplify accordingly.
      (package-archive-base): Change to take a pkg-desc.
      * lisp/tar-mode.el (tar--check-descriptor): New function, extracted from
      tar-get-descriptor.
      (tar-get-descriptor): Use it.
      (tar-get-file-descriptor): New function.
      (tar--extract): New function, extracted from tar-extract.
      (tar--extract): Use it.
      * lisp/emacs-lisp/package-x.el (package-upload-file): Decode the file, in
      case the summary uses non-ascii.  Adjust to new calling convention of
      package-tar-file-info.
      fd846ab4
    • Glenn Morris's avatar
      d1f7f5a0
    • Leo Liu's avatar
      * comint.el (comint-redirect-results-list-from-process): Fix · b7deae5e
      Leo Liu authored
      random delay.
      
      Fixes: debbugs:14681
      b7deae5e
    • YAMAMOTO Mitsuharu's avatar
    • Juanma Barranquero's avatar
  2. 20 Jun, 2013 14 commits
    • Juanma Barranquero's avatar
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/cl-loaddefs.el: Don't version-control any more. · aff6371e
      Stefan Monnier authored
      * lisp/emacs-lisp/cl-lib.el: Load cl-macs when cl-loaddefs is not
      yet available.
      * lisp/Makefile.in (AUTOGEN_VCS): Move cl-loaddefs.el...
      (AUTOGENEL): ... here.
      * lisp/emacs-lisp/cl-macs.el (cl--sublis): New function.
      (cl--defsubst-expand): Use it.
      * .bzrignore: Don't unignore cl-loaddefs.el.
      aff6371e
    • Paul Eggert's avatar
      * syntax.c: Integer cleanups. · 1fc71008
      Paul Eggert authored
      (SYNTAX_FLAGS_COMMENT_STYLEC): Return a boolean, not 0-or-2.
      All uses that need 0-or-2 changed to:
      (SYNTAX_FLAGS_COMMENT_STYLEC2): New macro, with the same semantics
      as the old SYNTAX_FLAGS_COMMENT_STYLEC.
      (struct lisp_parse_state, syntax_prefix_flag_p, update_syntax_table)
      (char_quoted, prev_char_comend_first, back_comment)
      (Finternal_describe_syntax_value, skip_chars, skip_syntaxes)
      (in_classes, forw_comment, scan_lists, scan_sexps_forward):
      Use bool for boolean.
      (update_syntax_table, skip_chars, skip_syntaxes):
      Prefer int to unsigned when either will do.
      (back_comment): Return boolean success flag, like forw_comment,
      instead of positive-or-minus-1 (which might have overflowed int anyway).
      Don't stuff ptrdiff_t into int.
      (syntax_spec_code, syntax_code_spec): Now const.
      (Fmatching_paren, scan_lists, scan_sexps_forward):
      Use enum syntaxcode for syntax code.
      (Fmatching_paren): Check that arg is a character, not just an integer.
      (Fstring_to_syntax): Don't assume 0377 fits in enum syntaxcode.
      (Finternal_describe_syntax_value): Omit no-longer-needed
      comparison to 0.
      (skip_chars): Use char, not unsigned char, when the distinction
      doesn't matter.
      (forw_comment, scan_lists): Prefer A |= B to A = A || B when B's cheap.
      * bytecode.c (exec_byte_code):
      * syntax.c (syntax_spec_code, Fchar_syntax)
      (Finternal_describe_syntax_value, skip_chars, skip_syntaxes)
      (init_syntax_once):
      * syntax.h (SYNTAX_WITH_FLAGS):
      Omit unnecessary casts.
      1fc71008
    • Eli Zaretskii's avatar
      Yet another attempt at fixing bugs #14602, 14630, 14669. · b932cad7
      Eli Zaretskii authored
       src/w32fns.c (w32_wnd_proc): Don't compute the header line and mode
       line dimensions here, to avoid race conditions with the main
       thread.
       src/w32term.c (w32_draw_window_cursor): Compute the header line and
       mode line dimensions here.
       <w32_system_caret_window, w32_system_caret_hdr_height>:
       <w32_system_caret_mode_height>: New variables.
       src/w32term.h: Declare them.
      b932cad7
    • Paul Eggert's avatar
      * alloc.c (die): Move "assertion failed" string here ... · 5013fc08
      Paul Eggert authored
      * lisp.h (eassert): ... from here.  Also, suppress evaluation of
      COND when SUPPRESS_CHECKING.  This shrinks the executable text
      size by 0.8% to 2.2% when configured with --enable-checking,
      depending on optimization flags (GCC 4.8.1 x86-64).
      5013fc08
    • Paul Eggert's avatar
      Add log2 support and make log10 obsolete for consistency. · 89561f72
      Paul Eggert authored
      * configure.ac (log2): Check for this function.
      * doc/lispref/numbers.texi (Math Functions): Remove obsolete function log10.
      * lisp/subr.el (log10): Move here from C code, and declare as obsolete.
      All uses of (log10 X) replaced with (log X 10).
      * src/floatfns.c (Flog) [HAVE_LOG2]: Use log2 if available and if the
      base is 2; this is more accurate.
      (Flog10): Move to Lisp (marked obsolete there).
      89561f72
    • Juanma Barranquero's avatar
      lisp/emacs-lisp/tabulated-list.el: Use defvar-local, setq-local. · 47199123
      Juanma Barranquero authored
      (tabulated-list-format): Fix typo.  Declare with `defvar-local'.
      (tabulated-list-use-header-line, tabulated-list-entries)
      (tabulated-list-padding, tabulated-list-printer)
      (tabulated-list-sort-key): Declare with `defvar-local'.
      (tabulated-list-init-header, tabulated-list-print-fake-header):
      Use `setq-local'.
      47199123
    • Michael Albinus's avatar
      Fix ChangeLog entry. · 40e90e48
      Michael Albinus authored
      40e90e48
    • Michael Albinus's avatar
      * arc-mode.el (archive-mode): Add `archive-write-file' also for · 4a172eab
      Michael Albinus authored
      remote files.  (Bug#14652)
      4a172eab
    • Juanma Barranquero's avatar
      lisp/(cus-edit,custom).el: Fix typos; use setq-local, string-match-p, looking-at-p. · d5b27848
      Juanma Barranquero authored
      * lisp/cus-edit.el:
        (custom-commands): Fix typos.
        (custom-display): Fix tooltip text.
        (custom-magic-alist, custom-filter-face-spec, custom-group-members):
        Fix typos in docstrings.
        (custom--initialize-widget-variables, Custom-mode): Use `setq-local'.
        (custom-unlispify-menu-entry, custom-magic-value-create)
        (custom-add-see-also, custom-group-value-create): Use ?\s.
        (custom-guess-type, customize-apropos, editable-field)
        (custom-face-value-create): Use `string-match-p'.
        (custom-save-variables, custom-save-faces): Use `looking-at-p'.
      
      * lisp/custom.el (custom-load-symbol): Use `string-match-p'.
      d5b27848
    • Juanma Barranquero's avatar
      01a43901
    • Paul Eggert's avatar
      * floatfns.c: Add commentary re C99 and C11. · 33cbd259
      Paul Eggert authored
      33cbd259
    • Juanma Barranquero's avatar
      lisp/ansi-color.el: Convert to lexical binding. · a5c581d8
      Juanma Barranquero authored
      (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.
      a5c581d8
    • Juanma Barranquero's avatar
  3. 19 Jun, 2013 11 commits