1. 07 Oct, 2013 2 commits
    • Leo Liu's avatar
      c8af480d
    • Leo Liu's avatar
      * register.el (register-preview-delay) · 85698d63
      Leo Liu authored
      (register-preview-functions): New variables.
      (register-read-with-preview, register-preview)
      (register-describe-oneline): New functions.
      (point-to-register, window-configuration-to-register)
      (frame-configuration-to-register, jump-to-register)
      (number-to-register, view-register, insert-register)
      (copy-to-register, append-to-register, prepend-to-register)
      (copy-rectangle-to-register): Use register-read-with-preview to
      read register.
      
      Fixes: debbugs:15525
      85698d63
  2. 06 Oct, 2013 2 commits
  3. 05 Oct, 2013 5 commits
    • Dmitry Gutov's avatar
      * lisp/newcomment.el (comment-use-global-state): Change default value · da9ea6d9
      Dmitry Gutov authored
      to t, mark obsolete.
      (comment-beginning): In addition to `comment-to-syntax', check the
      value of `comment-use-global-state'.
      
      Fixes: debbugs:15251
      da9ea6d9
    • Stefan Monnier's avatar
      Get Ruby's SMIE code to pass the test suite. · 34d1a133
      Stefan Monnier authored
      * lisp/progmodes/ruby-mode.el (ruby-use-smie): Change default.
      (ruby-comment-column): Follow the global default, by default.
      (ruby-smie-grammar): Add assignment syntax.
      (ruby-smie--implicit-semi-p): No implicit semi-colon after an
      open-paren, a comma, or a \.
      (ruby-smie--forward-token, ruby-smie--backward-token): Handle heredocs,
      and line continuations.
      (ruby-smie-rules): Adjust handling of open-paren, now that it's never
      followed by implicit semi-colons.  Add rule for string concatenation
      and for indentation at BOB.
      (ruby-forward-sexp, ruby-backward-sexp): Adjust for when smie is in use.
      
      * lisp/emacs-lisp/smie.el (smie-next-sexp): Don't go back to pos before
      calling next-sexp, since next-token may have skipped chars which
      next-sexp doesn't know should be skipped!
      
      * test/indent/ruby.rb: Port a few cases from automated/ruby-mode-tests.el.
      Adjust indentation of continued line to the new SMIE behavior.
      34d1a133
    • Dmitry Gutov's avatar
      Revert 2013-10-05T02:26:39Z!dgutov@yandex.ru · aa0214da
      Dmitry Gutov authored
      `last-coding-system-used' is unreliable: it can be modified by other functions
      in `after-save-hook'.
      aa0214da
    • Leo Liu's avatar
      * progmodes/octave.el (octave-send-region): Call · 6f6ab820
      Leo Liu authored
      compilation-forget-errors.
      6f6ab820
    • Dmitry Gutov's avatar
      * lisp/progmodes/ruby-mode.el (ruby-mode): Add `ruby-mode-set-encoding' · 0106e5b3
      Dmitry Gutov authored
      to `after-save-hook' instead of `before-save-hook', because then
      we know exactly what encoding was used to write the file.
      (ruby-mode-set-encoding): Use `last-coding-system-used' instead of
      guessing.  Call `basic-save-buffer-1' after modifying the buffer.
      0106e5b3
  4. 04 Oct, 2013 8 commits
  5. 03 Oct, 2013 4 commits
    • 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
    • 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
  6. 02 Oct, 2013 2 commits
  7. 01 Oct, 2013 6 commits
  8. 30 Sep, 2013 1 commit
  9. 29 Sep, 2013 4 commits
    • Dmitry Gutov's avatar
      * lisp/emacs-lisp/package-x.el (package-upload-buffer-internal): Pass · 056453c6
      Dmitry Gutov authored
      `extras' slot from `package-desc' to `package-make-ac-desc'.
      
      * lisp/emacs-lisp/package.el (package-desc-from-define): Accept
      additional arguments as plist, convert it to an alist and store it
      in the `extras' slot.
      (package-generate-description-file): Convert extras alist back to
      plist and append to the `define-package' form arguments.
      (package--alist-to-plist): New function.
      (package--ac-desc): Add `extras' slot.
      (package--add-to-archive-contents): Check if the archive-contents
      vector is long enough, and if it is, pass its `extras' slot value
      to `package-desc-create'.
      (package-buffer-info): Call `lm-homepage', pass the returned value
      to `package-desc-from-define'.
      (describe-package-1): Render the homepage button.
      
      * test/automated/package-test.el (simple-single-desc-1-4): Remove, it
      was unused.
      (simple-single-desc): Expect :homepage property.
      (multi-file-desc): Same.
      (with-package-test): Do not save previous `default-directory'
      value, let-bind the var instead.
      (package-test-install-single): Expect :homepage property in the
      generated pkg file.
      (package-test-describe-package): Expect Homepage button.
      (package-test-describe-non-installed-package)
      (package-test-describe-non-installed-multi-file-package): Same.
      (package-test-describe-not-installed-package): Remove, it was a
      duplicate.
      
      * test/automated/package-x-test.el
      (package-x-test--single-archive-entry-1-3): Expect :homepage
      property.
      (package-x-test--single-archive-entry-1-4): Expect nil extras slot.
      
      * test/automated/data/package/archive-contents: Add :homepage
      properties to `simple-single' and `multi-file'.
      
      * test/automated/data/package/simple-single-1.3.el: Add URL header.
      
      Fixes: debbugs:13291
      056453c6
    • Jan Djärv's avatar
      * term/ns-win.el (ns-initialize-window-system): Set locale-coding-system · 832966e5
      Jan Djärv authored
      and default-process-coding-system to utf-8-unix.
      
      Fixes: debbugs:15402
      832966e5
    • Xue Fuqiao's avatar
      Refine documentation of `looking-back'. · 6cfe977d
      Xue Fuqiao authored
      * lisp/subr.el (looking-back): Do not recommend using looking-back.  (bug#5689)
      * doc/lispref/searching.texi (Regexp Search): Refine.
      6cfe977d
    • Leo Liu's avatar
      * url/url-util.el (url-pretty-length): Make obsolete and all uses · 0bf29ba6
      Leo Liu authored
      changed to file-size-human-readable.
      0bf29ba6
  10. 28 Sep, 2013 6 commits