1. 10 Jan, 2013 1 commit
    • Dmitry Antipov's avatar
      Omit buffer_slot_type_mismatch and use generic predicates to enforce · 58cc0a01
      Dmitry Antipov authored
      the type of per-buffer values where appropriate.
      * src/lisp.h (struct Lisp_Buffer_Objfwd): Rename slottype member to
      predicate, which is how it's really used now.  Adjust comment.
      * src/buffer.h (buffer_slot_type_mismatch): Remove prototype.
      * src/buffer.c (buffer_slot_type_mismatch): Remove.
      (DEFVAR_PER_BUFFER, defvar_per_buffer): Rename type argument to
      predicate.  Adjust comment.
      (syms_of_buffer): Use Qsymbolp for major-mode.  Use Qintegerp for
      fill-column, left-margin, tab-width, buffer-saved-size,
      left-margin-width, right-margin-width, left-fringe-width,
      right-fringe-width, scroll-bar-width and buffer-display-count.
      Use Qstringp for default-directory, buffer-file-name,
      buffer-file-truename and buffer-auto-save-file-name.  Use Qfloatp for
      scroll-up-aggressively and scroll-down-aggressively.  Use Qnumberp for
      line-spacing.
      * src/data.c (store_symval_forwarding): Adjust to call the predicate.
      * lisp/cus-start.el (toplevel): Only allow float values for
      scroll-up-aggressively and scroll-down-aggressively.
      Allow any number for line-spacing.
      58cc0a01
  2. 01 Jan, 2013 1 commit
  3. 03 Nov, 2012 1 commit
  4. 23 Oct, 2012 1 commit
  5. 08 Oct, 2012 1 commit
  6. 25 Sep, 2012 1 commit
    • Chong Yidong's avatar
      Use declare forms, where possible, to mark obsolete functions. · 59f7af81
      Chong Yidong authored
      * lisp/allout.el (allout-passphrase-hint-string): Likewise.
      (allout-init): Use a declare form to mark obsolete.
      
      * lisp/calendar/calendar.el (calendar-version):
      * lisp/calendar/icalendar.el (icalendar-extract-ical-from-buffer)
      (icalendar-convert-diary-to-ical):
      * lisp/cus-edit.el (custom-mode):
      * lisp/ansi-color.el (ansi-color-unfontify-region):
      * lisp/international/latin1-disp.el (latin1-char-displayable-p):
      * lisp/progmodes/cwarn.el (turn-on-cwarn-mode):
      * lisp/progmodes/which-func.el (which-func-update-1): Use
      define-obsolete-function-alias.
      
      * lisp/bookmark.el (bookmark-jump-noselect): Use a declare form to mark
      this function obsolete.
      
      * lisp/calendar/cal-x.el (calendar-two-frame-setup)
      (calendar-only-one-frame-setup, calendar-one-frame-setup):
      * lisp/calendar/calendar.el (american-calendar, european-calendar)
      (calendar-for-loop):
      * lisp/comint.el (comint-dynamic-simple-complete)
      (comint-dynamic-complete-as-filename, comint-unquote-filename):
      * lisp/desktop.el (desktop-load-default):
      * lisp/dired-x.el (dired-omit-here-always)
      (dired-hack-local-variables, dired-default-directory):
      * lisp/emacs-lisp/derived.el (derived-mode-class):
      * lisp/emacs-lisp/timer.el (timer-set-time-with-usecs):
      * lisp/emacs-lock.el (toggle-emacs-lock):
      * lisp/epa.el (epa-display-verify-result):
      * lisp/epg.el (epg-sign-keys, epg-start-sign-keys)
      (epg-passphrase-callback-function):
      * lisp/eshell/esh-util.el (eshell-for):
      * lisp/eshell/eshell.el (eshell-remove-from-window-buffer-names)
      (eshell-add-to-window-buffer-names):
      * lisp/files.el (locate-file-completion):
      * lisp/imenu.el (imenu-example--create-c-index)
      (imenu-example--create-lisp-index)
      (imenu-example--lisp-extract-index-name)
      (imenu-example--name-and-position):
      * lisp/international/mule-cmds.el (princ-list):
      * lisp/international/mule-diag.el (decode-codepage-char):
      * lisp/international/mule-util.el (detect-coding-with-priority):
      * lisp/iswitchb.el (iswitchb-read-buffer):
      * lisp/mail/mailalias.el (mail-complete):
      * lisp/mail/sendmail.el (mail-sent-via):
      * lisp/mouse.el (mouse-popup-menubar-stuff, mouse-popup-menubar)
      (mouse-major-mode-menu):
      * lisp/password-cache.el (password-read-and-add):
      * lisp/pcomplete.el (pcomplete-parse-comint-arguments):
      * lisp/progmodes/sh-script.el (sh-maybe-here-document):
      * lisp/replace.el (query-replace-regexp-eval):
      * lisp/savehist.el (savehist-load):
      * lisp/simple.el (choose-completion-delete-max-match):
      * lisp/term.el (term-dynamic-simple-complete):
      * lisp/vc/ediff-init.el (ediff-check-version):
      * lisp/vc/ediff-wind.el (ediff-choose-window-setup-function-automatically):
      * lisp/vc/vc.el (vc-diff-switches-list):
      * lisp/view.el (view-return-to-alist-update): Likewise.
      
      * lisp/iswitchb.el (iswitchb-read-buffer): Move code of
      iswitchb-define-mode-map here, and delete that obsolete function.
      
      * lisp/subr.el (eval-next-after-load, makehash, insert-string)
      (assoc-ignore-representation, assoc-ignore-case): Use declare to
      mark obsolete.
      (mode-line-inverse-video): Variable deleted.
      
      * lisp/emacs-lisp/byte-run.el (make-obsolete): Doc fix; emphasize that
      this applies to functions.
      
      * lisp/erc/erc.el (erc-send-command): Use define-obsolete-function-alias.
      
      * lisp/international/mule-util.el (string-to-sequence): Remove.
      
      * lisp/net/newst-backend.el (newsticker-cache-filename):
      * lisp/net/newst-treeview.el (newsticker-groups-filename): Fix
      incorrect obsolescence declaration.
      
      * lisp/net/snmp-mode.el (snmp-font-lock-keywords-3): Don't use obsolete
      font-lock-reference-face.
      
      * lisp/url/url-parse.el (url-recreate-url-attributes):
      * lisp/url/url-util.el (url-generate-unique-filename): Use declare to mark
      obsolete.
      
      * src/xdisp.c (mode_line_inverse_video): Delete obsolete variable.
      59f7af81
  7. 22 Sep, 2012 1 commit
    • Martin Rudalics's avatar
      Make Temp Buffer Resize Mode less intrusive (Bug#1806). · 8e17c9ba
      Martin Rudalics authored
      * window.c (Fsplit_window_internal): Handle only Qt value of
      Vwindow_combination_limit separately.
      (Qtemp_buffer_resize): New symbol.
      (Vwindow_combination_limit): New default value.  Rewrite
      doc-string.
      * cus-start.el (window-combination-limit): Add new optional
      values.
      * window.el (temp-buffer-window-show)
      (window--try-to-split-window): Obey new values of
      window-combination-limit.
      (split-window): Test window-combination-limit for t instead of
      non-nil.
      (display-buffer-at-bottom): New buffer display action function.
      * help.el (temp-buffer-resize-regexps): New option.
      (temp-buffer-resize-mode): Rewrite doc-string.
      (resize-temp-buffer-window): Obey temp-buffer-resize-regexps.
      Don't resize reused window.  Suggested by Glen Morris.
      8e17c9ba
  8. 15 Aug, 2012 1 commit
  9. 03 Jun, 2012 1 commit
    • Glenn Morris's avatar
      tool-bar-style doc fixes · 0c3461de
      Glenn Morris authored
      * lisp/cus-start.el (tool-bar-style, tool-bar-max-label-size): Fix :version.
      
      * src/xdisp.c (tool-bar-style): Doc fix.
      0c3461de
  10. 25 May, 2012 1 commit
  11. 10 May, 2012 1 commit
    • Dave Abrahams's avatar
      Add the option to not create lockfiles · 836d29b3
      Dave Abrahams authored
      * src/filelock.c (syms_of_filelock): New boolean create-lockfiles.
      (lock_file): If create_lockfiles is 0, do nothing.
      
      * lisp/cus-start.el (create-lockfiles): Add it.
      
      Fixes: debbugs:11227
      836d29b3
  12. 02 May, 2012 1 commit
    • Chong Yidong's avatar
      Add customization data to several built-in variables. · 2bc356d7
      Chong Yidong authored
      * lisp/cus-start.el (gc-cons-percentage, exec-suffixes)
      (dos-display-scancodes, dos-hyper-key, dos-super-key)
      (dos-keypad-mode, debug-on-signal, vertical-centering-font-regexp)
      (make-cursor-line-fully-visible, void-text-area-pointer)
      (font-list-limit): Add customization data.
      
      * doc/lispref/display.texi (Font Lookup):
      * doc/lispref/frames.texi (Pointer Shape):
      * doc/lispref/processes.texi (Subprocess Creation): Use defopt for options.
      2bc356d7
  13. 01 May, 2012 1 commit
  14. 10 Apr, 2012 1 commit
  15. 07 Mar, 2012 1 commit
  16. 04 Mar, 2012 1 commit
  17. 07 Feb, 2012 1 commit
    • Glenn Morris's avatar
      imagemagick-render-type fixes · af008560
      Glenn Morris authored
      * src/image.c (imagemagick-render-type): Change it from a lisp object
      to an integer.  Move the doc here from the lisp manual.
      Treat all values not equal to 0 the same.
      
      * doc/lispref/display.texi (ImageMagick Images):
      Move most details of imagemagick-render-type to the variable's doc.
      
      * lisp/cus-start.el (imagemagick-render-type): Add it.
      af008560
  18. 11 Jan, 2012 1 commit
  19. 05 Jan, 2012 1 commit
  20. 17 Nov, 2011 1 commit
    • Martin Rudalics's avatar
      Rename window-splits to window-combination-resize. · a0c2d0ae
      Martin Rudalics authored
      * window.c (Vwindow_splits): Rename to
      Vwindow_combination_resize.  Suggested by Juri Linkov.
      (Fsplit_window_internal): Use Vwindow_combination_resize instead
      of Vwindow_splits.
      * window.el (window-resize, delete-window, split-window):
      Replace window-splits by window-combination-resize.
      * cus-start.el (window-splits): Replace by
      window-combination-resize.
      * windows.texi (Resizing Windows, Splitting Windows)
      (Deleting Windows): Use term window-combination-resize instead
      of window-splits.
      a0c2d0ae
  21. 16 Nov, 2011 1 commit
    • Martin Rudalics's avatar
      Rename window-nest to window-combination-limit. · b6f67890
      Martin Rudalics authored
      * window.h (window): Rename slot "nest" to "combination_limit".
      * window.c (Fwindow_nest): Rename to Fwindow_combination_limit.
      (Fset_window_nest): Rename to Fset_window_combination_limit.
      (Vwindow_nest): Rename to Vwindow_combination_limit.
      (recombine_windows, make_parent_window, make_window)
      (Fsplit_window_internal, saved_window)
      (Fset_window_configuration, save_window_save): Rename all
      occurrences of window_nest to window_combination_limit.
      * window.el (split-window, window-state-get-1)
      (window-state-put-1, window-state-put-2): Rename occurrences of
      window-nest to window-combination-limit.
      * cus-start.el (window-nest): Rename to
      window-combination-limit.
      * windows.texi (Resizing Windows, Splitting Windows): Rename
      occurrences of window-nest to window-combination-limit.
      b6f67890
  22. 07 Oct, 2011 1 commit
  23. 23 Aug, 2011 2 commits
  24. 10 Jun, 2011 1 commit
    • Martin Rudalics's avatar
      Move window resize code from window.c to window.el. · 562dd5e9
      Martin Rudalics authored
      * window.c: Remove declarations of Qwindow_size_fixed,
      window_min_size_1, window_min_size_2, window_min_size,
      size_window, window_fixed_size_p, enlarge_window, delete_window.
      Remove static from declaration of Qdelete_window, it's
      temporarily needed by Fbury_buffer.
      (replace_window): Don't assign orig_top_line and
      orig_total_lines.
      (Fdelete_window, delete_window): Remove.  Window deletion is
      handled by window.el.
      (window_loop): Remove DELETE_OTHER_WINDOWS case.  Replace
      Fdelete_window calls with calls to Qdelete_window.
      (Fdelete_other_windows): Remove.  Deleting other windows is
      handled by window.el.
      (window_fixed_size_p): Remove.  Fixed-sizeness of windows is
      handled in window.el.
      (window_min_size_2, window_min_size_1, window_min_size): Remove.
      Window minimum sizes are handled in window.el.
      (shrink_windows, size_window, set_window_height)
      (set_window_width, change_window_heights, window_height)
      (window_width, CURBEG, CURSIZE, enlarge_window)
      (adjust_window_trailing_edge, Fadjust_window_trailing_edge)
      (Fenlarge_window, Fshrink_window): Remove.  Window resizing is
      handled in window.el.
      (make_dummy_parent): Rename to make_parent_window and give it a
      second argument horflag.
      (make_window): Don't set resize_proportionally any more.
      (Fsplit_window): Remove.  Windows are split in window.el.
      (save_restore_action, save_restore_orig_size)
      (shrink_window_lowest_first, save_restore_orig_size): Remove.
      Resize mini windows in window.el.
      (grow_mini_window, shrink_mini_window): Implement by calling
      Qresize_root_window_vertically, resize_window_check and
      resize_window_apply.
      (saved_window, Fset_window_configuration, save_window_save): Do
      not handle orig_top_line, orig_total_lines, and
      resize_proportionally.
      (window_min_height, window_min_width): Move to window.el.
      (keys_of_window): Move bindings for delete-other-windows,
      split-window, delete-window and enlarge-window to window.el.
      
      * buffer.c: Temporarily extern Qdelete_window.
      (Fbury_buffer): Temporarily call Qdelete_window instead of
      Fdelete_window (Fbury_buffer will move to window.el soon).
      
      * frame.c (set_menu_bar_lines_1): Remove code handling
      orig_top_line and orig_total_lines.
      
      * dispnew.c (adjust_frame_glyphs_initially): Don't use
      set_window_height but set heights directly.
      (change_frame_size_1): Use resize_frame_windows.
      
      * xdisp.c (init_xdisp): Don't use set_window_height but set
      heights directly.
      
      * xfns.c (x_set_menu_bar_lines, x_set_tool_bar_lines): Use
      resize_frame_windows instead of change_window_heights and run
      run_window_configuration_change_hook.
      
      * w32fns.c (x_set_tool_bar_lines): Use resize_frame_windows
      instead of change_window_heights and run
      run_window_configuration_change_hook.
      
      * window.el (window-min-height, window-min-width): Move here
      from window.c.  Add defcustoms and rewrite doc-strings.
      (resize-mini-window, resize-window): New functions.
      (adjust-window-trailing-edge, enlarge-window, shrink-window):
      Move here from window.c.
      (maximize-window, minimize-window): New functions.
      (delete-window, delete-other-windows, split-window): Move here
      from window.c.
      (window-split-min-size): New function.
      (split-window-keep-point): Mention split-window-above-each-other
      instead of split-window-vertically.
      (split-window-above-each-other, split-window-vertically): Rename
      split-window-vertically to split-window-above-each-other and
      provide defalias for old definition.
      (split-window-side-by-side, split-window-horizontally): Rename
      split-window-horizontally to split-window-side-by-side and provide
      defalias for the old definition.
      (ctl-x-map): Move bindings for delete-window,
      delete-other-windows and enlarge-window here from window.c.
      Replace bindings for split-window-vertically and
      split-window-horizontally by bindings for
      split-window-above-each-other and split-window-side-by-side.
      
      * cus-start.el (all): Remove entries for window-min-height and
      window-min-width.  Add entries for window-splits and
      window-nest.
      562dd5e9
  25. 26 Apr, 2011 1 commit
  26. 27 Mar, 2011 1 commit
  27. 08 Mar, 2011 1 commit
  28. 26 Jan, 2011 1 commit
    • Stefan Monnier's avatar
      Let the debugger continue to the normal handler. · e7f7fbaa
      Stefan Monnier authored
      * src/eval.c (maybe_call_debugger): Declare before new use.
      (find_handler_clause): Don't call debugger any more.
      Ignore Vstack_trace_on_error.
      Use XCAR/XCDR.
      (syms_of_eval): Remove Vstack_trace_on_error.
      (Fsignal): Only modify handlerlist when we know we need to do it.
      Call the debugger when necessary.
      * src/globals.h (Vstack_trace_on_error): Remove.
      
      Fixes: debbugs:7825
      e7f7fbaa
  29. 25 Jan, 2011 1 commit
  30. 16 Jan, 2011 1 commit
  31. 02 Jan, 2011 1 commit
  32. 21 Nov, 2010 1 commit
    • Jan Djärv's avatar
      Add separate key mappings for left/right control/command on Nextstep (Bug#7458). · b7d1e144
      Jan Djärv authored
      * lisp/cus-start.el (all): Add ns-right-control-modifier and
      ns-right-command-modifier.
      
      * lisp/term/ns-win.el (ns-right-control-modifier)
      (ns-right-command-modifier): Defvar them.
      
      * src/nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
      Define (Bug#7458).
      (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
      (EV_MODIFIERS): Check for NSRightCommandKeyMask and
      NSRightControlKeyMask also (Bug#7458).
      (keyDown): Ditto (Bug#7458).
      (syms_of_nsterm): Defvar ns-right-command-modifier and
      ns-right-control-modifier (Bug#7458).
      b7d1e144
  33. 31 Oct, 2010 2 commits
  34. 30 Oct, 2010 1 commit
  35. 29 Oct, 2010 2 commits
    • Glenn Morris's avatar
      Remove duplicate Lisp definition of temporary-file-directory, from filelock.c. · e088c02a
      Glenn Morris authored
      * lisp/files.el (temporary-file-directory): Remove (already defined in C).
      * lisp/cus-start.el: Add temporary-file-directory.
      e088c02a
    • Glenn Morris's avatar
      Remove duplicate Lisp definitions of define-minor-mode variables defined in C. · 9d794026
      Glenn Morris authored
      * lisp/abbrev.el (abbrev-mode):
      * lisp/composite.el (auto-composition-mode):
      * lisp/menu-bar.el (menu-bar-mode):
      * lisp/simple.el (transient-mark-mode):
      * lisp/tool-bar.el (tool-bar-mode): Adjust the define-minor-mode calls so
      that they do not define the associated variables twice.
      * lisp/simple.el (transient-mark-mode): Remove defvar.
      * lisp/composite.el (auto-composition-mode): Make variable auto-buffer-local.
      * lisp/cus-start.el: Add transient-mark-mode, menu-bar-mode, tool-bar-mode.
      Handle multiple groups, and also custom-delayed-init-variables.
      * lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Doc fix.
      
      * src/buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
      * src/frame.c (syms_of_frame) <tool-bar-mode>: Move docs here from Lisp.
      9d794026
  36. 24 Oct, 2010 1 commit
    • Glenn Morris's avatar
      Avoid redefining some C defcustoms. · ec514007
      Glenn Morris authored
      * lisp/frame.el (show-trailing-whitespace, auto-hscroll-mode)
      (display-hourglass, hourglass-delay, cursor-in-non-selected-windows):
      Don't redefine things that are defined in C.
      * lisp/cus-start.el: Also handle :risky, :safe, :set, and :tag.
      (show-trailing-whitespace, auto-hscroll-mode)
      (display-hourglass, hourglass-delay, cursor-in-non-selected-windows):
      Set up the appropriate custom properties.
      ec514007
  37. 11 Oct, 2010 1 commit
    • Jan Djärv's avatar
      Bug#7150: Distinguishing between left and right Alt keys on NextStep/OSX. · a2e35ef5
      Jan Djärv authored
      * lisp/cus-start.el (all): ns-right-alternate-modifier is new.
      
      * lisp/term/ns-win.el (ns-right-alternate-modifier): New defvar.
      (ns-right-option-modifier): New alias for ns-right-alternate-modifier.
      (mac-right-option-modifier): New alias for ns-right-option-modifier.
      
      * src/nsterm.m (Qleft): Declare.
      (ns_right_alternate_modifier): New variable
      (NSRightAlternateKeyMask): New define.
      (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
      ns_right_alternate_modifier isn't Qleft.
      (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
      as emacs modifier for NSRightAlternateKeyMask.
      (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
      a2e35ef5