1. 11 Sep, 2013 1 commit
    • Stefan Monnier's avatar
      Use define-derived-mode (and derived-mode-p). · 1b3b87df
      Stefan Monnier authored
      * lisp/play/snake.el (snake-mode):
      * lisp/play/mpuz.el (mpuz-mode):
      * lisp/play/landmark.el (lm-mode):
      * lisp/play/blackbox.el (blackbox-mode):
      * lisp/play/5x5.el (5x5-mode):
      * lisp/obsolete/options.el (Edit-options-mode):
      * lisp/net/quickurl.el (quickurl-list-mode):
      * lisp/net/newst-treeview.el (newsticker-treeview-mode):
      * lisp/mail/rmailsum.el (rmail-summary-mode):
      * lisp/mail/mspools.el (mspools-mode):
      * lisp/locate.el (locate-mode):
      * lisp/ibuffer.el (ibuffer-mode):
      * lisp/emulation/ws-mode.el (wordstar-mode):
      * lisp/emacs-lisp/debug.el (debugger-mode):
      * lisp/array.el (array-mode):
      * lisp/net/eudc.el (eudc-mode): Use define-derived-mode.
      * lisp/net/mairix.el (mairix-searches-mode-font-lock-keywords):
      Move initialization into declaration.
      (mairix-searches-mode): Use define-derived-mode.
      * lisp/net/eudc-hotlist.el (eudc-hotlist-mode): Use define-derived-mode.
      (eudc-edit-hotlist): Use dolist.
      * lisp/man.el (Man-mode-syntax-table): Rename from man-mode-syntax-table.
      (Man-mode): Use define-derived-mode.
      * lisp/info.el (Info-edit-mode-map): Rename from Info-edit-map.
      (Info-edit-mode): Use define-derived-mode.
      (Info-cease-edit): Use Info-mode.
      * lisp/eshell/esh-mode.el (eshell-mode-syntax-table): Move initialization
      into declaration.
      (eshell-mode): Use define-derived-mode.
      * lisp/chistory.el (command-history-mode-map): Rename from
      command-history-map.
      (command-history-mode): Use define-derived-mode.
      * lisp/calc/calc.el (calc-trail-mode-map): New var.
      (calc-trail-mode): Use define-derived-mode.
      (calc-trail-buffer): Set calc-main-buffer manually.
      * lisp/bookmark.el (bookmark-insert-annotation): New function.
      (bookmark-edit-annotation): Use it.
      (bookmark-edit-annotation-mode): Make it a proper major mode.
      (bookmark-send-edited-annotation): Use derived-mode-p.
      * lisp/arc-mode.el (archive-mode): Move kill-all-local-variables a tiny bit
      closer to its ideal place.  Use \' to match EOS.
      
      * lisp/cedet/semantic/grammar.el (semantic-grammar-mode): Use define-derived-mode.
      (semantic-grammar-mode-syntax-table): Rename from
      semantic-grammar-syntax-table.
      (semantic-grammar-mode-map): Rename from semantic-grammar-map.
      * lisp/cedet/data-debug.el (data-debug-mode-map): Rename from data-debug-map.
      (data-debug-mode): Use define-derived-mode.
      
      * lisp/gnus/score-mode.el (gnus-score-mode-map): Move initialization
      into declaration.
      (gnus-score-mode): Use define-derived-mode.
      * lisp/gnus/gnus-srvr.el (gnus-browse-mode): Use define-derived-mode.
      * lisp/gnus/gnus-kill.el (gnus-kill-file-mode-map): Move initialization
      into declaration.
      (gnus-kill-file-mode): Use define-derived-mode.
      (gnus-kill-file-edit-file, gnus-kill-file-enter-kill, gnus-kill):
      Use derived-mode-p.
      * lisp/gnus/gnus-group.el (gnus-group-mode): Use define-derived-mode.
      (gnus-group-setup-buffer, gnus-group-name-at-point)
      (gnus-group-make-web-group, gnus-group-enter-directory)
      (gnus-group-suspend): Use derived-mode-p.
      * lisp/gnus/gnus-cus.el (gnus-custom-mode): Use define-derived-mode.
      * lisp/gnus/gnus-bookmark.el (gnus-bookmark-bmenu-mode): Use define-derived-mode.
      * lisp/gnus/gnus-art.el (gnus-article-mode): Use define-derived-mode.
      (gnus-article-setup-buffer, gnus-article-prepare)
      (gnus-article-prepare-display, gnus-sticky-article)
      (gnus-kill-sticky-article-buffer, gnus-kill-sticky-article-buffers)
      (gnus-bind-safe-url-regexp, gnus-article-check-buffer)
      (gnus-article-read-summary-keys): Use derived-mode-p.
      1b3b87df
  2. 01 Jan, 2013 1 commit
  3. 11 Jan, 2012 1 commit
  4. 05 Jan, 2012 1 commit
  5. 25 Jan, 2011 1 commit
  6. 02 Jan, 2011 1 commit
  7. 09 Nov, 2010 1 commit
    • Glenn Morris's avatar
      Replace still more end-of-line etc with line-end-position, etc. · 9b026d9f
      Glenn Morris authored
      * lisp/gnus/nnbabyl.el (nnbabyl-request-move-article, nnbabyl-delete-mail)
      (nnbabyl-check-mbox): Use point-at-bol.
      
      * lisp/cedet/semantic/lex.el (semantic-lex-ignore-comments, semantic-flex):
      * lisp/cedet/semantic/grammar.el (semantic-grammar-epilogue):
      * lisp/cedet/ede/speedbar.el (ede-find-nearest-file-line):
      * lisp/cedet/ede/pmake.el (ede-proj-makefile-insert-dist-rules):
      * lisp/cedet/ede/autoconf-edit.el (autoconf-delete-parameter):
      Use point-at-bol and point-at-eol.
      
      * lisp/vc/emerge.el (emerge-line-number-in-buf):
      * lisp/textmodes/ispell.el (ispell-region):
      * lisp/textmodes/fill.el (current-fill-column):
      * lisp/progmodes/xscheme.el (xscheme-send-current-line):
      * lisp/progmodes/vhdl-mode.el (vhdl-current-line, vhdl-line-copy):
      * lisp/progmodes/tcl.el (tcl-hairy-scan-for-comment):
      * lisp/progmodes/sh-script.el (sh-handle-prev-do):
      * lisp/progmodes/meta-mode.el (meta-indent-line):
      * lisp/progmodes/idlwave.el (idlwave-goto-comment, idlwave-fill-paragraph)
      (idlwave-in-quote):
      * lisp/progmodes/idlw-shell.el (idlwave-shell-current-frame)
      (idlwave-shell-update-bp-overlays, idlwave-shell-sources-filter):
      * lisp/progmodes/fortran.el (fortran-looking-at-if-then):
      * lisp/progmodes/etags.el (find-tag-in-order, etags-snarf-tag):
      * lisp/progmodes/cperl-mode.el (cperl-sniff-for-indent)
      (cperl-find-pods-heres):
      * lisp/progmodes/ada-mode.el (ada-get-current-indent, ada-narrow-to-defun):
      * lisp/net/quickurl.el (quickurl-list-insert):
      * lisp/net/ldap.el (ldap-search-internal):
      * lisp/net/eudc.el (eudc-expand-inline):
      * lisp/mail/sendmail.el (sendmail-send-it):
      * lisp/mail/mspools.el (mspools-visit-spool, mspools-get-spool-name):
      * lisp/emulation/viper-cmd.el (viper-paren-match, viper-backward-indent)
      (viper-brac-function):
      * lisp/calc/calc-yank.el (calc-do-grab-region):
      * lisp/calc/calc-keypd.el (calc-keypad-press):
      * lisp/term.el (term-move-columns, term-insert-spaces):
      * lisp/speedbar.el (speedbar-highlight-one-tag-line):
      * lisp/simple.el (current-word):
      * lisp/mouse-drag.el (mouse-drag-should-do-col-scrolling):
      * lisp/info.el (Info-find-node-in-buffer-1, Info-follow-reference)
      (Info-scroll-down):
      * lisp/hippie-exp.el (he-line-beg):
      * lisp/epa.el (epa--marked-keys):
      * lisp/dired-aux.el (dired-kill-line, dired-do-kill-lines)
      (dired-update-file-line, dired-add-entry, dired-remove-entry)
      (dired-relist-entry):
      * lisp/buff-menu.el (Buffer-menu-buffer):
      * lisp/array.el (current-line):
      * lisp/allout.el (allout-resolve-xref)
      (allout-latex-verbatim-quote-curr-line):
      Replace yet more uses of end-of-line etc with line-end-position.
      9b026d9f
  8. 10 Oct, 2010 1 commit
    • Dan Nicolaescu's avatar
      Declare and define in one step various mode maps. · a0310a6c
      Dan Nicolaescu authored
      * lisp/shell.el (shell-mode-map):
      * lisp/progmodes/modula2.el (m2-mode-map):
      * lisp/progmodes/inf-lisp.el (inferior-lisp-mode-map):
      * lisp/play/mpuz.el (mpuz-mode-map):
      * lisp/play/landmark.el (lm-mode-map):
      * lisp/play/decipher.el (decipher-mode-map):
      * lisp/play/5x5.el (5x5-mode-map):
      * lisp/net/telnet.el (telnet-mode-map):
      * lisp/net/quickurl.el (quickurl-list-mode-map):
      * lisp/net/mairix.el (mairix-searches-mode-map):
      * lisp/net/eudc-hotlist.el (eudc-hotlist-mode-map):
      * lisp/net/dig.el (dig-mode-map):
      * lisp/mail/mspools.el (mspools-mode-map):
      * lisp/hexl.el (hexl-mode-map):
      * lisp/emulation/ws-mode.el (wordstar-C-k-map, wordstar-mode-map)
      (wordstar-C-o-map, wordstar-C-q-map):
      * lisp/emacs-lisp/edebug.el (edebug-eval-mode-map):
      * lisp/emacs-lisp/chart.el (chart-map):
      * lisp/edmacro.el (edmacro-mode-map):
      * lisp/array.el (array-mode-map): Declare and define in one step.
      
      * lisp/erc/erc-list.el (erc-list-menu-mode-map): Declare and define in one step.
      a0310a6c
  9. 13 Jan, 2010 1 commit
  10. 10 Jan, 2009 1 commit
  11. 05 Jan, 2009 1 commit
  12. 06 May, 2008 1 commit
  13. 07 Jan, 2008 1 commit
  14. 25 Jul, 2007 1 commit
  15. 21 Jan, 2007 1 commit
  16. 05 Dec, 2006 1 commit
  17. 18 Jan, 2006 1 commit
    • Stefan Monnier's avatar
      Move defvars out of eval-when-compile. · 7a9ac688
      Stefan Monnier authored
      (array-make-template): Replace undeclared global var with a local one.
      (array-mode): Inline initialization functions.
      (array-init-local-variables, array-init-max-row)
      (array-init-max-column, array-init-columns-per-line)
      (array-init-field-width, array-init-rows-numbered)
      (array-init-line-length, array-init-lines-per-row): Remove.
      7a9ac688
  18. 06 Aug, 2005 1 commit
  19. 18 Jul, 2005 1 commit
  20. 04 Jul, 2005 1 commit
  21. 26 May, 2005 1 commit
  22. 18 May, 2005 1 commit
  23. 16 May, 2005 1 commit
  24. 16 Apr, 2004 1 commit
  25. 08 Sep, 2003 1 commit
  26. 01 Sep, 2003 1 commit
  27. 04 Feb, 2003 1 commit
  28. 13 Jan, 2002 1 commit
  29. 26 Nov, 2001 1 commit
  30. 15 Jul, 2001 1 commit
  31. 11 Jan, 2000 1 commit
  32. 06 Jan, 2000 1 commit
  33. 29 Aug, 1999 1 commit
  34. 10 Aug, 1999 1 commit
  35. 17 Apr, 1998 1 commit
  36. 25 Jan, 1996 1 commit
  37. 14 Jan, 1996 1 commit
  38. 20 Nov, 1995 1 commit
  39. 25 Apr, 1995 1 commit
  40. 10 Aug, 1993 1 commit