1. 07 Apr, 2017 2 commits
    • Noam Postavsky's avatar
      Fix handling of non-integer START param to write-region · 9e27e0d1
      Noam Postavsky authored
      The previous patch for Bug#354 incorrectly assumed that START would
      always be an integer.
      
      * lisp/epa-file.el (epa-file-write-region):
      * lisp/jka-compr.el (jka-compr-write-region):
      * lisp/net/ange-ftp.el (ange-ftp-write-region):
      * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-write-region):
      * lisp/net/tramp-sh.el (tramp-sh-handle-write-region):
      * src/fileio.c (write_region): Handle nil and string values of START.
      9e27e0d1
    • Jeff Clough's avatar
      Output number of characters added to file (Bug#354) · cd0a7951
      Jeff Clough authored
      * fileio.c (write_region):
      * epa-file.el (epa-file-write-region):
      * jka-compr.el (jka-compr-write-region):
      * ange-ftp.el (ange-ftp-write-region):
      * tramp-gvfs.el (tramp-gvfs-handle-write-region):
      * tramp-sh.el (tramp-sh-handle-write-region):
      * mm-util.el (mm-append-to-file): Functions now output
      characters written in addition to file name.
      * files.texi: Added documentation to write-region and
      append-to-file describing their output.
      cd0a7951
  2. 01 Jan, 2017 1 commit
  3. 06 Dec, 2016 1 commit
    • Paul Eggert's avatar
      Fix GPG bug introduced by Oct file-missing change · 38d0276a
      Paul Eggert authored
      Problem with visiting nonexistent .gpg file
      reported by Herbert J Skuhra.
      * lisp/epa-file.el (epa-file--find-file-not-found-function):
      (epa-file-insert-file-contents, epa-file-write-region):
      Signal file-missing or file-error instead of epa-error.
      38d0276a
  4. 21 Oct, 2016 1 commit
    • Paul Eggert's avatar
      New error file-missing · 89799829
      Paul Eggert authored
      This fixes a recently-introduced bug in delete-directory,
      where the code assumes the C locale when determining
      whether a file-error corresponds to a missing file (Bug#24714).
      * doc/lispref/errors.texi (Standard Errors):
      * doc/lispref/files.texi (Changing Files):
      * etc/NEWS:
      Document this.
      * doc/lispref/loading.texi (How Programs Do Loading):
      Say "a file-error" rather than "the error file-error" since
      it might be a file-missing now.
      * lisp/emacs-lisp/bytecomp.el (byte-compile-file):
      * lisp/epa-file.el (epa-file--find-file-not-found-function):
      (epa-file-insert-file-contents, epa-file-write-region):
      * lisp/ffap.el (find-file-at-point, dired-at-point):
      * lisp/jka-compr.el (jka-compr-insert-file-contents)
      (jka-compr-insert-file-contents):
      * lisp/net/ange-ftp.el (ange-ftp-barf-if-not-directory)
      (ange-ftp-insert-file-contents, ange-ftp-copy-file-internal):
      * lisp/progmodes/etags.el (visit-tags-table):
      * lisp/url/url-handlers.el (url-copy-file):
      * src/fileio.c (report_file_errno):
      Signal file-missing if appropriate.
      * lisp/epa-file.el (epa-file-insert-file-contents):
      * lisp/jka-compr.el (jka-compr-insert-file-contents):
      Don't assume file-error is a leaf in the error hierarchy.
      * lisp/files.el (files--force):
      * lisp/gnus/nnmaildir.el (nnmaildir--enoent-p):
      * lisp/jka-compr.el (jka-compr-insert-file-contents):
      Use file-missing to detect whether the file is missing.
      * lisp/url/url-handlers.el (url-copy-file):
      Signal file-already-exists if appropriate.
      * src/fileio.c (syms_of_fileio): Define file-missing.
      
      2016-10-18  Paul Eggert  <eggert@cs.ucla.edu>
      89799829
  5. 01 Jan, 2016 1 commit
  6. 12 Aug, 2015 1 commit
  7. 01 Jan, 2015 2 commits
  8. 18 Nov, 2014 2 commits
    • Daiki Ueno's avatar
      epg: Simplify epa-pinentry-mode handling · 5224be2f
      Daiki Ueno authored
      * epa-file.el (epa-file-insert-file-contents)
      (epa-file-write-region): Remove redundant check of
      epa-pinentry-mode.
      * epa.el (epa-sign-file, epa-encrypt-file, epa-decrypt-region)
      (epa-sign-region, epa-encrypt-region): Remove redundant check of
      epa-pinentry-mode.
      5224be2f
    • Daiki Ueno's avatar
      epg: Don't show "*Error*" buffer when visiting a new file · b12bb4dc
      Daiki Ueno authored
      * epa-file.el (epa-file-insert-file-contents): Don't show
      "*Error*" buffer if input file does not exist.
      Reported by Herbert J. Skuhra.
      b12bb4dc
  9. 07 Nov, 2014 1 commit
    • Daiki Ueno's avatar
      epg: Utilize --pinentry-mode added in GnuPG 2.1 · b912aed9
      Daiki Ueno authored
      * epa.el (epa-pinentry-mode): New user option.
      (epa-sign-file, epa-encrypt-file, epa-decrypt-region)
      (epa-sign-region, epa-encrypt-region): Respect epa-pinentry-mode.
      * epa-file.el (epa-file-insert-file-contents)
      (epa-file-write-region): Respect epa-pinentry-mode.
      b912aed9
  10. 06 Nov, 2014 1 commit
    • Daiki Ueno's avatar
      epg: Improve error handling · 9e48a95c
      Daiki Ueno authored
      * epa.el (epa-error-buffer): New variable.
      (epa-display-error): New function.
      (epa-decrypt-file, epa-verify-file, epa-verify-region)
      (epa-delete-keys, epa-import-keys): Display output sent to stderr.
      (epa-sign-file, epa-sign-region, epa-encrypt-region)
      (epa-export-keys, epa-insert-keys): Display output sent to stderr.
      Use setf instead of epg-context-set-*.
      * epa-file.el (epa-file-insert-file-contents): Use
      epa-display-error instead of epa-display-info.  Mimic the behavior
      of jka-compr when decryption program is not found.
      (epa-file-write-region): Use epa-display-error instead of
      epa-display-info.
      9e48a95c
  11. 05 Nov, 2014 1 commit
    • Daiki Ueno's avatar
      epg: Collect output lines sent to stderr · 5e284614
      Daiki Ueno authored
      * epg.el (epg-context): Add new slot ERROR-OUTPUT.
      (epg-error-output): New buffer-local variable.
      (epg--start): Initialize epg-error-output.
      (epg--process-filter): Record output lines sent to stderr, in
      epg-error-output.
      (epg-wait-for-completion): Copy epg-error-output to ERROR-OUTPUT
      slot of context.
      * epa-file.el (epa-file-insert-file-contents): On error, display
      output sent to stderr.
      (epa-file-write-region): Likewise.
      5e284614
  12. 14 Jan, 2014 1 commit
  13. 01 Jan, 2014 1 commit
  14. 02 Dec, 2013 1 commit
  15. 28 Oct, 2013 1 commit
  16. 01 Jan, 2013 1 commit
  17. 11 Jan, 2012 1 commit
  18. 05 Jan, 2012 1 commit
  19. 12 Dec, 2011 1 commit
  20. 12 Aug, 2011 2 commits
  21. 04 Apr, 2011 1 commit
  22. 12 Feb, 2011 1 commit
    • Chong Yidong's avatar
      Bind delete-by-moving-to-trash to nil in EPA and EPG. · 4d46072b
      Chong Yidong authored
      This should not be merged into the trunk.
      
      * epa-file.el (epa-file-insert-file-contents): Likewise.
      
      * epg.el (epg-delete-output-file, epg-decrypt-string)
      (epg-verify-string, epg-sign-string, epg-encrypt-string): Bind
      delete-by-moving-to-trash to nil.
      4d46072b
  23. 25 Jan, 2011 1 commit
  24. 15 Jan, 2011 1 commit
  25. 02 Jan, 2011 1 commit
  26. 16 Dec, 2010 1 commit
  27. 10 Oct, 2010 1 commit
    • Daiki Ueno's avatar
      Simplify 2010-10-09T13:27:24Z!larsi@gnus.org. · 446b12da
      Daiki Ueno authored
      * epa.el (epa-passphrase-callback-function): Display filename
      passed as the 3rd arg.
      * epa-file.el (epa-file-passphrase-callback-function): Pass
      filename to epa-passphrase-callback-function.
      446b12da
  28. 13 Sep, 2010 1 commit
  29. 29 Aug, 2010 1 commit
  30. 25 Jul, 2010 2 commits
  31. 08 Jul, 2010 1 commit
  32. 13 Jan, 2010 1 commit
  33. 24 Sep, 2009 1 commit
    • Juanma Barranquero's avatar
      Fix typos. · 5a0c3f56
      Juanma Barranquero authored
      * allout.el
      * dired-aux.el
      * dired-x.el
      * epa-file.el
      * ps-print.el
      * shell.el
      * vc-hooks.el
      * vc-rcs.el
      * vc-sccs.el
      * vc.el
      * view.el
      * wdired.el
      * emacs-lisp/authors.el
      * net/dig.el
      * net/socks.el
      * net/zeroconf.el
      * obsolete/vc-mcvs.el
      * progmodes/gdb-mi.el
      * progmodes/grep.el
      * progmodes/idlw-help.el
      * progmodes/idlw-shell.el
      * progmodes/idlwave.el
      * progmodes/inf-lisp.el
      * textmodes/bibtex.el
      * textmodes/ispell.el
      * textmodes/reftex-toc.el
      5a0c3f56
  34. 20 Sep, 2009 2 commits