1. 08 Dec, 2013 2 commits
    • Stefan Monnier's avatar
      Make CUA-mode use shift-select-mode. · 27262e39
      Stefan Monnier authored
      * lisp/emulation/cua-base.el (cua--explicit-region-start)
      (cua--last-region-shifted): Remove.
      (cua--deactivate): Use deactivate-mark.
      (cua--pre-command-handler-1): Don't handle shift-selection.
      (cua--post-command-handler-1): Don't change transient-mark-mode.
      (cua--select-keymaps): Use region-active-p rather than
      cua--explicit-region-start or cua--last-region-shifted.
      (cua-mode): Enable shift-select-mode.
      * lisp/emulation/cua-rect.el (cua--rectangle-highlight-for-redisplay):
      New function.
      (redisplay-highlight-region-function): Use it.
      27262e39
    • Stefan Monnier's avatar
      Use delete-selection-mode in cua-mode. · 6f8dfccf
      Stefan Monnier authored
      * lisp/emulation/cua-base.el (cua--prefix-copy-handler)
      (cua--prefix-cut-handler): Rely on region-extract-function rather than
      checking cua--rectangle.
      (cua-delete-region): Use region-extract-function.
      (cua-replace-region): Delete function.
      (cua-copy-region, cua-cut-region): Obey region-extract-function.
      (cua--pre-command-handler-1): Don't do the delete-selection thing.
      (cua--self-insert-char-p): Ignore `self-insert-iso'.
      (cua--init-keymaps): Don't remap delete-selection commands.
      (cua-mode): Use delete-selection-mode instead of rolling our own.
      * lisp/emulation/cua-rect.el (cua--rectangle-region-extract): New function.
      (region-extract-function): Use it.
      (cua-mouse-save-then-kill-rectangle): Use cua-copy-region.
      (cua-copy-rectangle, cua-cut-rectangle, cua-delete-rectangle):
      Delete functions.
      (cua--init-rectangles): Don't re-remap copy-region-as-kill,
      kill-ring-save, kill-region, delete-char, delete-forward-char.
      Ignore self-insert-iso.
      * lisp/menu-bar.el (clipboard-kill-ring-save, clipboard-kill-region):
      Obey region-extract-function.
      * lisp/emulation/cua-gmrk.el (cua--init-global-mark):
      Ignore `self-insert-iso'.
      
      Fixes: debbugs:16085
      6f8dfccf
  2. 05 Aug, 2013 1 commit
    • Dmitry Antipov's avatar
      Do not call to `selected-window' where it is assumed by default. · 290d5b58
      Dmitry Antipov authored
      Affected functions are `window-minibuffer-p', `window-dedicated-p',
      `window-hscroll', `window-width', `window-height', `window-buffer',
      `window-frame', `window-start', `window-point', `next-window'
      and `window-display-table'.
      * abbrev.el (abbrev--default-expand):
      * bs.el (bs--show-with-configuration):
      * buff-menu.el (Buffer-menu-mouse-select):
      * calc/calc.el (calc):
      * calendar/calendar.el (calendar-generate-window):
      * calendar/diary-lib.el (diary-simple-display, diary-show-all-entries)
      (diary-make-entry):
      * comint.el (send-invisible, comint-dynamic-complete-filename)
      (comint-dynamic-simple-complete, comint-dynamic-list-completions):
      * completion.el (complete):
      * dabbrev.el (dabbrev-expand, dabbrev--make-friend-buffer-list):
      * disp-table.el (describe-current-display-table):
      * doc-view.el (doc-view-insert-image):
      * ebuff-menu.el (Electric-buffer-menu-mouse-select):
      * ehelp.el (with-electric-help):
      * emacs-lisp/easy-mmode.el (easy-mmode-define-navigation):
      * emacs-lisp/edebug.el (edebug-two-window-p, edebug-pop-to-buffer):
      * emacs-lisp/helper.el (Helper-help-scroller):
      * emulation/cua-base.el (cua--post-command-handler-1):
      * eshell/esh-mode.el (eshell-output-filter):
      * ffap.el (ffap-gnus-wrapper):
      * help-macro.el (make-help-screen):
      * hilit-chg.el (highlight-compare-buffers):
      * hippie-exp.el (hippie-expand, try-expand-dabbrev-visible):
      * hl-line.el (global-hl-line-highlight):
      * icomplete.el (icomplete-simple-completing-p):
      * isearch.el (isearch-done):
      * jit-lock.el (jit-lock-stealth-fontify):
      * mail/rmailsum.el (rmail-summary-scroll-msg-up):
      * lisp/mouse-drag.el (mouse-drag-should-do-col-scrolling):
      * mpc.el (mpc-tagbrowser, mpc):
      * net/rcirc.el (rcirc-any-buffer):
      * play/gomoku.el (gomoku-max-width, gomoku-max-height):
      * play/landmark.el (landmark-max-width, landmark-max-height):
      * play/zone.el (zone):
      * progmodes/compile.el (compilation-goto-locus):
      * progmodes/ebrowse.el (ebrowse-view/find-file-and-search-pattern):
      * progmodes/etags.el (find-tag-other-window):
      * progmodes/fortran.el (fortran-column-ruler):
      * progmodes/gdb-mi.el (gdb-mouse-toggle-breakpoint-fringe):
      * progmodes/verilog-mode.el (verilog-point-text):
      * reposition.el (reposition-window):
      * rot13.el (toggle-rot13-mode):
      * server.el (server-switch-buffer):
      * shell.el (shell-dynamic-complete-command)
      (shell-dynamic-complete-environment-variable):
      * simple.el (insert-buffer, set-selective-display)
      (delete-completion-window):
      * speedbar.el (speedbar-timer-fn, speedbar-center-buffer-smartly)
      (speedbar-recenter):
      * startup.el (fancy-splash-head):
      * textmodes/ispell.el (ispell-command-loop):
      * textmodes/makeinfo.el (makeinfo-compilation-sentinel-region):
      * tutorial.el (help-with-tutorial):
      * vc/add-log.el (add-change-log-entry):
      * vc/compare-w.el (compare-windows):
      * vc/ediff-help.el (ediff-indent-help-message):
      * vc/ediff-util.el (ediff-setup-control-buffer, ediff-position-region):
      * vc/ediff-wind.el (ediff-skip-unsuitable-frames)
      (ediff-setup-control-frame):
      * vc/emerge.el (emerge-position-region):
      * vc/pcvs-util.el (cvs-bury-buffer):
      * window.el (walk-windows, mouse-autoselect-window-select):
      * winner.el (winner-set-conf, winner-undo): Related users changed.
      290d5b58
  3. 01 Jan, 2013 1 commit
  4. 08 Jun, 2012 1 commit
    • Chong Yidong's avatar
      Face cleanups. Remove some uses of old-style face spec and :bold/:italic. · 4b56d0fe
      Chong Yidong authored
      * faces.el (set-face-attribute): Doc fix.
      (modify-face): Don't use :bold and :italic.
      (error, warning, success): Tweak definitions.
      
      * cus-edit.el (custom-modified, custom-invalid, custom-rogue)
      (custom-modified, custom-set, custom-changed, custom-themed)
      (custom-saved, custom-button, custom-button-mouse)
      (custom-button-pressed, custom-state, custom-comment-tag)
      (custom-variable-tag, custom-group-tag-1, custom-group-tag)
      (custom-group-subtitle): Use new-style face specs.
      (custom-invalid-face, custom-rogue-face, custom-modified-face)
      (custom-set-face, custom-changed-face, custom-saved-face)
      (custom-button-face, custom-button-pressed-face)
      (custom-documentation-face, custom-state-face)
      (custom-comment-face, custom-comment-tag-face)
      (custom-variable-tag-face, custom-variable-button-face)
      (custom-face-tag-face, custom-group-tag-face-1)
      (custom-group-tag-face): Remove obsolete face alias.
      
      * epa.el (epa-validity-high, epa-validity-medium)
      (epa-validity-low, epa-mark, epa-field-name, epa-string)
      (epa-field-name, epa-field-body):
      * font-lock.el (font-lock-comment-face, font-lock-string-face)
      (font-lock-keyword-face, font-lock-builtin-face)
      (font-lock-function-name-face, font-lock-variable-name-face)
      (font-lock-type-face, font-lock-constant-face):
      * ido.el (ido-first-match, ido-only-match, ido-subdir)
      (ido-virtual, ido-indicator, ido-incomplete-regexp):
      * speedbar.el (speedbar-button-face, speedbar-file-face)
      (speedbar-directory-face, speedbar-tag-face)
      (speedbar-selected-face, speedbar-highlight-face)
      (speedbar-separator-face):
      * whitespace.el (whitespace-newline, whitespace-space)
      (whitespace-hspace, whitespace-tab, whitespace-trailing)
      (whitespace-line, whitespace-space-before-tab)
      (whitespace-space-after-tab, whitespace-indentation)
      (whitespace-empty):
      * emulation/cua-base.el (cua-global-mark):
      * eshell/em-prompt.el (eshell-prompt):
      * net/newst-plainview.el (newsticker-new-item-face)
      (newsticker-old-item-face, newsticker-immortal-item-face)
      (newsticker-obsolete-item-face, newsticker-date-face)
      (newsticker-statistics-face, newsticker-default-face):
      * net/newst-reader.el (newsticker-feed-face)
      (newsticker-extra-face, newsticker-enclosure-face):
      * net/newst-treeview.el (newsticker-treeview-face)
      (newsticker-treeview-new-face, newsticker-treeview-old-face)
      (newsticker-treeview-immortal-face)
      (newsticker-treeview-obsolete-face)
      (newsticker-treeview-selection-face):
      * net/rcirc.el (rcirc-my-nick, rcirc-other-nick)
      (rcirc-bright-nick, rcirc-server, rcirc-timestamp)
      (rcirc-nick-in-message, rcirc-nick-in-message-full-line)
      (rcirc-prompt, rcirc-track-keyword, rcirc-url, rcirc-keyword):
      * nxml/nxml-outln.el (nxml-heading, nxml-outline-indicator)
      (nxml-outline-active-indicator, nxml-outline-ellipsis):
      * play/mpuz.el (mpuz-unsolved, mpuz-solved, mpuz-trivial)
      (mpuz-text):
      * progmodes/vera-mode.el (vera-font-lock-number)
      (vera-font-lock-function, vera-font-lock-interface):
      * textmodes/table.el (table-cell): Use new-style face specs, and
      don't use the old :bold and :italic attributes.
      
      * erc-button.el (erc-button):
      * erc-goodies.el (erc-bold-face, erc-inverse-face)
      (erc-underline-face, fg:erc-color-*):
      * erc-match.el (erc-current-nick-face, erc-dangerous-host-face)
      (erc-pal-face, erc-fool-face, erc-keyword-face):
      * erc-stamp.el (erc-timestamp-face): Likewise.
      
      * erc.el (erc-direct-msg-face, erc-header-line, erc-input-face)
      (erc-command-indicator-face, erc-notice-face, erc-action-face)
      (erc-error-face, erc-my-nick-face, erc-nick-default-face)
      (erc-nick-msg-face): Use new-style face specs, and avoid :bold.
      
      * progmodes/ebrowse.el (ebrowse-tree-mark, ebrowse-root-class)
      (ebrowse-member-attribute, ebrowse-default, ebrowse-file-name)
      (ebrowse-member-class, ebrowse-progress): Likewise.
      (ebrowse-tree-mark-face, ebrowse-root-class-face)
      (ebrowse-file-name-face, ebrowse-default-face)
      (ebrowse-member-attribute-face, ebrowse-member-class-face)
      (ebrowse-progress-face): Remove obsolete faces.
      
      * progmodes/flymake.el (flymake-errline, flymake-warnline):
      Inherit from error and warning faces respectively.
      
      * textmodes/flyspell.el (flyspell-incorrect, flyspell-duplicate):
      Likewise.
      (flyspell-incorrect-face, flyspell-duplicate-face): Remove
      obsolete aliases.
      
      * display.texi (Face Attributes): Font family does not accept
      wildcards.  De-document obsolete :bold and :italic attributes.
      (Defining Faces): Use new-style face spec format.
      4b56d0fe
  5. 13 Apr, 2012 2 commits
  6. 10 Mar, 2012 1 commit
  7. 28 Feb, 2012 1 commit
  8. 11 Jan, 2012 1 commit
  9. 05 Jan, 2012 1 commit
  10. 31 Dec, 2011 1 commit
  11. 12 Dec, 2011 1 commit
  12. 04 Dec, 2011 1 commit
  13. 20 Oct, 2011 2 commits
    • Christoph Scholtes's avatar
    • Chong Yidong's avatar
      Fix more minor mode docstrings. · ac6c8639
      Chong Yidong authored
      * lisp/emulation/cua-base.el (cua-mode):
      * lisp/mail/footnote.el (footnote-mode):
      * lisp/mail/mailabbrev.el (mail-abbrevs-mode):
      * lisp/net/xesam.el (xesam-minor-mode):
      * lisp/progmodes/bug-reference.el (bug-reference-mode):
      * lisp/progmodes/cap-words.el (capitalized-words-mode):
      * lisp/progmodes/compile.el (compilation-minor-mode)
      (compilation-shell-minor-mode):
      * lisp/progmodes/gud.el (gud-tooltip-mode):
      * lisp/progmodes/hideif.el (hide-ifdef-mode):
      * lisp/progmodes/idlw-shell.el (idlwave-shell-electric-debug-mode):
      * lisp/progmodes/subword.el (subword-mode):
      * lisp/progmodes/vhdl-mode.el (vhdl-electric-mode, vhdl-stutter-mode):
      * lisp/progmodes/which-func.el (which-function-mode):
      * lisp/term/tvi970.el (tvi970-set-keypad-mode):
      * lisp/term/vt100.el (vt100-wide-mode):
      * lisp/textmodes/flyspell.el (flyspell-mode):
      * lisp/textmodes/ispell.el (ispell-minor-mode):
      * lisp/textmodes/nroff-mode.el (nroff-electric-mode):
      * lisp/textmodes/paragraphs.el (use-hard-newlines):
      * lisp/textmodes/refill.el (refill-mode):
      * lisp/textmodes/reftex.el (reftex-mode):
      * lisp/textmodes/rst.el (rst-minor-mode):
      * lisp/textmodes/sgml-mode.el (html-autoview-mode)
      (sgml-electric-tag-pair-mode):
      * lisp/textmodes/tex-mode.el (latex-electric-env-pair-mode):
      * lisp/vc/diff-mode.el (diff-auto-refine-mode, diff-minor-mode):
      * lisp/emulation/crisp.el (crisp-mode):
      * lisp/emacs-lisp/eldoc.el (eldoc-mode):
      * lisp/emacs-lisp/checkdoc.el (checkdoc-minor-mode): Doc fixes for new
      minor mode behavior.
      
      * lisp/erc/erc-fill.el (erc-fill-mode):
      * lisp/erc/erc-track.el (erc-track-minor-mode): Doc fix.
      
      * lisp/erc/erc.el (define-erc-module): Fix autogenerated docstring to
      reflect Emacs 24 minor mode changes.
      
      * lisp/gnus/gnus-cite.el (gnus-message-citation-mode): Doc fix (in Emacs 24,
      calling a minor mode from Lisp with nil arg enables it, so we have to
      make the working a bit ambiguous here).
      ac6c8639
  14. 25 Apr, 2011 1 commit
  15. 18 Feb, 2011 1 commit
  16. 12 Feb, 2011 1 commit
  17. 25 Jan, 2011 1 commit
  18. 16 Jan, 2011 1 commit
  19. 14 Jan, 2011 1 commit
  20. 02 Jan, 2011 1 commit
  21. 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
  22. 23 Sep, 2010 1 commit
    • Glenn Morris's avatar
      Remove leading `*' from docs of some defcustoms etc. · 1fc7dabf
      Glenn Morris authored
      * emulation/crisp.el, emulation/cua-base.el, emulation/edt.el:
      * emulation/pc-select.el, emulation/vip.el, international/iso-ascii.el:
      * international/kkc.el, international/ogonek.el, mail/feedmail.el:
      * net/browse-url.el, net/eudc-vars.el, net/net-utils.el:
      * net/rcompile.el, net/rlogin.el, textmodes/enriched.el:
      * textmodes/makeinfo.el, textmodes/page-ext.el, textmodes/picture.el:
      * textmodes/refer.el, textmodes/spell.el, textmodes/table.el:
      * textmodes/tex-mode.el, textmodes/two-column.el:
      Remove leading `*' from docs of defcustoms etc.
      1fc7dabf
  23. 26 Jun, 2010 1 commit
  24. 30 May, 2010 2 commits
  25. 10 May, 2010 1 commit
  26. 07 May, 2010 1 commit
  27. 05 Apr, 2010 1 commit
  28. 13 Jan, 2010 1 commit
  29. 08 Nov, 2009 1 commit
  30. 02 Oct, 2009 1 commit
  31. 28 Aug, 2009 1 commit
  32. 05 Jan, 2009 1 commit
  33. 18 Dec, 2008 1 commit
  34. 27 Jun, 2008 1 commit
  35. 11 May, 2008 1 commit
  36. 06 May, 2008 1 commit