summaryrefslogtreecommitdiff
path: root/lisp/epa-file.el
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Simplify the last change.Daiki Ueno2008-06-021-2/+2
|
* (epa-file-write-region): Write the entire bufferDaiki Ueno2008-06-021-0/+3
| | | | content if START is nil.
* Provide/require epa-hook, not epa-file-hook.Eli Zaretskii2008-05-081-1/+1
|
* Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-061-6/+4
|
* * epa-file-hook.el: New file split from epa-file.el.Daiki Ueno2008-05-011-86/+2
| | | | | | | * epa-file.el: Require 'epa-file-hook. (epa-file-handler): Add autoload cookie. * loadup.el: Load epa-file-hook. * startup.el (command-line): Eval the body of auto-encryption-mode.
* Daiki Ueno <ueno at unixuser.org>Glenn Morris2008-04-281-9/+6
| | | | | (epa-file-handler): Restore 2008-03-16T04:04:15Z!mwolson@gnu.org version; previous change was buggy patch.
* (epa-file-handler): Comment out, does not compile.Dan Nicolaescu2008-04-271-8/+8
|
* * epa-file.el (auto-encryption-mode): Rename from epa-file-mode.Dan Nicolaescu2008-04-271-7/+15
| | | | | | | | | | | | | | | | | (epa-file-handler): Put 'safe-magic and 'operations properties. * epa.el (epa-global-minor-modes, epa-mode, epa-menu) (epa-menu-items): Remove. * epa-dired.el (epa-dired-do-decrypt, epa-dired-do-verify) (epa-dired-do-sign, epa-dired-do-encrypt): Add autoload cookie. (epa-dired-mode, epa-global-dired-mode): Remove. * dired.el (dired-mode-map): Bind encryption/decryption commands. * menu-bar.el (menu-bar-encryption-decryption-menu): New menu item. * files.el (insert-file-contents-literally): Inhibit epa-file-handler.
* EasyPG: Fix bug with C-x C-s after M-x epa-file-select-keys.Michael Olson2008-03-161-1/+4
|
* EasyPG: Implement some suggestions from emacs-devel.Michael Olson2008-02-101-0/+18
|
* * epa.el (epa-faces, epa):Dan Nicolaescu2008-02-091-0/+1
| | | | | * epa-file.el (epa-file): * epg-config.el (epg): Add :version.
* Add arch taglineMiles Bader2008-02-091-0/+1
|