1. 05 Oct, 2013 6 commits
  2. 04 Oct, 2013 13 commits
  3. 03 Oct, 2013 11 commits
    • Paul Eggert's avatar
      * lisp.h (eassert): Assume that COND is true when optimizing. · 75273afb
      Paul Eggert authored
      In other words, take on the behavior of eassert_and_assume.
      This makes Emacs 0.2% smaller on my platform (Fedora 19, x86-64).
      (eassert_and_assume): Remove.  All uses replaced by eassert.
      75273afb
    • Xue Fuqiao's avatar
      Add an index for modify-syntax-entry. · c9358b45
      Xue Fuqiao authored
      c9358b45
    • Xue Fuqiao's avatar
    • Paul Eggert's avatar
      * xdisp.c (Qglyphless_char): Now static. · ead45345
      Paul Eggert authored
      ead45345
    • Glenn Morris's avatar
      Auto-commit of generated files. · 8a3fafec
      Glenn Morris authored
      8a3fafec
    • Daiki Ueno's avatar
      Add support for package signature checking. · acbadd00
      Daiki Ueno authored
      * lisp/emacs-lisp/package.el (url-http-file-exists-p)
      (epg-make-context, epg-context-set-home-directory)
      (epg-verify-string, epg-context-result-for)
      (epg-signature-status, epg-signature-to-string)
      (epg-check-configuration, epg-configuration)
      (epg-import-keys-from-file): Declare.
      (package-check-signature): New user option.
      (package-unsigned-archives): New user option.
      (package-desc): Add `signed' field.
      (package-load-descriptor): Set `signed' field if .signed file exists.
      (package--archive-file-exists-p): New function.
      (package--check-signature): New function.
      (package-install-from-archive): Check package signature.
      (package--download-one-archive): Check archive signature.
      (package-delete): Remove .signed file.
      (package-import-keyring): New command.
      (package-refresh-contents): Import default keyring.
      (package-desc-status): Add "unsigned" status.
      (describe-package-1, package-menu--print-info)
      (package-menu-mark-delete, package-menu--find-upgrades)
      (package-menu--status-predicate): Support "unsigned" status.
      
      * test/automated/data/package/signed/archive-contents:
      * test/automated/data/package/signed/archive-contents.sig:
      * test/automated/data/package/signed/signed-good-1.0.el:
      * test/automated/data/package/signed/signed-good-1.0.el.sig:
      * test/automated/data/package/signed/signed-bad-1.0.el:
      * test/automated/data/package/signed/signed-bad-1.0.el.sig:
      * test/automated/data/package/key.pub:
      * test/automated/data/package/key.sec: New files.
      
      * test/automated/package-test.el (package-test-update-listing)
      (package-test-update-archives, package-test-describe-package):
      Adjust to package.el change.
      (package-test-signed): New test.
      acbadd00
    • Paul Eggert's avatar
      Merge from gnulib. · 0a858ebf
      Paul Eggert authored
      * src/conf_post.h (__has_builtin, assume): Remove; gnulib now does these.
      * src/lisp.h: Include <verify.h>, for 'assume'.
      
      This also incorpoprates:
      2013-10-02 verify: new macro 'assume'
      2013-09-26 dup2, dup3: work around another cygwin crasher
      2013-09-26 getdtablesize: work around cygwin issue
      0a858ebf
    • Paul Eggert's avatar
      * eval.c (clobbered_eassert): New macro. · b52f569d
      Paul Eggert authored
      (internal_catch, internal_condition_case)
      (internal_condition_case_1, internal_condition_case_2)
      (internal_condition_case_n): Use it instead of eassert
      when the argument contains locals clobbered by longjmp.
      Don't use clobbered locals outside of clobbered_eassert.
      (internal_lisp_condition_case): Use a volatile variable
      to work around a local variable's getting clobbered.
      b52f569d
    • Stefan Monnier's avatar
      Introduce new bytecodes for efficient catch/condition-case in lexbind. · adf2aa61
      Stefan Monnier authored
      * lisp/emacs-lisp/byte-opt.el (byte-optimize-form-code-walker):
      Optimize under `condition-case' and `catch' if
      byte-compile--use-old-handlers is nil.
      (disassemble-offset): Handle new bytecodes.
      
      * lisp/emacs-lisp/bytecomp.el (byte-pushcatch, byte-pushconditioncase)
      (byte-pophandler): New byte codes.
      (byte-goto-ops): Adjust accordingly.
      (byte-compile--use-old-handlers): New var.
      (byte-compile-catch): Use new byte codes depending on
      byte-compile--use-old-handlers.
      (byte-compile-condition-case--old): Rename from
      byte-compile-condition-case.
      (byte-compile-condition-case--new): New function.
      (byte-compile-condition-case): New function that dispatches depending
      on byte-compile--use-old-handlers.
      (byte-compile-unwind-protect): Pass a function to byte-unwind-protect
      when we can.
      
      * lisp/emacs-lisp/cconv.el (cconv-convert, cconv-analyse-form): Adjust for
      the new compilation scheme using the new byte-codes.
      
      * src/alloc.c (Fgarbage_collect): Merge scans of handlerlist and catchlist,
      and make them unconditional now that they're heap-allocated.
      
      * src/bytecode.c (BYTE_CODES): Add Bpushcatch, Bpushconditioncase
      and Bpophandler.
      (bcall0): New function.
      (exec_byte_code): Add corresponding cases.  Improve error message when
      encountering an invalid byte-code.  Let Bunwind_protect accept
      a function (rather than a list of expressions) as argument.
      
      * src/eval.c (catchlist): Remove (merge with handlerlist).
      (handlerlist, lisp_eval_depth): Not static any more.
      (internal_catch, internal_condition_case, internal_condition_case_1)
      (internal_condition_case_2, internal_condition_case_n):
      Use PUSH_HANDLER.
      (unwind_to_catch, Fthrow, Fsignal): Adjust to merged
      handlerlist/catchlist.
      (internal_lisp_condition_case): Use PUSH_HANDLER.  Adjust to new
      handlerlist which can only handle a single condition-case handler at
      a time.
      (find_handler_clause): Simplify since we only a single branch here
      any more.
      
      * src/lisp.h (struct handler): Merge struct handler and struct catchtag.
      (PUSH_HANDLER): New macro.
      (catchlist): Remove.
      (handlerlist): Always declare.
      adf2aa61
    • Stefan Monnier's avatar
      * lisp/subr.el (decode-char, encode-char): Use advertised-calling-convention · 328a8179
      Stefan Monnier authored
      instead of the docstring to discourage use of the `restriction' arg.
      (error): Use `declare'.
      * src/charset.c (Fdecode_char, Fencode_char): Remove description of
      `restriction' arg. now that it's hidden by advertised-calling-convention.
      328a8179
    • Daiki Ueno's avatar
      epg: doc improvement for verify functions · 15a1e936
      Daiki Ueno authored
      * epg.el (epg-verify-file): Add a comment saying that it does not
      notify verification error as a return value nor a signal.
      (epg-verify-string): Ditto.
      15a1e936
  4. 02 Oct, 2013 10 commits