1. 01 Aug, 2013 1 commit
    • Stefan Monnier's avatar
      * lisp/files.el: Use lexical-binding. · 76dc5996
      Stefan Monnier authored
      (dir-locals-read-from-file): Remove unused `err' variable.
      (hack-dir-local-variables--warned-coding): New var.
      (hack-dir-local-variables): Use it to avoid repeated warnings.
      (make-backup-file-name--default-function): New function.
      (make-backup-file-name-function): Use it as default.
      (buffer-stale--default-function): New function.
      (buffer-stale-function): Use it as default.
      (revert-buffer-insert-file-contents--default-function): New function.
      (revert-buffer-insert-file-contents-function): Use it as default.
      (insert-directory): Avoid add-to-list.
      * lisp/autorevert.el (auto-revert-handler): Simplify.
      Use buffer-stale--default-function.
      76dc5996
  2. 24 Jul, 2013 1 commit
    • Michael Albinus's avatar
      * filenotify.el (file-notify-supported-p): · d5d3c58a
      Michael Albinus authored
      * net/tramp-sh.el (tramp-sh-handle-file-notify-supported-p):
      Remove functions.
      
      * autorevert.el (auto-revert-use-notify):
      (auto-revert-notify-add-watch):
      * net/tramp.el (tramp-file-name-for-operation):
      * net/tramp-adb.el (tramp-adb-file-name-handler-alist):
      * net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
      * net/tramp-sh.el (tramp-sh-file-name-handler-alist):
      * net/tramp-smb.el (tramp-smb-file-name-handler-alist):
      Remove `file-notify-supported-p' entry.
      d5d3c58a
  3. 18 Jul, 2013 1 commit
    • Michael Albinus's avatar
      * filenotify.el (file-notify--library): Renamed from · e06ec67f
      Michael Albinus authored
      `file-notify-support'.  Do not autoload.  Adapt all uses.
      (file-notify-supported-p): New defun.
      
      * autorevert.el (auto-revert-use-notify): Use
      `file-notify-supported-p' instead of `file-notify-support'.  Adapt
      docstring.
      (auto-revert-notify-add-watch): Use `file-notify-supported-p'.
      
      * net/tramp.el (tramp-file-name-for-operation):
      Add `file-notify-supported-p'.
      
      * net/tramp-sh.el (tramp-sh-handle-file-notify-supported-p):
      New defun.
      (tramp-sh-file-name-handler-alist): Add it as handler for
      `file-notify-supported-p '.
      
      * net/tramp-adb.el (tramp-adb-file-name-handler-alist):
      * net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist):
      * net/tramp-smb.el (tramp-smb-file-name-handler-alist):
      Add `ignore' as handler for `file-notify-*' functions.
      e06ec67f
  4. 04 Jul, 2013 1 commit
    • Michael Albinus's avatar
      * filenotify.el: New package. · 864c58ca
      Michael Albinus authored
      * autorevert.el (top): Require filenotify.el.
      (auto-revert-notify-enabled): Remove.  Use `file-notify-support'
      instead.
      (auto-revert-notify-rm-watch, auto-revert-notify-add-watch)
      (auto-revert-notify-handler): Use `file-notify-*' functions.
      
      * subr.el (file-notify-handle-event): Move function to filenotify.el.
      
      * net/tramp.el (tramp-file-name-for-operation): Handle
      `file-notify-add-watch' and `file-notify-rm-watch'.
      
      * net/tramp-sh.el (tramp-sh-file-name-handler-alist): Add handler
      for `file-notify-add-watch' and `file-notify-rm-watch'.
      (tramp-process-sentinel): Improve trace.
      (tramp-sh-handle-file-notify-add-watch)
      (tramp-sh-file-notify-process-filter)
      (tramp-sh-handle-file-notify-rm-watch)
      (tramp-get-remote-inotifywait): New defuns.
      864c58ca
  5. 05 Jun, 2013 1 commit
  6. 03 Jun, 2013 1 commit
    • Michael Albinus's avatar
      * configure.ac (file-notification): New option, replaces inotify option. · c9628c79
      Michael Albinus authored
      (HAVE_W32): Remove w32notify.o.
      (with_file_notification): Add checks for glib and w32. Adapt check
      for inotify.
      (Summary): Add entry for file notification.
      
      * autogen/config.in: Add entries for HAVE_GFILENOTIFY,
      HAVE_W32NOTIFY and USE_FILE_NOTIFY.
      
      * lisp/autorevert.el (auto-revert-notify-enabled)
      (auto-revert-notify-rm-watch, auto-revert-notify-add-watch)
      (auto-revert-notify-event-p, auto-revert-notify-event-file-name)
      (auto-revert-notify-handler): Handle also gfilenotify.
      
      * lisp/subr.el: (file-notify-handle-event): New defun. Replacing ...
      (inotify-event-p, inotify-handle-event, w32notify-handle-event):
      Removed.
      
      * src/Makefile.in (NOTIFY_OBJ): New variable.
      (base_obj): Replace inotify.o by $(NOTIFY_OBJ).
      
      * src/emacs.c (main): Use HAVE_W32NOTIFY to wrap respective code.
      Call syms_of_gfilenotify.
      
      * src/gfilenotify.c: New file.
      
      * src/keyboard.c (Qfile_notify): New variable.  Replaces Qfile_inotify
      and Qfile_w32notify.
      (top): Wrap respective code by HAVE_GFILENOTIFY, HAVE_INOTIFY,
      HAVE_W32NOTIFY and USE_FILE_NOTIFY.
      
      * src/lisp.h: Declare syms_of_gfilenotify.
      
      * src/termhooks.h (e): Wrap enum by USE_FILE_NOTIFY.
      c9628c79
  7. 22 May, 2013 1 commit
  8. 05 Apr, 2013 1 commit
  9. 16 Feb, 2013 1 commit
  10. 30 Jan, 2013 1 commit
  11. 29 Jan, 2013 1 commit
  12. 27 Jan, 2013 1 commit
  13. 25 Jan, 2013 1 commit
    • Michael Albinus's avatar
      * autorevert.el (auto-revert-remote-files) · ef3544f6
      Michael Albinus authored
      (auto-revert-notify-exclude-dir-regexp): New defcustoms.
      (auto-revert-notify-enabled, auto-revert-use-notify)
      (auto-revert-notify-watch-descriptor-hash-list)
      (auto-revert-notify-modified-p, auto-revert-notify-event-p)
      (auto-revert-notify-event-descriptor)
      (auto-revert-notify-event-action)
      (auto-revert-notify-event-file-name): Doc fix.
      (global-auto-revert-mode): Reorder checks.
      (auto-revert-notify-rm-watch): Respect changed values of
      `auto-revert-notify-watch-descriptor-hash-list'.
      (auto-revert-notify-add-watch): Check for
      `auto-revert-notify-exclude-dir-regexp'.  Adapt filters for
      `inotify-add-watch'.  Watch `default-directory' instead of
      `buffer-file-name'.  `auto-revert-notify-watch-descriptor-hash-list'
      has a changed meaning now.  (Bug#13540)
      (auto-revert-notify-handler): Change implementation wrt events
      returning from a directory.
      (auto-revert-handler): Reorder implementation for checks of remote
      files.
      (auto-revert-buffers): Fix parentheses error.
      ef3544f6
  14. 17 Jan, 2013 2 commits
  15. 12 Jan, 2013 4 commits
  16. 11 Jan, 2013 3 commits
    • Michael Albinus's avatar
      Fix a scoping error. · c88be996
      Michael Albinus authored
      c88be996
    • Michael Albinus's avatar
      * autorevert.el (top): Require 'cl in order to pacify byte compiler. · 65adfa20
      Michael Albinus authored
      (auto-revert-notify-rm-watch): Ignore errors.
      (auto-revert-notify-add-watch): Ignore errors.  Use '(modify) for
      inotify, and '(size last-write-time) for w32notify.  Set
      buffer-local `auto-revert-use-notify' to nil when adding a file
      watch fails - this is a fallback to the file modification check.
      (auto-revert-notify-event-p, auto-revert-notify-event-descriptor)
      (auto-revert-notify-event-action)
      (auto-revert-notify-event-file-name): New defuns.
      (auto-revert-notify-handler): Use them.  Implement first
      plausibility checks.
      (auto-revert-handler): Handle also `auto-revert-tail-mode'.
      65adfa20
    • Eli Zaretskii's avatar
      Fix last commit in autorevert.el. · 10e714d5
      Eli Zaretskii authored
       lisp/autorevert.el (auto-revert-notify-rm-watch)
       (auto-revert-notify-add-watch): Fix typos in w32notify function
       names.
      10e714d5
  17. 10 Jan, 2013 2 commits
    • Michael Albinus's avatar
      * autorevert.el (auto-revert-notify-enabled): Move up. · a778dd57
      Michael Albinus authored
      (auto-revert-use-notify): New defcustom.
      (auto-revert-mode, global-auto-revert-mode)
      (auto-revert-notify-add-watch, auto-revert-handler)
      (auto-revert-buffers): Use `auto-revert-use-notify' instead of
      `auto-revert-notify-enabled'.
      a778dd57
    • Michael Albinus's avatar
      * autorevert.el: Add file watch support. · ed911257
      Michael Albinus authored
      (auto-revert-notify-enabled): New defconst.
      (auto-revert-notify-watch-descriptor-hash-list)
      (auto-revert-notify-watch-descriptor)
      (auto-revert-notify-modified-p): New defvars.
      (auto-revert-notify-rm-watch, auto-revert-notify-add-watch)
      (auto-revert-notify-handler): New defuns.
      (auto-revert-mode, global-auto-revert-mode): Remove file watches
      when mode is disabled.
      (auto-revert-handler): Check for `auto-revert-notify-modified-p'.
      (auto-revert-buffers): Add file watches for active buffers.
      ed911257
  18. 01 Jan, 2013 1 commit
  19. 10 Jul, 2012 1 commit
    • Stefan Monnier's avatar
      Reduce use of (require 'cl). · f58e0fd5
      Stefan Monnier authored
      * admin/bzrmerge.el: Use cl-lib.
      * leim/quail/hangul.el: Don't require CL.
      * leim/quail/ipa.el: Use cl-lib.
      * vc/smerge-mode.el, vc/pcvs.el, vc/pcvs-util.el, vc/pcvs-info.el:
      * vc/diff-mode.el, vc/cvs-status.el, uniquify.el, scroll-bar.el:
      * register.el, progmodes/sh-script.el, net/gnutls.el, net/dbus.el:
      * msb.el, mpc.el, minibuffer.el, international/ucs-normalize.el:
      * international/quail.el, info-xref.el, imenu.el, image-mode.el:
      * font-lock.el, filesets.el, edmacro.el, doc-view.el, bookmark.el:
      * battery.el, avoid.el, abbrev.el: Use cl-lib.
      * vc/pcvs-parse.el, vc/pcvs-defs.el, vc/log-view.el, vc/log-edit.el:
      * vc/diff.el, simple.el, pcomplete.el, lpr.el, comint.el, loadhist.el:
      * jit-lock.el, international/iso-ascii.el, info.el, frame.el, bs.el:
      * emulation/crisp.el, electric.el, dired.el, cus-dep.el, composite.el:
      * calculator.el, autorevert.el, apropos.el: Don't require CL.
      * emacs-bytecomp.el (byte-recompile-directory, display-call-tree)
      (byte-compile-unfold-bcf, byte-compile-check-variable):
      * emacs-byte-opt.el (byte-compile-trueconstp)
      (byte-compile-nilconstp):
      * emacs-autoload.el (make-autoload): Use pcase.
      * face-remap.el (text-scale-adjust): Simplify pcase patterns.
      f58e0fd5
  20. 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
  21. 11 Mar, 2012 2 commits
  22. 11 Jan, 2012 1 commit
  23. 05 Jan, 2012 1 commit
  24. 20 Nov, 2011 1 commit
  25. 19 Oct, 2011 1 commit
    • Chong Yidong's avatar
      Fix minor mode docstrings for the new meaning of a nil ARG. · 06e21633
      Chong Yidong authored
      * abbrev.el (abbrev-mode):
      * allout.el (allout-mode):
      * autoinsert.el (auto-insert-mode):
      * autoarg.el (autoarg-mode, autoarg-kp-mode):
      * autorevert.el (auto-revert-mode, auto-revert-tail-mode)
      (global-auto-revert-mode):
      * battery.el (display-battery-mode):
      * composite.el (global-auto-composition-mode)
      (auto-composition-mode):
      * delsel.el (delete-selection-mode):
      * desktop.el (desktop-save-mode):
      * dired-x.el (dired-omit-mode):
      * dirtrack.el (dirtrack-mode):
      * doc-view.el (doc-view-minor-mode):
      * double.el (double-mode):
      * electric.el (electric-indent-mode, electric-pair-mode):
      * emacs-lock.el (emacs-lock-mode):
      * epa-hook.el (auto-encryption-mode):
      * follow.el (follow-mode):
      * font-core.el (font-lock-mode):
      * frame.el (auto-raise-mode, auto-lower-mode, blink-cursor-mode):
      * help.el (temp-buffer-resize-mode):
      * hilit-chg.el (highlight-changes-mode)
      (highlight-changes-visible-mode):
      * hi-lock.el (hi-lock-mode):
      * hl-line.el (hl-line-mode, global-hl-line-mode):
      * icomplete.el (icomplete-mode):
      * ido.el (ido-everywhere):
      * image-file.el (auto-image-file-mode):
      * image-mode.el (image-minor-mode):
      * iswitchb.el (iswitchb-mode):
      * jka-cmpr-hook.el (auto-compression-mode):
      * linum.el (linum-mode):
      * longlines.el (longlines-mode):
      * master.el (master-mode):
      * mb-depth.el (minibuffer-depth-indicate-mode):
      * menu-bar.el (menu-bar-mode):
      * minibuf-eldef.el (minibuffer-electric-default-mode):
      * mouse-sel.el (mouse-sel-mode):
      * msb.el (msb-mode):
      * mwheel.el (mouse-wheel-mode):
      * outline.el (outline-minor-mode):
      * paren.el (show-paren-mode):
      * recentf.el (recentf-mode):
      * reveal.el (reveal-mode, global-reveal-mode):
      * rfn-eshadow.el (file-name-shadow-mode):
      * ruler-mode.el (ruler-mode):
      * savehist.el (savehist-mode):
      * scroll-all.el (scroll-all-mode):
      * scroll-bar.el (scroll-bar-mode):
      * server.el (server-mode):
      * shell.el (shell-dirtrack-mode):
      * simple.el (auto-fill-mode, transient-mark-mode)
      (visual-line-mode, overwrite-mode, binary-overwrite-mode)
      (line-number-mode, column-number-mode, size-indication-mode)
      (auto-save-mode, normal-erase-is-backspace-mode, visible-mode):
      * strokes.el (strokes-mode):
      * time.el (display-time-mode):
      * t-mouse.el (gpm-mouse-mode):
      * tool-bar.el (tool-bar-mode):
      * tooltip.el (tooltip-mode):
      * type-break.el (type-break-mode-line-message-mode)
      (type-break-query-mode):
      * view.el (view-mode):
      * whitespace.el (whitespace-mode, whitespace-newline-mode)
      (global-whitespace-mode, global-whitespace-newline-mode):
      * xt-mouse.el (xterm-mouse-mode): Doc fix.
      
      * emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Fix
      autogenerated docstring.
      06e21633
  26. 13 Apr, 2011 1 commit
  27. 20 Feb, 2011 1 commit
    • Glenn Morris's avatar
      autorevert.el trivia. · 18cfb5a1
      Glenn Morris authored
      * lisp/autorevert.el (auto-revert-mode, auto-revert-tail-mode)
      (global-auto-revert-ignore-buffer): Remove leading "*" from docs.
      It makes zero sense to use it with these variables.
      18cfb5a1
  28. 25 Jan, 2011 1 commit
  29. 15 Jan, 2011 1 commit
  30. 02 Jan, 2011 1 commit
  31. 13 Jan, 2010 1 commit
  32. 02 Aug, 2009 1 commit