1. 08 Oct, 2013 1 commit
  2. 05 Aug, 2013 1 commit
    • Stefan Monnier's avatar
      Revert introduction of isearch-filter-predicates. · dc6c0eda
      Stefan Monnier authored
      Rely on add-function instead.
      * lisp/loadup.el: Preload nadvice.
      * lisp/isearch.el (isearch-filter-predicates): Rename it back to
      isearch-filter-predicate.
      (isearch-message-prefix): Use advice-function-mapc and advice
      properties to get the isearch-message-prefix.
      (isearch-search, isearch-lazy-highlight-search): Revert to funcall
      instead of run-hook-with-args-until-failure.
      (isearch-filter-visible): Not obsolete any more.
      * lisp/replace.el (perform-replace): Revert to funcall
      instead of run-hook-with-args-until-failure.
      * lisp/wdired.el (wdired-change-to-wdired-mode): Use add-function.
      * lisp/dired-aux.el (dired-isearch-filenames-mode): Rename from
      dired-isearch-filenames-toggle; make it into a proper minor mode.
      Use add/remove-function.
      (dired-isearch-filenames-setup, dired-isearch-filenames-end):
      Call the minor-mode rather than add/remove-hook.
      (dired-isearch-filter-filenames):
      Remove isearch-message-prefix property.
      * lisp/info.el (Info--search-loop): New function, extracted from Info-search.
      Funcall isearch-filter-predicate instead of
      run-hook-with-args-until-failure isearch-filter-predicates.
      (Info-search): Use it.
      (Info-mode): Use isearch-filter-predicate instead of
      isearch-filter-predicates.
      * src/lisp.mk (lisp): Add nadvice.elc.
      * lib-src/makefile.w32-in (lisp2): Add nadvice.elc.
      
      Fixes: debbugs:14714
      dc6c0eda
  3. 05 Jun, 2013 1 commit
  4. 15 May, 2013 1 commit
    • Stefan Monnier's avatar
      Use just DOC instead of DOC-nn.mm. · 6e911150
      Stefan Monnier authored
      * lisp/loadup.el: Just use unversioned DOC.
      * Makefile.in (install-doc): DOC file is not version specific any more.
      * .bzrignore: Don't ignore DOC-* any more.
      * admin/quick-install-emacs: Don't prune DOC-* files a any more.
      * doc/lispref/loading.texi (Autoload):
      * doc/lispref/help.texi (Documentation Basics, Accessing Documentation)
      (Accessing Documentation, Accessing Documentation): DOC-* is now DOC.
      * etc/.gitignore: Don't ignore DOC-* any more.
      * lib-src/makefile.w32-in ($(DOC)): Use DOC rather than DOC-X.
      * msdos/sed1x.inp: Don't rewrite DOC any more.
      * nt/makefile.w32-in (clean, top-distclean): DOC-X doesn't exist any more.
      * src/Makefile.in (bootstrap-clean): DOC-* doesn't exist any more.
      * src/makefile.w32-in (DOC): Use just "DOC".
      6e911150
  5. 16 Apr, 2013 3 commits
  6. 06 Apr, 2013 1 commit
  7. 01 Jan, 2013 1 commit
  8. 03 Nov, 2012 1 commit
  9. 20 Oct, 2012 1 commit
  10. 17 Sep, 2012 1 commit
    • Daniel Colascione's avatar
      Implement cygw32 · 0fda9b75
      Daniel Colascione authored
      Here, we use the generic window-system configuration system we just
      implemented to support the w32 window-system in the mainline build
      under Cygwin.  (Previously, the w32 window system could only be
      compiled as part of the NT-native Emacs build process.)
      
      The changes in this patch need to be applied atomically in order to
      avoid breaking Emacs.  The changes include:
      
        - Changes throughout the Lisp and C code to not assume that
            NT Emacs and the w32 window system are synonymous.
      
        - Wiring up the regular select(2) event loop to Windows messages
      
        - Cleaning up the w32 drag-and-drop receiving code.
      
        - Exposing Cygwin path conversion functions to elisp.
      
        - Unicode file dialog support when compiling for Cygwin.
      
        - Splitting the w32 term lisp initialization code into code
          applicable to any w32 window-system and code specific to
          system-type windows-nt.
      
        - Integrating the old and new w32 code into the build system.
      0fda9b75
  11. 04 Sep, 2012 1 commit
    • Stefan Monnier's avatar
      Macro-expand interpreted code during load. · 972debf2
      Stefan Monnier authored
      * src/lread.c (readevalloop): Call internal-macroexpand-for-load to perform
      eager (load-time) macro-expansion.
      * src/lisp.mk (lisp): Add macroexp.
      * lisp/loadup.el: Load macroexp.  Remove hack.
      * lisp/emacs-lisp/macroexp.el (macroexp--eval-if-compile): New function.
      (macroexp--expand-all): Use it to get better warnings.
      (macroexp--backtrace, macroexp--trim-backtrace-frame)
      (internal-macroexpand-for-load): New functions.
      (macroexp--pending-eager-loads): New var.
      (emacs-startup-hook): New hack to replace one in loadup.el.
      * lisp/emacs-lisp/cl-macs.el (cl--compiler-macro-list*)
      (cl--compiler-macro-cXXr): Move to top, before they can be used.
      (cl-psetf): Simplify.
      (cl-defstruct): Add indent rule.
      972debf2
  12. 08 Aug, 2012 1 commit
    • Glenn Morris's avatar
      Merge language/persian.el into language/misc-lang.el · 32ac3a6b
      Glenn Morris authored
      * lisp/language/persian.el: Remove file.
      * lisp/language/misc-lang.el: Move non-unique part of persian.el here.
      * lisp/loadup.el: Remove language/persian.
      
      * src/lisp.mk (lisp): Remove language/persian.elc.
      
      * etc/NEWS: Improve entry.
      32ac3a6b
  13. 06 Aug, 2012 1 commit
  14. 13 Jul, 2012 1 commit
  15. 06 Jul, 2012 1 commit
  16. 02 Jul, 2012 1 commit
  17. 30 Jun, 2012 1 commit
    • Glenn Morris's avatar
      Make --no-site-lisp work for --enable-locallisppath elements · ca26824c
      Glenn Morris authored
      without "site-lisp" in the name.
      Ref http://debbugs.gnu.org/10208#25, point iii).
      
      * configure.in (standardlisppath): New output variable.
      (lisppath): Use standardlisppath.
      * Makefile.in (standardlisppath): New, set by configure.
      (epaths-force): Use standardlisppath and locallisppath rather than lisppath.
      
      * src/epaths.in (PATH_SITELOADSEARCH): New.
      * src/lread.c (init_lread): Use PATH_SITELOADSEARCH.
      
      * nt/paths.h (PATH_SITELOADSEARCH): New.
      
      Fixes: debbugs:11658
      ca26824c
  18. 27 Jun, 2012 2 commits
    • Stefan Monnier's avatar
      Get rid of all the manual purecopy calls in menu-bar definitions. · 1ec4b7b2
      Stefan Monnier authored
      * lisp/loadup.el (purify-flag): Pre-grow the hash-table to reduce the
      memory use.
      * lisp/bindings.el (bindings--define-key): New function.
      * lisp/vc/vc-hooks.el, lisp/replace.el, lisp/menu-bar.el:
      * lisp/international/mule-cmds.el, lisp/emacs-lisp/lisp-mode.el:
      * lisp/buff-menu.el, lisp/bookmark.el:
      * bindings.el: Use it to purecopy define-key bindings.
      * src/fns.c (maybe_resize_hash_table): Output message when growing the
      purify-hashtable.
      1ec4b7b2
    • Glenn Morris's avatar
      Remove paths.el · 1ba6038a
      Glenn Morris authored
      * lisp/info.el (Info-default-directory-list): Move here from paths.el.
      * lisp/paths.el: Remove file, which is now empty.
      * lisp/loadup.el: No longer load "paths".
      
      * src/lisp.mk (lisp): Remove paths.elc.
      
      * lib-src/makefile.w32-in (lisp2): Remove paths.el.
      
      * INSTALL: Remove references to paths.el.
      1ba6038a
  19. 22 Jun, 2012 1 commit
    • Stefan Monnier's avatar
      Provide generalized variables in core Elisp. · 2ee3d7f0
      Stefan Monnier authored
      * lisp/emacs-lisp/gv.el: New file.
      * lisp/subr.el (push, pop): Extend to generalized variables.
      * lisp/loadup.el (macroexp): Unload if preloaded and uncompiled.
      * lisp/emacs-lisp/cl-lib.el (cl-pop, cl-push, cl--set-nthcdr): Remove.
      * lisp/emacs-lisp/cl-macs.el: Require gv.  Use gv-define-setter,
      gv-define-simple-setter, and gv-define-expander.
      Remove setf-methods defined in gv.  Rename cl-setf -> setf.
      (cl-setf, cl-do-pop, cl-get-setf-method): Remove.
      (cl-letf, cl-letf*, cl-define-modify-macro, cl-defsetf)
      (cl-define-setf-expander, cl-struct-setf-expander): Move to cl.el.
      (cl-remf, cl-shiftf, cl-rotatef, cl-callf, cl-callf2): Rewrite with
      gv-letplace.
      (cl-defstruct): Don't define setf-method any more.
      * lisp/emacs-lisp/cl.el (flet): Don't autoload.
      (cl--letf, letf, cl--letf*, letf*, cl--gv-adapt)
      (define-setf-expander, defsetf, define-modify-macro)
      (cl-struct-setf-expander): Move from cl-lib.el.
      * lisp/emacs-lisp/syntax.el:
      * lisp/emacs-lisp/ewoc.el:
      * lisp/emacs-lisp/smie.el:
      * lisp/emacs-lisp/cconv.el:
      * lisp/emacs-lisp/timer.el: Rename cl-setf -> setf, cl-push -> push.
      (timer--time): Use gv-define-simple-setter.
      * lisp/emacs-lisp/macroexp.el (macroexp-let2): Rename from macroexp-let²
      to avoid coding-system problems in subr.el.  Adjust all users.
      (macroexp--maxsize, macroexp-small-p): New functions.
      * lisp/emacs-lisp/bytecomp.el (byte-compile-file): Don't use cl-letf.
      * lisp/scroll-bar.el (scroll-bar-mode):
      * lisp/simple.el (auto-fill-mode, overwrite-mode, binary-overwrite-mode)
      (normal-erase-is-backspace-mode): Don't use the `eq' place.
      * lisp/winner.el (winner-configuration, winner-make-point-alist)
      (winner-set-conf, winner-get-point, winner-set): Don't abuse letf.
      * lisp/files.el (locate-file-completion-table): Avoid list*.
      
      Fixes: debbugs:11657
      2ee3d7f0
  20. 13 Jun, 2012 1 commit
  21. 30 May, 2012 1 commit
    • 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.
      (byte-compile-file-form-defalias):
      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.
      61b108cc
  22. 25 May, 2012 2 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.
      f9f334f0
    • 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.
      758c81e8
  23. 07 May, 2012 1 commit
  24. 06 May, 2012 1 commit
    • Chong Yidong's avatar
      * lisp/buff-menu.el: Convert to Tabulated List mode. · e5f9458f
      Chong Yidong authored
      (Buffer-menu-buffer+size-width): Make obsolete.
      (Buffer-menu-name-width, Buffer-menu-size-width): New variables.
      (Buffer-menu-mode-map): Inherit from tabulated-list-mode-map.
      (Buffer-menu-mode): Derive from tabulated-list-mode.  Move command
      documentation into docstring of buffer-menu.
      (Buffer-menu-toggle-files-only): Add an informative message.
      (Buffer-menu-sort): Convert to alias for tabulated-list-sort.
      (Buffer-menu-buffer, Buffer-menu-beginning, Buffer-menu-mark)
      (Buffer-menu-unmark, Buffer-menu-backup-unmark)
      (Buffer-menu-delete, Buffer-menu-save, Buffer-menu-not-modified)
      (Buffer-menu-execute, Buffer-menu-select)
      (Buffer-menu-marked-buffers, Buffer-menu-toggle-read-only)
      (Buffer-menu-bury): Use Tabulated List machinery.
      (Buffer-menu-mouse-select, Buffer-menu-sort-by-column)
      (Buffer-menu-sort-button-map, Buffer-menu-make-sort-button):
      Deleted.
      (list-buffers--refresh): New function.
      (list-buffers-noselect): Use it.
      (tabulated-list-entry-size->, Buffer-menu--pretty-name)
      (Buffer-menu--pretty-file-name): New helper functions.
      
      * lisp/loadup.el: Preload tabulated-list.
      
      * lisp/emacs-lisp/tabulated-list.el (tabulated-list-sort): Rename from
      tabulated-list-sort-column.
      (tabulated-list-init-header): Add the initial aligning space even
      if tabulated-list-padding is zero.
      
      * src/lisp.mk (lisp): Update.
      e5f9458f
  25. 16 Apr, 2012 1 commit
    • Chong Yidong's avatar
      Call imagemagick-register-types automatically. · c505aaeb
      Chong Yidong authored
      * lisp/image.el (imagemagick--extension-regexp): New variable.
      (imagemagick-register-types): Use it.
      (imagemagick-types-inhibit): Add :set function.  Allow new value
      of t to inhibit all types.
      
      * lisp/loadup.el (fboundp): Preload regexp-opt, needed by
      imagemagick-register-types.
      
      * lisp/emacs-lisp/regexp-opt.el (regexp-opt-charset): Avoid cl macros,
      so we can preload it.
      c505aaeb
  26. 08 Apr, 2012 1 commit
  27. 07 Apr, 2012 1 commit
    • Glenn Morris's avatar
      Add emacs-bzr-version · a1ed8b05
      Glenn Morris authored
      * lisp/version.el (emacs-bzr-get-version): New function.
      * lisp/loadup.el (emacs-bzr-version): Set it. 
      * lisp/mail/emacsbug.el (report-emacs-bug): Include bzr version.
      
      * etc/NEWS: Mention this, though it is not really relevant to releases.
      Insert template for 24.2 release.
      
      Fixes: debbugs:8054
      a1ed8b05
  28. 11 Jan, 2012 1 commit
  29. 05 Jan, 2012 1 commit
  30. 06 Jul, 2011 1 commit
  31. 11 Jun, 2011 1 commit
    • Martin Rudalics's avatar
      Move/add window-buffer-related functions to window.el. · 9397e56f
      Martin Rudalics authored
      * buffer.c: New Lisp objects Qbuffer_list_update_hook and
      Qclone_number.  Remove external declaration of Qdelete_window.
      (Fbuffer_list): Rewrite doc-string.  Minor restructuring of
      code.
      (Fget_buffer_create, Fmake_indirect_buffer, Frename_buffer): Run
      Qbuffer_list_update_hook if allowed.
      (Fother_buffer): Rewrite doc-string.  Major rewrite for new
      buffer list implementation.
      (other_buffer_safely): New function.
      (Fkill_buffer): Replace call to replace_buffer_in_all_windows by
      calls to replace_buffer_in_windows and
      replace_buffer_in_windows_safely.  Run Qbuffer_list_update_hook
      if allowed.
      (record_buffer): Inhibit quitting and rewrite using quittable
      functions.  Run Qbuffer_list_update_hook if allowed.
      (Frecord_buffer, Funrecord_buffer): New functions.
      (switch_to_buffer_1, Fswitch_to_buffer): Remove.  Move
      switch-to-buffer to window.el.
      (bury-buffer): Move to window.el.
      (Vbuffer_list_update_hook): New variable.
      
      * lisp.h (other_buffer_safely): Add prototype in buffer.c
      section.
      
      * window.h (resize_frame_windows): Move up in code.
      (Fwindow_frame): Remove EXFUN.
      (replace_buffer_in_all_windows): Remove prototype.
      (replace_buffer_in_windows_safely): Add prototype.
      
      * window.c: Declare Qdelete_window static again.  Move down
      declaration of select_count.
      (Fnext_window, Fprevious_window): Rewrite doc-strings.
      (Fother_window): Move to window.el.
      (window_loop): Remove DELETE_BUFFER_WINDOWS and UNSHOW_BUFFER
      cases.  Add REPLACE_BUFFER_IN_WINDOWS_SAFELY case.
      (Fdelete_windows_on, Freplace_buffer_in_windows): Move to
      window.el.
      (replace_buffer_in_windows): Implement by calling
      Qreplace_buffer_in_windows.
      (replace_buffer_in_all_windows): Remove with some functionality
      moved into replace_buffer_in_windows_safely.
      (replace_buffer_in_windows_safely): New function.
      (select_window_norecord, select_frame_norecord): Move in front
      of run_window_configuration_change_hook.  Remove now obsolete
      declarations.
      (Fset_window_buffer): Rewrite doc-string.  Call
      Qrecord_window_buffer.
      (keys_of_window): Move binding for other-window to window.el.
      
      * loadup.el (top-level): Load window before files for the sake
      of replace-buffer-in-windows.
      
      * files.el (read-buffer-to-switch)
      (switch-to-buffer-other-window)
      (switch-to-buffer-other-frame, display-buffer-other-frame): Move
      to window.el.
      
      * simple.el (get-next-valid-buffer, last-buffer, next-buffer)
      (previous-buffer): Move to window.el.
      
      * bindings.el (unbury-buffer): Move to window.el.
      
      * window.el (delete-other-windows-vertically): Move after
      definition of delete-other-windows.
      (other-window, delete-windows-on, replace-buffer-in-windows):
      Move here from window.c.
      (record-window-buffer, unrecord-window-buffer)
      (set-window-buffer-start-and-point, switch-to-prev-buffer)
      (switch-to-next-buffer): New functions.
      (get-next-valid-buffer, last-buffer, next-buffer): Move here
      from simple.el.  Call switch-to-next-buffer.
      (previous-buffer): Move here from simple.el.  Call
      switch-to-prev-buffer.
      (bury-buffer): Move here from buffer.c.  Switch to previous
      buffer when window cannot be deleted.
      (unbury-buffer): Move here from bindings.el.
      (ctl-x-map): Move binding for other-window from window.c to
      here.
      (read-buffer-to-switch, switch-to-buffer-other-window)
      (switch-to-buffer-other-frame): Move here from files.el.
      (normalize-buffer-to-switch-to): New functions.
      (switch-to-buffer): Move here from buffer.c.  Use
      read-buffer-to-switch and normalize-buffer-to-switch-to.
      9397e56f
  32. 23 May, 2011 1 commit
  33. 20 May, 2011 1 commit
    • Glenn Morris's avatar
      Remove $shortlisp from src/Makefile.in. · b9704ad9
      Glenn Morris authored
      * configure.in (lisp_frag): New output file.
      
      * src/lisp.mk: New file, split from Makefile.in, and inheriting its
        copyright years.
      * src/Makefile.in (lisp): Move to separate file, inserted by @lisp_frag@.
      (shortlisp): Remove.
      ($(etc)/DOC): Edit lisp.mk rather than using $shortlisp.
      
      * lisp/loadup.el, doc/misc/Makefile.in: Comment changes.
      b9704ad9
  34. 19 May, 2011 1 commit
    • Glenn Morris's avatar
      Remove the SOME_MACHINE_LISP distinction in src/Makefile.in. · 4a720484
      Glenn Morris authored
      See discussion in http://debbugs.gnu.org/8302
      
      * configure.in (NS_SUPPORT, MOUSE_SUPPORT, TOOLTIP_SUPPORT)
      (WINDOW_SUPPORT): Remove output variables that are no longer used.
      
      * lib-src/makefile.w32-in (echolisp): Remove rule that is no longer needed.
      (clean): No more echolisp.tmp.
      
      * .bzrignore: Remove lib-src/echolisp.tmp.
      
      * lisp/emacs-lisp/autoload.el (batch-update-autoloads):
      Set autoload-excludes by parsing lisp/loadup.el rather than Makefiles.
      
      * lisp/loadup.el: Update commentary.
      
      * msdos/sed1x.inp (TOOLTIP_SUPPORT, WINDOW_SUPPORT):
      * msdos/sed1v2.inp (MSDOS_SUPPORT, NS_SUPPORT, MOUSE_SUPPORT)
      (TOOLTIP_SUPPORT, WINDOW_SUPPORT): No need to edit these any more.
      
      * src/Makefile.in (MSDOS_SUPPORT_REAL, MSDOS_SUPPORT, NS_SUPPORT)
      (REAL_MOUSE_SUPPORT, GPM_MOUSE_SUPPORT, MOUSE_SUPPORT, TOOLTIP_SUPPORT)
      (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT, WINDOW_SUPPORT): Remove.
      (lisp): Set the order to that of loadup.el.
      (shortlisp): Make it a copy of $lisp.
      (SOME_MACHINE_LISP): Remove.
      ($(etc)/DOC): Depend just on $lisp, not $SOME_MACHINE_LISP too.
      Use just $shortlisp, not $SOME_MACHINE_LISP too.
      4a720484
  35. 15 Apr, 2011 1 commit
  36. 31 Mar, 2011 1 commit