1. 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
  2. 07 May, 2012 1 commit
  3. 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
  4. 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
  5. 08 Apr, 2012 1 commit
  6. 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
  7. 11 Jan, 2012 1 commit
  8. 05 Jan, 2012 1 commit
  9. 06 Jul, 2011 1 commit
  10. 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
  11. 23 May, 2011 1 commit
  12. 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
  13. 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
  14. 15 Apr, 2011 1 commit
  15. 31 Mar, 2011 1 commit
  16. 26 Jan, 2011 1 commit
  17. 25 Jan, 2011 1 commit
  18. 02 Jan, 2011 1 commit
  19. 17 Dec, 2010 1 commit
  20. 15 Dec, 2010 1 commit
    • Glenn Morris's avatar
      Remove code and comments related to lib-src/fns-*.el; long removed. · 68251e16
      Glenn Morris authored
      * Makefile.in (install-arch-dep, uninstall): Remove code relating to the
      long absent lib-src/fns-*.el.
      
      * lisp/loadup.el (symbol-file-load-history-loaded): Remove; unused.
      Remove related, old, commented-out code.
      
      * lisp/subr.el (symbol-file-load-history-loaded)
        (load-symbol-file-load-history): Remove old, commented-out code.
      68251e16
  21. 26 Oct, 2010 1 commit
    • Glenn Morris's avatar
      Let ns load common-win. · 725513b7
      Glenn Morris authored
      * lisp/term/common-win.el (x-select-enable-clipboard):
      * lisp/term/pc-win.el (x-select-enable-clipboard): Doc fix.
      
      * lisp/term/ns-win.el: No need to require cl when compiling.
      (x-display-name, x-setup-function-keys, x-select-text, x-colors)
      (xw-defined-colors): Use the common-win definitions.
      (ns-alternatives-map): Make it an obsolete alias for x-alternatives-map.
      (ns-handle-iconic): Make it an alias for x-handle-iconic.
      * lisp/term/common-win.el (x-select-text, x-alternatives-map)
      (x-setup-function-keys, x-colors, xw-defined-colors): Handle 'ns case.
      * lisp/loadup.el [ns]: Load common-win.
      725513b7
  22. 25 Oct, 2010 1 commit
    • Glenn Morris's avatar
      Move ns-win.el's rather wacky menu adjustments to menu-bar.el. · 6a5c2175
      Glenn Morris authored
      * lisp/term/ns-win.el: Do not require easymenu.
      (menu-bar-edit-menu) <copy, paste, paste-from-menu, separator-undo>:
      <spell>: Move adjustments to menu-bar.el.
      * lisp/menu-bar.el (menu-bar-edit-menu) <copy, paste, paste-from-menu>:
      <separator-undo, spell>: Move ns-win's adjustments here.
      * lisp/loadup.el [ns]: Do not load easymenu.
      
      * src/Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
      * lib-src/makefile.w32-in (OTHER_PLATFORM_SUPPORT): Remove easymenu.elc.
      6a5c2175
  23. 22 Oct, 2010 1 commit
    • Glenn Morris's avatar
      Support for systems without floats was removed a decade ago. · 9a0dd02d
      Glenn Morris authored
      * lisp/loadup.el: Unconditionally load float-sup.
      * lisp/paren.el (show-paren-delay):
      * lisp/emacs-lisp/float-sup.el:
      * lisp/emulation/cua-base.el (cua-prefix-override-inhibit-delay):
      * lisp/obsolete/lazy-lock.el (lazy-lock-defer-time, lazy-lock-stealth-nice)
      (lazy-lock-stealth-verbose): Assume float support.
      * lisp/ps-print.el: Assume float support on Emacs.
      * lisp/emacs-lisp/timer.el (timer-next-integral-multiple-of-time):
      Remove non-float branch.
      
      * lisp/obsolete/lazy-lock.el: Remove leading `*' from defcustom docs.
      9a0dd02d
  24. 29 Aug, 2010 1 commit
  25. 11 Jun, 2010 1 commit
  26. 21 May, 2010 1 commit
    • Glenn Morris's avatar
      Minor loadup.el fix. · 969e684a
      Glenn Morris authored
      * lisp/loadup.el [CANNOT_DUMP]: Update for bootstrap-emacs no longer
      having a relative path in src/Makefile.in.
      969e684a
  27. 20 Apr, 2010 1 commit
    • Jan Djärv's avatar
      Gtk tool bars can be text, icons with text or just icons. · f904c0f9
      Jan Djärv authored
      * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
      current_tool_bar_style are new.
      (store_config_changed_event): Rename from store_font_changed_event.
      (XSETTINGS_TOOL_BAR_STYLE): New define.
      (SEEN_FONT, SEEN_TB_STYLE): New enum values.
      (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
      HAVE_XFT.
      (something_changedCB): store_font_changed_event is now
      store_config_changed_event
      (parse_settings): Rename from parse_xft_settings.  Read
      non-xft xsettings outside #ifdef HAVE_XFT.
      (read_settings): Renamed from read_xft_settings.
      (apply_xft_settings): Take current settings as parameter.  Do not
      call read_(xft)_settings.
      (read_and_apply_settings): New function.
      (xft_settings_event): Do non-xft stuff out of HAVE_XFT.  Call
      read_and_apply_settings if there are settings to be read.
      (init_xsettings): Renamed from init_xfd_settings.
      Call read_and_apply_settings unconditionally.
      (xsettings_initialize): Call init_xsettings.
      (Ftool_bar_get_system_style): New function.
      (syms_of_xsettings): Define Qmonospace_font_name and
      Qtool_bar_style.  Initialize current_tool_bar_style to nil.
      defsubr Stool_bar_get_system_style. Fprovide on
      dynamic-setting.
      
      * xsettings.h (Ftool_bar_get_system_style): Declare.
      
      * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
      Qtext, Qboth, Qboth_horiz are new.
      (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
      Vtool_bar_style, tool_bar_max_label_size.
      
      * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
      
      * keyboard.c: QClabel is new.
      (parse_tool_bar_item): Take out QClabel from tool bar items.
      Try to construct a label if ther is no QClabel.
      (syms_of_keyboard): Intern :label as QClabel.
      
      * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
      (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
      New.
      
      * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
      dynamic-setting.el.
      
      * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
      (xg_make_tool_item, xg_show_toolbar_item): New function.
      (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
      Call xg_make_tool_item to make a tool bar item.
      Call xg_show_toolbar_item.  Use wtoolbar instead of x->toolbar_widget.
      
      * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
      into account for toolbars.
      
      * vc-dir.el (vc-dir-tool-bar-map): Add :label on some tool bar items.
      
      * tool-bar.el (tool-bar-setup): Add :label on some tool bar items.
      
      * loadup.el: Load dynamic-setting.el if feature dynamic-setting
      is present.
      
      * info.el (info-tool-bar-map): Add labels.
      
      * cus-start.el (all): Add tool-bar-style and tool-bar-max-label-size.
      
      * cus-edit.el (custom-commands): Add labels for tool bar.
      (custom-buffer-create-internal, Custom-mode): Adjust for
      labels in custom-commands.
      
      * dynamic-setting.el: Renamed from font-setting.el.
      f904c0f9
  28. 18 Apr, 2010 1 commit
    • Stefan Monnier's avatar
      Hash-cons pure data. · e9515805
      Stefan Monnier authored
      * alloc.c (Fpurecopy): Hash-cons if requested.
      (syms_of_alloc): Update purify-flag docstring.
      * loadup.el: Setup hash-cons for pure data.
      e9515805
  29. 18 Feb, 2010 1 commit
  30. 13 Jan, 2010 1 commit
  31. 17 Nov, 2009 1 commit
    • Jan Djärv's avatar
      Handle system default font and changing font parameters. · 637fa988
      Jan Djärv authored
      * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
      
      * xterm.c (handle_one_xevent): Call xft_settings_event for
      ClientMessage, PropertyNotify and DestroyNotify.
      (x_term_init): If we have XFT, get DPI from Xft.dpi.
      Call xsettings_initialize.
      
      * xftfont.c (xftfont_fix_match): New function.
      (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
      Call xftfont_fix_match after XftFontMatch.
      
      * xfont.c (xfont_driver): Initialize all members.
      
      * xfns.c (x_default_font_parameter): Try font from Ffont_get_system_font.
      Do not get font from x_default_parameter if we got one from
      Ffont_get_system_font.
      (Fx_select_font): Get the defaut font name from :name of FRAME_FONT (f).
      
      * w32font.c (w32font_driver): Initialize all members.
      
      * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
      
      * lisp.h: Declare syms_of_xsettings.
      
      * keyboard.c (kbd_buffer_get_event, make_lispy_event): Handle
      CONFIG_CHANGED_EVENT.
      
      * ftfont.c (ftfont_filter_properties): New function.
      
      * frame.c (x_set_font): Remove unused variable lval.
      
      * font.h (struct font_driver): filter_properties is new.
      
      * font.c (font_put_extra): Don't return if val is nil, it means
      boolean option is off.
      (font_parse_fcname): Collect all extra properties in extra_props
      and call filter_properties for all drivers with extra_props and
      font as parameter.
      (font_open_entity): Do not use cache, it does not pick up new fontconfig
      settings like hinting.
      (font_load_for_lface): If spec had a name in it, store it in entity.
      
      * emacs.c (main): Call syms_of_xsettings
      
      * config.in: HAVE_GCONF is new.
      
      * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
      xsettings.o is new.
      
      * menu-bar.el: Put "Use system font" in Option-menu.
      
      * loadup.el: If feature system-font-setting or font-render-setting is
      there, load font-setting.
      
      * Makefile.in (ELCFILES): font-settings.el is new.
      * font-setting.el: New file.
      
      * NEWS: Mention dynamic font changes (font-use-system-font).
      
      * configure.in: New option: --with(out)-gconf.
      Set HAVE_GCONF if we find gconf.
      637fa988
  32. 11 Nov, 2009 1 commit
  33. 26 Sep, 2009 1 commit
  34. 15 Sep, 2009 1 commit
  35. 12 Sep, 2009 1 commit
    • Stefan Monnier's avatar
      * mwheel.el (mwheel-installed-bindings): New var. · ab5c0fcd
      Stefan Monnier authored
      (mouse-wheel-mode): Use it, so as to make sure we really remove all
      the bindings we set last time.  Use custom-initialize-delay.
      * loadup.el: Load mwheel after term/*-win.el.
      * startup.el (command-line): Don't reevaluate mouse-wheel-down-event
      and mouse-wheel-up-event now that their first evaluation is done
      sufficiently late to be correct.
      ab5c0fcd
  36. 11 Sep, 2009 1 commit
  37. 10 Sep, 2009 1 commit
    • Stefan Monnier's avatar
      * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove. · 50d4ba39
      Stefan Monnier authored
      (parse_menu_item): Streamline since bindings are recomputed all the
      time anyway.  Don't bother checking Vdefine_key_rebound_commands any
      more and don't support lmenu's menu-alias any more either.
      * subr.el (define-key-rebound-commands): Mark obsolete.
      * startup.el (precompute-menubar-bindings): Remove.
      (normal-top-level): Remove obsolete code that tried to precompute
      menubar bindings.
      * loadup.el (define-key-rebound-commands): Don't bother fiddling with
      define-key-rebound-commands and precompute-menubar-bindings.
      50d4ba39
  38. 21 Aug, 2009 1 commit
  39. 05 Jan, 2009 1 commit