1. 31 May, 2012 1 commit
    • Stefan Monnier's avatar
      Add `declare' for `defun'. Align `defmacro's with it. · 500fcedc
      Stefan Monnier authored
      * lisp/emacs-lisp/easy-mmode.el (define-minor-mode)
      (define-globalized-minor-mode): Don't autoload the var definitions.
      * lisp/emacs-lisp/byte-run.el: Use lexical-binding.
      (defun-declarations-alist, macro-declarations-alist): New vars.
      (defmacro, defun): Use them.
      (make-obsolete, define-obsolete-function-alias)
      (make-obsolete-variable, define-obsolete-variable-alias):
      Use `declare'.
      (macro-declaration-function): Mark obsolete.
      * lisp/emacs-lisp/autoload.el: Use lexical-binding.
      (make-autoload): Add `expansion' arg.  Rely more on macro expansion.
  2. 30 May, 2012 2 commits
    • Agustín Martín's avatar
      ispell.el: Define `ispell-with-no-warnings' as a macro. Deal with obsolete `interactive-p' · 6e8a1786
      Agustín Martín authored
      * Current `ispell-with-no-warnings' definition does not avoid warnings.
        Use a macro definition taken from orgmode.
      * Deal with a couple of occurrences of obsolete `interactive-p'.
    • Stefan Monnier's avatar
      * lisp/emacs-lisp/byte-run.el (defmacro, defun): Move from C. · 61b108cc
      Stefan Monnier authored
      (macro-declaration-function): Move var from C code.
      (macro-declaration-function): Define function with defalias.
      * lisp/emacs-lisp/macroexp.el (macroexpand-all-1):
      * lisp/emacs-lisp/cconv.el (cconv-convert, cconv-analyse-form):
      * lisp/emacs-lisp/byte-opt.el (byte-optimize-form-code-walker): Don't handle
      defun/defmacro any more.
      * lisp/emacs-lisp/bytecomp.el (byte-compile-arglist-signature):
      Provide fallback for unknown arglist.
      (byte-compile-arglist-warn): Change calling convention.
      (byte-compile-output-file-form): Move print-vars binding.
      (byte-compile-output-docform): Simplify accordingly.
      (byte-compile-file-form-defun, byte-compile-file-form-defmacro)
      (byte-compile-defmacro-declaration): Remove.
      (byte-compile-file-form-defmumble): Generalize to defalias.
      (byte-compile-output-as-comment): Return byte-positions.
      Simplify callers accordingly.
      (byte-compile-lambda): Use `assert'.
      (byte-compile-defun, byte-compile-defmacro): Remove.
      Use byte-compile-file-form-defmumble.
      (byte-compile-defalias-warn): Remove.
      * src/eval.c (Fdefun, Fdefmacro, Vmacro_declaration_function):
      Move to byte-run.el.
      (Fautoload): Do the hash-doc more carefully.
      * src/data.c (Fdefalias): Purify definition, except for keymaps.
      (Qdefun): Move from eval.c.
      * src/lisp.h (Qdefun): Remove.
      * src/lread.c (read1): Tiny simplification.
      * lib-src/make-docfile.c: Improve comment style.
      (search_lisp_doc_at_eol): New function.
      (scan_lisp_file): Use it.
  3. 29 May, 2012 11 commits
    • Stefan Merten's avatar
      Silence `checkdoc-ispell' errors where possible. Fix authors. Improve · 6d3f7c2f
      Stefan Merten authored
      comments.  Improve loading of `cl'.
      (rst-mode-abbrev-table): Merge definition.
      (rst-mode): Make sure `font-lock-defaults' is buffer local.
      (rst-define-key, rst-deprecated-keys, rst-call-deprecated): Refactor.
    • Ulf Jasper's avatar
      icalendar-tests: Fix Bug#11525 -- Add icalendar-import-format-uid · 6dbaa1c7
      Ulf Jasper authored
      2012-05-29  Ulf Jasper  <ulf.jasper@web.de>
      	* calendar/icalendar.el
      	(icalendar-export-region): Export UID properly.
      2012-05-29 Leo Liu <sdl.web@gmail.com>
      	* calendar/icalendar.el (icalendar-import-format): Add
      	`icalendar-import-format-uid' (Bug#11525).
      	(icalendar-import-format-uid): New.
      	(icalendar--parse-summary-and-rest, icalendar--format-ical-event):
      	Export UID.
    • Stefan Monnier's avatar
      Fix minor corner case bugs in byte compilation and pcase. · 6876a58d
      Stefan Monnier authored
      * lisp/emacs-lisp/byte-opt.el (byte-compile-inline-expand): Don't re-preprocess
      functions from byte-compile-function-environment.
      * lisp/emacs-lisp/bytecomp.el (byte-compile-constp): Treat #'v as a constant.
      (byte-compile-close-variables): Bind byte-compile--outbuffer here...
      (byte-compile-from-buffer): ...rather than here.
      * lisp/emacs-lisp/pcase.el (pcase--expand): Accept different sets of vars in
      different alternative patterns.
      (pcase-codegen): Be more careful to preserve identity.
      (pcase--u1): Don't forget to mark vars as used.
    • Troels Nielsen's avatar
      Fix active minibuffer case for window-deletable-p. · 46b7967e
      Troels Nielsen authored
      * window.el (window-deletable-p): Avoid deleting the root window
      of a frame with an active minibuffer.
    • Martin Rudalics's avatar
      * lisp/simple.el (choose-completion): Use quit-window. · 69d565e2
      Martin Rudalics authored
      Fixes: debbugs:11567
    • Chong Yidong's avatar
    • Aaron S. Hawley's avatar
      * vc.el (vc-revert, vc-rollback): Dont kill vc-diff buffer on revert. · 2b311310
      Aaron S. Hawley authored
      Fixes: debbugs:11488
    • Juri Linkov's avatar
      * lisp/isearch.el (isearch-mode-map): Bind `M-s _' to `isearch-toggle-symbol'. · b9cb2387
      Juri Linkov authored
      Bind `M-s c' to `isearch-toggle-case-fold'.
      (search-map): Bind `M-s _' to `isearch-forward-symbol'.
      (isearch-forward): Add `M-s _' to the docstring.
      (isearch-forward-symbol, isearch-toggle-case-fold)
      (isearch-symbol-regexp): New functions.
      Fixes: debbugs:11381
    • Juri Linkov's avatar
      * lisp/isearch.el (isearch-word): Add docstring. · d5e61c1c
      Juri Linkov authored
      (isearch-occur, isearch-search-and-update): If `isearch-word' is
      a function, call it to get the regexp.
      (isearch-message-prefix): If `isearch-word' holds a symbol, use its
      property `isearch-message-prefix' instead of the string "word ".
      (isearch-search-fun-default): For the case of `isearch-word',
      return a lambda that calls re-search-forward/re-search-backward
      with a regexp returned by `word-search-regexp' or by the function
      in `isearch-word'.
      Fixes: debbugs:11381
    • Juri Linkov's avatar
      * lisp/isearch.el (isearch-search-fun-default): New function. · 8cbd80f7
      Juri Linkov authored
      (isearch-search-fun): Move default part to the new function
      (isearch-search-fun-function): Set the default value to
      * lisp/comint.el (comint-history-isearch-end):
      Use `isearch-search-fun-default'.
      (comint-history-isearch-search): Use `isearch-search-fun-default'
      and remove spacial case for `isearch-word'.
      (comint-history-isearch-wrap): Remove spacial case for
      * lisp/hexl.el (hexl-isearch-search-function):
      Use `isearch-search-fun-default'.
      * lisp/info.el (Info-isearch-search): Use `isearch-search-fun-default'.
      Use `word-search-regexp' for `isearch-word'.
      * lisp/misearch.el (multi-isearch-search-fun):
      Use `isearch-search-fun-default'.
      * lisp/simple.el (minibuffer-history-isearch-search):
      Use `isearch-search-fun-default' and remove spacial case for
      (minibuffer-history-isearch-wrap): Remove spacial case for
      * lisp/textmodes/reftex-global.el (reftex-isearch-wrap-function):
      Remove spacial case for `isearch-word'.
      (reftex-isearch-isearch-search): Use `isearch-search-fun-default'.
      Fixes: debbugs:11381
    • Paul Eggert's avatar
      Spelling fixes. · c846da43
      Paul Eggert authored
  4. 28 May, 2012 3 commits
  5. 27 May, 2012 2 commits
  6. 26 May, 2012 7 commits
  7. 25 May, 2012 6 commits
    • Glenn Morris's avatar
      * lisp/paths.el: Remove no-byte-compile. · f9f334f0
      Glenn Morris authored
      * lisp/loadup.el: No need to load lisp/paths.el uncompiled.
      * src/lisp.mk (lisp): Update for this change.
    • Glenn Morris's avatar
      * lisp/image.el (imagemagick-types-inhibit): Doc fix. · 87eb79c2
      Glenn Morris authored
      * etc/NEWS: Related edits.
    • Glenn Morris's avatar
      There's no reason not to compile version.el · 758c81e8
      Glenn Morris authored
      AFAICS, this is ancient code dating from when there was an "inc-vers.el",
      that was used to bump the build number on version.el. Nowadays that
      happens in loadup.el.
      * lisp/version.el: Remove no-byte-compile and associated formatting.
      * lisp/loadup.el: No need to load lisp/version.el uncompiled.
    • Stefan Monnier's avatar
      * lisp/progmodes/gdb-mi.el: Minor style changes. · e7e85dc0
      Stefan Monnier authored
      (gdb-enable-debug, gdb-speedbar-auto-raise, gdb-many-windows):
      Turn into minor modes.
      (gdb--if-arrow): Rename from gdb-if-arrow, make it hygienic.
      (gdb-mouse-until, gdb-mouse-jump): Adjust uses accordingly.
      (gdb-shell): Remove unneeded let-binding.
      (gdb-get-many-fields): Eliminate O(n²) behavior.
    • Eli Zaretskii's avatar
      Follow-up for 2012-05-02T13:00:29Z!cyd@gnu.org. · f31237a4
      Eli Zaretskii authored
       lisp/cus-start.el <vertical-centering-font-regexp>: Avoid warning on
       platforms that don't link in fontset.c.
    • Juri Linkov's avatar
      Use the same diff color scheme as in modern VCSes (bug#10181). · bc1b21bb
      Juri Linkov authored
      * lisp/vc/diff-mode.el (diff-header, diff-file-header): Remove "green"
      to avoid confusion with `diff-added' that now uses green colors.
      (diff-removed): Use shades of red.
      (diff-added): Use shades of green.
      (diff-changed): Leave just the yellow color.
      (diff-use-changed-face): New variable.
      (diff-font-lock-keywords): Use `diff-use-changed-face' to decide
      how to highlight context diff changes.
      (diff-refine-change): Use shades of yellow.
      (diff-refine-removed): New face that uses shades of red.
      (diff-refine-added): New face that uses shades of green.
      (diff-refine-hunk): Use `diff-refine-change', `diff-refine-added',
      `diff-refine-removed' in the call to `smerge-refine-subst'
      depending on the value of `diff-use-changed-face'.
      * lisp/vc/ediff-init.el (ediff-current-diff-A, ediff-fine-diff-A):
      Add face condition `min-colors 88' with shades of red.
      (ediff-current-diff-B, ediff-fine-diff-B): Add face condition
      `min-colors 88' with shades of green.
      (ediff-current-diff-C, ediff-fine-diff-C): Add face condition
      `min-colors 88' with shades of yellow.
      * lisp/vc/smerge-mode.el (smerge-mine): Use shades of red.
      (smerge-other): Use shades of green.
      (smerge-base): Use shades of yellow.
      (smerge-refined-change): Empty face.
      (smerge-refined-removed): New face that uses shades of red.
      (smerge-refined-added): New face that uses shades of green.
      (smerge-refine-subst): Rename arg `props' to `props-c'.  Add new
      args `props-r' and `props-a', and use them.  Doc fix.
      (smerge-refine): Evaluate `smerge-use-changed-face' and depending
      on its value use different faces `smerge-refined-change',
      `smerge-refined-removed', `smerge-refined-added' in the call to
  8. 24 May, 2012 7 commits
  9. 22 May, 2012 1 commit