aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/epa-file.el (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year to 2020Paul Eggert2020-01-011-1/+1
| | | | Run "TZ=UTC0 admin/update-copyright $(git ls-files)".
* Preserve more markers when reverting .gpg filesLars Ingebrigtsen2019-09-041-18/+46
| | | | | | | | | | | * lisp/epa-file.el (epa-file--replace-text): Gingerly replace the text in the buffer to preserve as many markers as possible (bug#34720). This emulates the behaviour of Finsert_file_contents more accurately. (epa-file-decode-and-insert): Remove compat code. (epa-file-insert-file-contents): Use the new function. * lisp/emacs-lisp/cl-lib.el (cl-incf): Add autoload cookie.
* (epa-file-decode-and-insert): Byte compilation warning fixLars Ingebrigtsen2019-05-181-3/+1
| | | | | * lisp/epa-file.el (epa-file-decode-and-insert): Remove superfluous call to `string-to-multibyte string'.
* Merge from origin/emacs-26Paul Eggert2018-12-311-1/+1
|\ | | | | | | | | | | 2fcf2df Fix copyright years by hand 26bed8b Update copyright year to 2019 2814292 Fix value of default frame height. (Bug#33921)
| * Update copyright year to 2019Paul Eggert2019-01-011-1/+1
| | | | | | | | Run 'TZ=UTC0 admin/update-copyright $(git ls-files)'.
* | Move epa-pinentry-mode to epg-config (Bug#26298)Noam Postavsky2018-05-231-2/+0
|/ | | | | | | | | | | | | | | * lisp/epa.el (epa-pinentry-mode): Make into obsolete alias for... * lisp/epg-config.el (epg-pinentry-mode): ...this new user option. * lisp/epg.el (epg-context): Use it as the default value for pinentry-mode. * etc/NEWS: Announce name change. * lisp/epa-file.el (epa-file-insert-file-contents) (epa-file-write-region): * lisp/epa.el (epa-decrypt-file, epa-sign-file) (epa-encrypt-file, epa-decrypt-region) (epa-sign-region, epa-encrypt-region): Don't change epg-context-pinentry-mode from the default.
* Update copyright year to 2018Paul Eggert2018-01-011-1/+1
| | | | Run admin/update-copyright.
* Prefer HTTPS to FTP and HTTP in documentationPaul Eggert2017-09-131-1/+1
| | | | | | | | | | | | | Most of this change is to boilerplate commentary such as license URLs. This change was prompted by ftp://ftp.gnu.org's going-away party, planned for November. Change these FTP URLs to https://ftp.gnu.org instead. Make similar changes for URLs to other organizations moving away from FTP. Also, change HTTP to HTTPS for URLs to gnu.org and fsf.org when this works, as this will further help defend against man-in-the-middle attacks (for this part I omitted the MS-DOS and MS-Windows sources and the test tarballs to keep the workload down). HTTPS is not fully working to lists.gnu.org so I left those URLs alone for now.
* Merge from origin/emacs-25Paul Eggert2017-01-011-1/+1
|\ | | | | | | | | 2e2a806 Fix copyright years by hand 5badc81 Update copyright year to 2017
| * Update copyright year to 2017Paul Eggert2016-12-311-1/+1
| | | | | | | | Run admin/update-copyright.
* | Fix GPG bug introduced by Oct file-missing changePaul Eggert2016-12-051-14/+15
| | | | | | | | | | | | | | | | 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.
* | New error file-missingPaul Eggert2016-10-211-4/+4
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Update copyright year to 2016Paul Eggert2016-01-011-1/+1
| | | | Run admin/update-copyright.
* epa-inhibit inhibits auto-recognition of .gpg filesRichard Stallman2015-08-121-2/+5
| | | | | * lisp/epa-file.el (epa-inhibit): New variable. (epa-file-handler): Check epa-inhibit.
* Update copyright year to 2015Paul Eggert2015-01-011-1/+1
| | | | Run admin/update-copyright.
* epg: Simplify epa-pinentry-mode handlingDaiki Ueno2014-11-181-4/+2
| | | | | | | | | * 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.
* epg: Don't show "*Error*" buffer when visiting a new fileDaiki Ueno2014-11-181-6/+6
| | | | | | * epa-file.el (epa-file-insert-file-contents): Don't show "*Error*" buffer if input file does not exist. Reported by Herbert J. Skuhra.
* epg: Utilize --pinentry-mode added in GnuPG 2.1Daiki Ueno2014-11-071-0/+4
| | | | | | | | * 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.
* epg: Improve error handlingDaiki Ueno2014-11-061-14/+14
| | | | | | | | | | | | | | | * 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.
* epg: Collect output lines sent to stderrDaiki Ueno2014-11-051-0/+10
| | | | | | | | | | | | | * 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.
* * epa-file.el: Respect buffer-file-format when writingDaiki Ueno2014-01-141-3/+14
| | | | | | * epa-file.el (epa-file-write-region): Encode the region according to `buffer-file-format'. Problem reported at: <http://sourceforge.jp/ticket/browse.php?group_id=2267&tid=32917>.
* Update copyright year to 2014 by running admin/update-copyright.Paul Eggert2014-01-011-1/+1
|
* * lisp/epa-file.el (epa-file-insert-file-contents): Ensure we insert textStefan Monnier2013-12-021-13/+13
| | | | | | in current-buffer. Fixes: debbugs:16029
* Document insecure elisp password caching is not usable with GnuPG 2.0.Daiki Ueno2013-10-281-3/+5
|
* Update copyright notices for 2013.Paul Eggert2013-01-011-1/+1
|
* Add 2012 to FSF copyright years for Emacs filesGlenn Morris2012-01-051-1/+1
|
* Spelling fixes.Paul Eggert2011-12-111-2/+2
|
* * lisp/epa-file.el (epa-file-select-keys): Revert to nil default.Stefan Monnier2011-08-121-1/+1
| | | | Fixes: debbugs:9280
* Make epa-file progress message user-friendly.Daiki Ueno2011-08-121-4/+8
| | | | | | | | * epa.el (epa-progress-callback-function): Fix the logic of displaying progress. * epa-file.el (epa-file-insert-file-contents): Make progress display more user-friendly. (epa-file-write-region): Ditto.
* Use lexical binding in ep[ga]*.el.Daiki Ueno2011-04-041-1/+1
| | | | | | | | | * epa-dired.el: * epa-mail.el: * epa-hook.el: * epa-file.el: * epa.el: * epg.el: Use lexical binding.
* Convert consecutive FSF copyright years to ranges.Glenn Morris2011-01-241-1/+1
|
* Nuke arch-tags.Glenn Morris2011-01-151-1/+0
|
* Merge from emacs-23Stefan Monnier2011-01-141-1/+1
|\
| * Add 2011 to FSF/AIST copyright years.Glenn Morris2011-01-021-1/+1
| |
* | Extend epa-file-select-keys to allow users to inhibit key selection.Daiki Ueno2010-12-161-6/+14
| | | | | | | | | | * epa-file.el (epa-file-select-keys): Accept 'silent to inhibit key selection prompt; make 'silent as default (Bug#7487).
* | Simplify 2010-10-09T13:27:24Z!larsi@gnus.org.Daiki Ueno2010-10-101-2/+3
| | | | | | | | | | | | | | * 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.
* | epa-file: suppress file-locking question on M-x revert-bufferDaiki Ueno2010-09-131-6/+11
| | | | | | | | | | * epa-file.el (epa-file-insert-file-contents): If visiting, bind buffer-file-name to avoid file-locking. (Bug#7026)
* | Add "Package:" file headers to denote built-in packages.Chong Yidong2010-08-291-0/+1
| |
* | Fix typo and comment.Daiki Ueno2010-07-251-4/+4
| |
* | Fix *.gpg file creation (bug#6723).Daiki Ueno2010-07-251-9/+10
| | | | | | | | | | * epa-file.el (epa-file-insert-file-contents): Check if LOCAL-FILE exists before passing an error to find-file-not-found-functions (bug#6723).
* | Prevent find-file from opening empty buffer when decryptin failed (bug#6568).Daiki Ueno2010-07-081-0/+17
|/ | | | | | | * epa-file.el (epa-file-error, epa-file--find-file-not-found-function) (epa-file-insert-file-contents): Hack to prevent find-file from opening empty buffer when decryptin failed (bug#6568).
* Add 2010 to copyright years.Glenn Morris2010-01-131-1/+1
|
* Fix typos.Juanma Barranquero2009-09-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Fix the last commit.Daiki Ueno2009-09-201-2/+3
|
* (epa-file-cache-passphrase-for-symmetric-encryption):Daiki Ueno2009-09-201-1/+5
| | | | Document that this option is not recommended to use.
* epa-file: fix garble with decode-coding-inserted-regionDaiki Ueno2009-04-181-5/+4
| | | | | * epa-file.el (epa-file-decode-and-insert): Use string-to-multibyte instead of set-buffer-multibyte.
* Add 2009 to copyright years.Glenn Morris2009-01-051-1/+1
|
* * epa-file.el (epa-file-insert-file-contents): SetDaiki Ueno2008-12-171-3/+4
| | | | buffer-file-name before decrypting a file.
* * epa-hook.el (epa-file-find-file-hook): Don't mark the currentDaiki Ueno2008-12-101-3/+4
| | | | | | | buffer unmodified. (Bug#1509) * epa-file.el (epa-file-insert-file-contents): Set buffer's modification time if visiting a file and the content is successfully decrypted.
* (epa-file-insert-file-contents): Fix typo.Daiki Ueno2008-09-301-1/+1
|