1. 05 Apr, 2015 1 commit
    • Alan Mackenzie's avatar
      Rationalize use of c[ad]+r, expunging cl-c[ad]\{3,4\}r. · 2056db3f
      Alan Mackenzie authored
      Also expunge eudc-c[ad]+r.
      
      * subr.el (internal--compiler-macro-cXXr): "New" function, copied
      from cl--compiler-macro-cXXr.
      (caar, cadr, cdar, cddr): Change from defsubsts to defuns with
      the above compiler-macro.
      
      * net/eudc.el (eudc-cadr, eudc-cdar, eudc-caar, eudc-cdaar): Remove.
      
      * emacs-lisp/cl.el (Top level dolist doing defaliases): Remove
      caaar, etc., from list of new alias functions.
      
      * emacs-lisp/cl-lib.el (cl-caaar, etc): Rename to caaar, etc.
      (gen-cXXr--rawname, gen-cXXr-all-cl-aliases): New function/macro
      which generate obsolete cl- aliases for caaar, etc.  Invoke them.
      
      * desktop.el:
      * edmacro.el:
      * emacs-lisp/cl-macs.el:
      * frameset.el:
      * ibuffer.el:
      * mail/footnote.el:
      * net/dbus.el:
      * net/eudc-export.el:
      * net/eudc.el:
      * net/eudcb-ph.el:
      * net/rcirc.el:
      * net/secrets.el:
      * play/5x5.el:
      * play/decipher.el:
      * play/hanoi.el:
      * progmodes/hideif.el:
      * ses.el: Replace cl-caaar, eudc-cadr, etc. with caaar and cadr, etc.
      2056db3f
  2. 02 Jan, 2015 2 commits
  3. 01 Jan, 2015 2 commits
  4. 23 Sep, 2014 1 commit
  5. 22 Sep, 2014 1 commit
    • Stefan Monnier's avatar
      Use lexical-bindin in Ibuffer. · 601a0cfe
      Stefan Monnier authored
      * lisp/ibuffer.el (ibuffer-do-toggle-read-only): `arg' is unused.
      (ibuffer-compile-format): Simplify.
      (ibuffer-clear-summary-columns): Simplify.
      * lisp/ibuf-ext.el (ibuffer-generate-filter-groups): Don't use the third
      elem of dotimes when we don't refer to the iteration var from it.
      (ibuffer-toggle-sorting-mode): Avoid add-to-list.
      * lisp/ibuf-macs.el (define-ibuffer-column, define-ibuffer-op):
      Silence byte-compiler.
      601a0cfe
  6. 31 Aug, 2014 1 commit
    • Christoph Scholtes's avatar
      Replace mode-specific quit function in ibuffer.el · 60aa41b9
      Christoph Scholtes authored
      * lisp/ibuffer.el: Replace mode-specific quit function with
      `quit-window' via `special-mode'.
      (ibuffer-mode-map): Use keybindings from special-mode-map instead
      of local overrides.
      (ibuffer): Don't store previous windows configuration. Let
      `quit-window' handle restoring.
      (ibuffer-quit): Remove function. Use `quit-window' instead.
      (ibuffer-restore-window-config-on-quit): Remove variable.
      (ibuffer-prev-window-config): Remove variable.
      60aa41b9
  7. 08 Aug, 2014 1 commit
  8. 01 Jan, 2014 1 commit
  9. 30 Oct, 2013 1 commit
  10. 27 Oct, 2013 1 commit
  11. 15 Sep, 2013 1 commit
  12. 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
  13. 10 Aug, 2013 1 commit
    • Juanma Barranquero's avatar
      lisp/*.el: Remove lexical-binding warnings; additional small cleanups. · 45fdb482
      Juanma Barranquero authored
      * calculator.el (calculator): Mark unused argument.
        (calculator-paste, calculator-quit, calculator-integer-p):
        Use ignore-errors.
        (calculator-string-to-number, calculator-decimal, calculator-exp)
        (calculator-op-or-exp): Use string-match-p.
      
      * dired-aux.el (dired-compress): Use ignore-errors.
        (dired-do-chxxx, dired-do-chmod, dired-trample-file-versions)
        (dired-do-async-shell-command, dired-do-shell-command)
        (dired-shell-stuff-it, dired-compress-file, dired-insert-subdir)
        (dired-insert-subdir-validate): Use string-match-p.
        (dired-map-dired-file-lines, dired-subdir-hidden-p): Use looking-at-p.
        (dired-add-entry): Use string-match-p, looking-at-p.
        (dired-insert-subdir-newpos): Remove unused local variable.
      
      * dired.el (dired-buffer-more-recently-used-p): Declare.
        (dired-insert-set-properties, dired-insert-old-subdirs):
        Use ignore-errors.
      
      * filenotify.el (file-notify-callback): Remove unused local variable.
      
      * filesets.el (filesets-error): Mark unused argument.
        (filesets-which-command-p, filesets-filter-dir-names)
        (filesets-directory-files, filesets-get-external-viewer)
        (filesets-ingroup-get-data): Use string-match-p.
      
      * find-file.el (ff-other-file-name, ff-other-file-name)
        (ff-find-the-other-file, ff-cc-hh-converter):
        Remove unused local variables.
        (ff-get-file-name): Use string-match-p.
        (ff-all-dirs-under): Use ignore-errors.
      
      * follow.el (follow-comint-scroll-to-bottom): Mark unused argument.
        (follow-select-if-visible): Remove unused local variable.
      
      * forms.el (read-file-filter): Move declaration.
        (forms--make-format, forms--make-parser, forms-insert-record):
        Quote function with #'.
        (forms--update): Use string-match-p.  Quote function with #'.
      
      * help-mode.el (help-dir-local-var-def): Mark unused argument.
        (help-make-xrefs): Use looking-at-p.
        (help-xref-on-pp): Use looking-at-p, ignore-errors.
      
      * ibuffer.el (ibuffer-ext-visible-p): Declare.
        (ibuffer-confirm-operation-on): Use string-match-p.
      
      * msb.el (msb-item-handler, msb-dired-item-handler):
        Mark unused arguments.
      
      * ses.el (ses-decode-cell-symbol)
        (ses-kill-override): Remove unused local variable.
        (ses-create-cell-variable, ses-relocate-formula): Use string-match-p.
        (ses-load): Use ignore-errors, looking-at-p.
        (ses-jump-safe): Use ignore-errors.
        (ses-export-tsv, ses-export-tsf, ses-unsafe): Mark unused arguments.
      
      * tabify.el (untabify, tabify): Mark unused arguments.
      
        * thingatpt.el (thing-at-point--bounds-of-well-formed-url):
        Mark unused argument.
        (bounds-of-thing-at-point, thing-at-point-bounds-of-list-at-point)
        (thing-at-point-newsgroup-p, form-at-point): Use ignore-errors.
      45fdb482
  14. 31 Jul, 2013 1 commit
  15. 03 Jul, 2013 1 commit
  16. 13 Jun, 2013 1 commit
  17. 07 Mar, 2013 1 commit
  18. 01 Jan, 2013 2 commits
  19. 17 Nov, 2012 1 commit
  20. 11 Nov, 2012 2 commits
  21. 24 Sep, 2012 1 commit
  22. 23 Sep, 2012 1 commit
    • Chong Yidong's avatar
      Convert toggle-read-only calls to read-only-mode. · 9a930676
      Chong Yidong authored
      * bindings.el (mode-line-toggle-read-only):
      * bs.el (bs-toggle-readonly):
      * buff-menu.el (Buffer-menu-toggle-read-only):
      * dired.el (dired-toggle-read-only):
      * ibuffer.el (ibuffer-do-toggle-read-only): Use read-only-mode.
      9a930676
  23. 17 Sep, 2012 1 commit
    • Chong Yidong's avatar
      Update docstrings and comments to use "init file" terminology. · 865fe16f
      Chong Yidong authored
      * bookmark.el (bookmark-bmenu-toggle-filenames): Doc fixes.
      * comint.el (comint-prompt-read-only):
      * custom.el (defcustom):
      * hi-lock.el (hi-lock-mode):
      * ibuffer.el (ibuffer-formats):
      * ielm.el (ielm-prompt-read-only):
      * novice.el (disable-command):
      * saveplace.el (toggle-save-place):
      * speedbar.el (speedbar-supported-extension-expressions):
      * startup.el (auto-save-list-file-prefix, init-file-user)
      (after-init-hook, inhibit-startup-echo-area-message):
      * strokes.el (strokes-help):
      * time-stamp.el (time-stamp):
      * calendar/calendar.el (calendar, diary-file):
      * calendar/diary-lib.el (diary-mail-entries, diary)
      (diary-list-entries-hook):
      * calendar/holidays.el (holidays, calendar-holidays):
      * calendar/lunar.el (lunar-phases):
      * calendar/solar.el (sunrise-sunset):
      * emulation/edt.el (edt-load-keys):
      * emulation/viper.el (viper-mode):
      * eshell/em-alias.el (eshell-command-aliases-list):
      * eshell/esh-util.el (eshell-convert-numeric-arguments):
      * international/ogonek.el (ogonek-information):
      * net/tramp-cmds.el (tramp-bug):
      * net/quickurl.el (quickurl-reread-hook-postfix):
      * play/decipher.el (decipher-font-lock-keywords):
      * progmodes/cc-styles.el (c-set-style):
      * progmodes/idlw-shell.el (idlwave-shell-prompt-pattern):
      * progmodes/inf-lisp.el (inferior-lisp-prompt):
      * progmodes/octave-mod.el (octave-mode):
      * progmodes/sql.el (sql-mode, sql-interactive-mode, sql-password):
      * progmodes/verilog-mode.el (verilog-read-defines):
      * textmodes/two-column.el (2C-mode): Likewise.
      865fe16f
  24. 29 Aug, 2012 1 commit
    • Stefan Monnier's avatar
      * lisp/files.el (read-only-mode): New minor mode. · 35e62fc9
      Stefan Monnier authored
      (toggle-read-only): Use it and mark obsolete.
      (find-file--read-only):
      * lisp/vc/vc.el (vc-next-action, vc-checkout):
      * lisp/vc/vc-cvs.el (vc-cvs-checkout):
      * lisp/obsolete/vc-mcvs.el (vc-mcvs-update):
      * lisp/ffap.el (ffap--toggle-read-only): Update callers.
      35e62fc9
  25. 12 Aug, 2012 1 commit
    • Stefan Monnier's avatar
      * lisp/ibuffer.el (ibuffer-do-toggle-read-only): · ba10c48c
      Stefan Monnier authored
      * lisp/dired.el (dired-toggle-read-only):
      * lisp/buff-menu.el (Buffer-menu-toggle-read-only):
      * lisp/bindings.el (mode-line-toggle-read-only):
      * lisp/bs.el (bs-toggle-readonly): Call toggle-read-only interactively.
      ba10c48c
  26. 13 Jul, 2012 1 commit
    • Chong Yidong's avatar
      Don't warn on toggle-read-only calls. · b68b3337
      Chong Yidong authored
      Clarify the documentation of toggle-read-only, and audit the code tree
      for uses of toggle-read-only; where appropriate, switch to setting the
      variable buffer-read-only or calling toggle-read-only with a (new)
      second arg.
      
      * lisp/files.el (toggle-read-only): Doc fix and code cleanup.  New arg
      to allow printing the message when called from Lisp.
      
      * lisp/emacs-lisp/bytecomp.el (byte-compile-interactive-only-functions):
      Remove toggle-read-only.
      
      * lisp/bindings.el (mode-line-toggle-read-only):
      * lisp/dired.el (dired-toggle-read-only):
      * lisp/ibuffer.el (ibuffer-do-toggle-read-only): Call toggle-read-only
      with non-nil second arg.
      
      * lisp/bs.el (bs-toggle-readonly):
      * lisp/buff-menu.el (Buffer-menu-toggle-read-only): Remove
      with-no-warnings around toggle-read-only.
      
      * lisp/ffap.el (ffap--toggle-read-only): Accept a list of buffers.
      Remove with-no-warnings around toggle-read-only.
      (ffap-read-only, ffap-read-only-other-window)
      (ffap-read-only-other-frame): Callers changed.
      
      * lisp/help-mode.el: Don't require view package.
      (help-mode-finish): Set buffer-read-only instead of calling
      toggle-read-only.
      
      * lisp/emacs-lisp/eieio-custom.el (eieio-customize-object):
      * lisp/vc/ediff.el (ediff-set-read-only-in-buf-A): Set buffer-read-only
      directly.
      
      * lisp/gnus/smime.el (smime-certificate-info): Set buffer-read-only directly,
      instead of calling toggle-read-only with a (bogus) argument.
      
      * doc/emacs/buffers.texi (Misc Buffer): Document view-read-only.
      
      * doc/lispref/buffers.texi (Read Only Buffers): Document toggle-read-only
      changes.  Reword to account for the fact that read-only is currently not
      supported in overlay properties.
      b68b3337
  27. 11 Jul, 2012 1 commit
    • Stefan Monnier's avatar
      More CL cleanups and reduction of use of cl.el. · a464a6c7
      Stefan Monnier authored
      * woman.el, winner.el, vc/vc-rcs.el, vc/vc-hooks.el, vc/vc-hg.el:
      * vc/vc-git.el, vc/vc-dir.el, vc/vc-bzr.el, vc/vc-annotate.el:
      * textmodes/tex-mode.el, textmodes/sgml-mode.el, tar-mode.el:
      * strokes.el, ses.el, server.el, progmodes/js.el, progmodes/gdb-mi.el:
      * progmodes/flymake.el, progmodes/ebrowse.el, progmodes/compile.el:
      * play/tetris.el, play/snake.el, play/pong.el, play/landmark.el:
      * play/hanoi.el, play/decipher.el, play/5x5.el, nxml/nxml-mode.el:
      * net/secrets.el, net/quickurl.el, midnight.el, mail/footnote.el:
      * image-dired.el, ibuffer.el, ibuf-macs.el, ibuf-ext.el, hexl.el:
      * eshell/eshell.el, eshell/esh-io.el, eshell/esh-ext.el:
      * eshell/esh-cmd.el, eshell/em-ls.el, eshell/em-hist.el:
      * eshell/em-cmpl.el, eshell/em-banner.el:
      * url/url.el, url/url-queue.el, url/url-parse.el, url/url-http.el:
      * url/url-future.el, url/url-dav.el, url/url-cookie.el:
      * calendar/parse-time.el, test/eshell.el: Use cl-lib.
      * wid-browse.el, wdired.el, vc/vc.el, vc/vc-mtn.el, vc/vc-cvs.el:
      * vc/vc-arch.el, tree-widget.el, textmodes/texinfo.el:
      * textmodes/refill.el, textmodes/css-mode.el, term/tvi970.el:
      * term/ns-win.el, term.el, shell.el, ps-samp.el:
      * progmodes/perl-mode.el, progmodes/pascal.el, progmodes/gud.el:
      * progmodes/glasses.el, progmodes/etags.el, progmodes/cwarn.el:
      * play/gamegrid.el, play/bubbles.el, novice.el, notifications.el:
      * net/zeroconf.el, net/xesam.el, net/snmp-mode.el, net/mairix.el:
      * net/ldap.el, net/eudc.el, net/browse-url.el, man.el:
      * mail/mailheader.el, mail/feedmail.el:
      * url/url-util.el, url/url-privacy.el, url/url-nfs.el, url/url-misc.el:
      * url/url-methods.el, url/url-gw.el, url/url-file.el, url/url-expand.el:
      Dont use CL.
      * ibuf-ext.el (ibuffer-mark-old-buffers): Use float-time.
      * eshell/esh-opt.el (eshell-eval-using-options): Quote code with
      `lambda' rather than with `quote'.
      (eshell-do-opt): Adjust accordingly.
      (eshell-process-option): Simplify.
      * eshell/esh-var.el:
      * eshell/em-script.el: Require `esh-opt' for eshell-eval-using-options.
      * emacs-pcase.el (pcase--dontcare-upats, pcase--let*)
      (pcase--expand, pcase--u1): Rename pcase's internal `dontcare' pattern
      to `pcase--dontcare'.
      * emacs-cl.el (labels): Mark obsolete.
      (cl--letf, letf): Move to cl-lib.
      (cl--letf*, letf*): Remove.
      * emacs-cl-lib.el (cl-nth-value): Use defalias.
      * emacs-cl-macs.el (cl-dolist, cl-dotimes): Add indent rule.
      (cl-progv): Rewrite.
      (cl--letf, cl-letf): Move from cl.el.
      (cl-letf*): New macro.
      * emacs-cl-extra.el (cl--progv-before, cl--progv-after): Remove.
      a464a6c7
  28. 24 Jun, 2012 1 commit
  29. 01 May, 2012 1 commit
  30. 24 Apr, 2012 2 commits
  31. 22 Apr, 2012 1 commit
    • Chong Yidong's avatar
      Tweaks to Customize interface. Set custom-reset-button-menu to t. · cf20dee0
      Chong Yidong authored
      * cus-edit.el (custom-commands, custom-reset-menu)
      (Custom-reset-standard): Tweak labels.
      (custom-reset-button-menu): Change default to t.
      (custom-buffer-create-internal): For the custom-reset-button-menu
      case, put the revert button first.
      (custom-group-subtitle): New face.
      (custom-group-value-create): Align docstring to a specific column.
      
      * wid-edit.el (widget-documentation-link-add): Don't handle
      indentation in this function.
      (widget-documentation-string-indent-to): New function.
      (widget-documentation-string-value-create): Use it.
      
      * autorevert.el (auto-revert):
      * epg-config.el (epg):
      * ibuffer.el (ibuffer):
      * mpc.el (mpc):
      * ses.el (ses):
      * eshell/eshell.el (eshell):
      * net/ange-ftp.el (ange-ftp):
      * progmodes/ebnf2ps.el (postscript):
      * progmodes/flymake.el (flymake):
      * progmodes/prolog.el (prolog):
      * progmodes/verilog-mode.el (verilog-mode):
      * progmodes/which-func.el (which-func):
      * textmodes/picture.el (picture):
      * textmodes/tildify.el (tildify):
      * vc/ediff.el (ediff): Tweak defgroups to improve presentation in
      customization buffers.
      cf20dee0
  32. 12 Mar, 2012 1 commit
  33. 11 Mar, 2012 1 commit
  34. 12 Jan, 2012 1 commit
  35. 11 Jan, 2012 1 commit