1. 09 Aug, 2013 12 commits
    • Stefan Monnier's avatar
      * lisp/subr.el (define-error): New function. · 54bd972f
      Stefan Monnier authored
      * doc/lispref/control.texi (Signaling Errors): Refer to define-error.
      (Error Symbols): Add `define-error'.
      * doc/lispref/errors.texi (Standard Errors): Don't refer to `error-conditions'.
      * lisp/progmodes/ada-xref.el (ada-error-file-not-found): Rename from
      error-file-not-found and define with define-error.
      * lisp/emacs-lisp/cl-lib.el (cl-assertion-failed): Move here from subr.el
      and define with define-error.
      * lisp/userlock.el (file-locked, file-supersession):
      * lisp/simple.el (mark-inactive):
      * lisp/progmodes/js.el (js-moz-bad-rpc, js-js-error):
      * lisp/progmodes/ada-mode.el (ada-mode-errors):
      * lisp/play/life.el (life-extinct):
      * lisp/nxml/xsd-regexp.el (xsdre-invalid-regexp, xsdre-parse-error):
      * lisp/nxml/xmltok.el (xmltok-markup-declaration-parse-error):
      * lisp/nxml/rng-util.el (rng-error):
      * lisp/nxml/rng-uri.el (rng-uri-error):
      * lisp/nxml/rng-match.el (rng-compile-error):
      * lisp/nxml/rng-cmpct.el (rng-c-incorrect-schema):
      * lisp/nxml/nxml-util.el (nxml-error, nxml-file-parse-error):
      * lisp/nxml/nxml-rap.el (nxml-scan-error):
      * lisp/nxml/nxml-outln.el (nxml-outline-error):
      * lisp/net/soap-client.el (soap-error):
      * lisp/net/gnutls.el (gnutls-error):
      * lisp/net/ange-ftp.el (ftp-error):
      * lisp/mpc.el (mpc-proc-error):
      * lisp/json.el (json-error, json-readtable-error, json-unknown-keyword)
      (json-number-format, json-string-escape, json-string-format)
      (json-key-format, json-object-format):
      * lisp/jka-compr.el (compression-error):
      * lisp/international/quail.el (quail-error):
      * lisp/international/kkc.el (kkc-error):
      * lisp/emacs-lisp/ert.el (ert-test-failed):
      * lisp/calc/calc.el (calc-error, inexact-result, math-overflow)
      (math-underflow):
      * lisp/bookmark.el (bookmark-error-no-filename):
      * lisp/epg.el (epg-error): Define with define-error.
      54bd972f
    • Eli Zaretskii's avatar
      Fix bug #15064 with assertion violation due to mouse face. · 14ba0822
      Eli Zaretskii authored
       src/xdisp.c (draw_glyphs): Don't compare row pointers, compare row
       vertical positions instead.  This avoids calling MATRIX_ROW with
       row numbers that are possibly beyond valid limits.
      14ba0822
    • Stefan Monnier's avatar
      * lisp/time.el (display-time-event-handler) · 0ea9e53a
      Stefan Monnier authored
      (display-time-next-load-average): Don't call sit-for since it seems
      unnecessary.
      
      Fixes: debbugs:15045
      0ea9e53a
    • Dmitry Antipov's avatar
      Use xstrdup and build_unibyte_string where applicable. · 309f24d1
      Dmitry Antipov authored
      * alloc.c (xstrdup): Tiny cleanup.  Add eassert.
      * xfns.c (x_window):
      * xrdb.c (x_get_customization_string):
      * xterm.c (xim_initialize):
      * w32fns.c (w32_window): Use xstrdup.
      (w32_display_monitor_attributes_list):
      * emacs.c (init_cmdargs):
      * keyboard.c (PUSH_C_STR):
      * nsfont.m (nsfont_open):
      * sysdep.c (system_process_attributes):
      * w32.c (system_process_attributes):
      * xdisp.c (message1, message1_nolog): Use build_unibyte_string.
      309f24d1
    • Eli Zaretskii's avatar
      Define a few variables of obscure types to aid debugging exceptions on Windows. · 55902276
      Eli Zaretskii authored
       src/w32.c (PEXCEPTION_POINTERS, PEXCEPTION_RECORD, PCONTEXT): Define
       variables of these types so that GDB would know about them, as aid
       for debugging fatal exceptions.  (Bug#15024)  See also
       http://sourceware.org/ml/gdb/2013-08/msg00010.html for related
       discussions.
      55902276
    • Katsumi Yamaoka's avatar
    • Katsumi Yamaoka's avatar
      Gnus: delete temporary files when Gnus exits instead of using timers · a025f7d6
      Katsumi Yamaoka authored
      lisp/gnus/mm-decode.el (mm-temp-files-to-be-deleted,
        mm-temp-files-cache-file): New internal variables.
      (mm-temp-files-delete): New function; add it to gnus-exit-gnus-hook.
      (mm-display-external): Use it to delete temporary files instead of
        using timers.
      a025f7d6
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/checkdoc.el: Remove redundant :group keywords. · b0429158
      Stefan Monnier authored
      Use #' instead of ' to quote functions.
      (checkdoc-output-mode): Use setq-local.
      (checkdoc-spellcheck-documentation-flag, checkdoc-ispell-lisp-words)
      (checkdoc-verb-check-experimental-flag, checkdoc-proper-noun-regexp)
      (checkdoc-common-verbs-regexp): Mark safe-local-variable.
      (checkdoc-ispell, checkdoc-ispell-current-buffer)
      (checkdoc-ispell-interactive, checkdoc-ispell-message-interactive)
      (checkdoc-ispell-message-text, checkdoc-ispell-start)
      (checkdoc-ispell-continue, checkdoc-ispell-comments)
      (checkdoc-ispell-defun): Remove unused arg `take-notes'.
      
      Fixes: debbugs:15010
      b0429158
    • Stefan Monnier's avatar
    • Xue Fuqiao's avatar
      241de290
    • Xue Fuqiao's avatar
    • Juanma Barranquero's avatar
      Move frameset-to-register stuff from register.el to frameset.el. · 77187e6f
      Juanma Barranquero authored
      lisp/register.el (frameset-frame-id, frameset-frame-with-id, frameset-p)
      (frameset-restore, frameset-save, frameset-session-filter-alist):
      Remove declarations.
      (register-alist): Doc fix.
      (frameset-to-register): Move to frameset.el.
      (jump-to-register, describe-register-1): Remove frameset-specific code.
      
      lisp/frameset.el (frameset-p): Add autoload cookie.
      (frameset--jump-to-register): New function, based on code moved from
      register.el.
      (frameset-to-register): Move from register.el.  Adapt to `registerv'.
      77187e6f
  2. 08 Aug, 2013 20 commits
  3. 07 Aug, 2013 8 commits
    • Juanma Barranquero's avatar
      lisp/frameset.el: Convert `frameset' to vector and add new slots. · a912c016
      Juanma Barranquero authored
      (frameset): Use type vector, not list (incompatible change).
      Do not declare a new constructor, use the default one.
      Upgrade suggested properties `app', `name' and `desc' to slots `app',
      `name' and `description', respectively, and add read-only slot `timestamp'.
      Doc fixes.
      (frameset-copy, frameset-persistent-filter-alist)
      (frameset-filter-alist, frameset-switch-to-gui-p)
      (frameset-switch-to-tty-p, frameset-filter-tty-to-GUI)
      (frameset-filter-sanitize-color, frameset-filter-minibuffer)
      (frameset-filter-iconified, frameset-keep-original-display-p):
      Doc fixes.
      (frameset-filter-shelve-param, frameset-filter-unshelve-param):
      Rename from frameset-filter-(save|restore)-param.  All callers changed.
      Doc fix.
      (frameset-p): Adapt to change to vector and be more thorough.
      Change arg name to OBJECT.  Doc fix.
      (frameset-prop): Rename arg PROP to PROPERTY.  Doc fix.
      (frameset-session-filter-alist): Rename from frameset-live-filter-alist.
      All callers changed.
      (frameset-frame-with-id): Rename from frameset-locate-frame-id.
      All callers changed.
      (frameset--record-minibuffer-relationships): Rename from
      frameset--process-minibuffer-frames.  All callers changed.
      (frameset-save): Add new keyword arguments APP, NAME and DESCRIPTION.
      Use new default constructor (again).  Doc fix.
      (frameset--find-frame-if): Rename from `frameset--find-frame.
      All callers changed.
      (frameset--reuse-frame): Rename arg FRAME-CFG to PARAMETERS.
      (frameset--initial-params): Rename arg FRAME-CFG to PARAMETERS.
      Doc fix.
      (frameset--restore-frame): Rename args FRAME-CFG and WINDOW-CFG to
      PARAMETERS and WINDOW-STATE, respectively.
      (frameset-restore): Add new keyword argument PREDICATE.
      Reset frameset--target-display to nil.  Doc fix.
      
      lisp/desktop.el (desktop-save-frameset): Use new frameset-save args.
      Use lexical-binding.
      a912c016
    • Stefan Monnier's avatar
      * lisp/progmodes/bat-mode.el (bat--syntax-propertize): New var. · f001e98e
      Stefan Monnier authored
      (bat-mode): Use it.
      (bat-mode-syntax-table): Mark \n as end-of-comment.
      (bat-font-lock-keywords): Remove comment rule.
      f001e98e
    • Stefan Monnier's avatar
      * lisp/progmodes/bat-mode.el: Rename from dos.el. Use "bat-" prefix. · 7679edb1
      Stefan Monnier authored
      (dos-mode-help): Remove.  Use describe-mode (C-h m) instead.
      7679edb1
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/bytecomp.el: Check existence of f in #'f. · bb41480a
      Stefan Monnier authored
      (byte-compile-callargs-warn): Use `push'.
      (byte-compile-arglist-warn): Ignore higher-order "calls".
      (byte-compile-file-form-autoload): Use `pcase'.
      (byte-compile-function-form): If quoting a symbol, check that it exists.
      bb41480a
    • Dmitry Antipov's avatar
      Fix typo in ChangeLog entry. · e5eefe9b
      Dmitry Antipov authored
      e5eefe9b
    • Jan Djärv's avatar
      * xselect.c (x_send_client_event): Set send_event and serial, memset · 8fd9c92e
      Jan Djärv authored
      data.l as it might be bigger than data.b.   Use 24 bit mask to
      XSendEvent.
      
      Fixes: debbugs:15034
      8fd9c92e
    • Eli Zaretskii's avatar
      Minor fixes in lisp/progmodes/dos.el. · cdc1ebb9
      Eli Zaretskii authored
       lisp/progmodes/dos.el (dos-font-lock-keywords): Rename LINUX to UNIX
       and add a few popular commands found in batch files.
       (dos, dos-label-face, dos-cmd-help, dos-run, dos-run-args)
       (dos-mode): Doc fixes.
      cdc1ebb9
    • Stefan Monnier's avatar
      * lisp/progmodes/dos.el (auto-mode-alist): Add entries for dos-mode. · 312b1740
      Stefan Monnier authored
      (dos-mode): Use setq-local.  Add space after "rem".
      (dos-mode-syntax-table): Don't use "w" for symbol chars.
      (dos-font-lock-keywords): Try to adjust font-lock rules accordingly.
      312b1740