summaryrefslogtreecommitdiff
path: root/lisp/jka-compr.el
Commit message (Collapse)AuthorAgeFilesLines
* Change delete-by-moving-to-trash so Lisp calls explicitly request trashing.Chong Yidong2010-05-271-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/fileio.c (Fdelete_file): Change meaning of optional arg to mean whether to trash. (internal_delete_file, Frename_file): Callers changed. (delete_by_moving_to_trash): Doc fix. (Fdelete_directory_internal): Don't move to trash. * src/callproc.c (delete_temp_file): * src/buffer.c (Fkill_buffer): Callers changed. * src/lisp.h: Update prototype. * lisp/diff.el (diff-sentinel): * lisp/epg.el (epg--make-temp-file, epg-decrypt-string) (epg-verify-string, epg-sign-string, epg-encrypt-string): * lisp/jka-compr.el (jka-compr-partial-uncompress) (jka-compr-call-process, jka-compr-write-region): * lisp/server.el (server-sentinel): Remove optional arg from delete-file, reverting 2010-05-03 change. * lisp/dired.el (dired-delete-file): New arg TRASH. (dired-internal-do-deletions): New arg TRASH. Use progress reporter. (dired-do-flagged-delete, dired-do-delete): Use trash. * lisp/files.el (delete-directory): New arg TRASH. * lisp/speedbar.el (speedbar-item-delete): Allow trashing. * lisp/net/ange-ftp.el (ange-ftp-del-tmp-name, ange-ftp-delete-file) (ange-ftp-rename-remote-to-remote) (ange-ftp-rename-local-to-remote) (ange-ftp-rename-remote-to-local, ange-ftp-load) (ange-ftp-compress, ange-ftp-uncompress): Remove optional arg from `delete-file'. (ange-ftp-delete-directory): Add optional arg to `delete-file', to allow trashing. * lisp/net/tramp-compat.el (tramp-compat-delete-file): Rewrite to handle new TRASH arg of `delete-file'. * lisp/net/tramp-fish.el (tramp-fish-handle-delete-directory) (tramp-fish-handle-delete-file) (tramp-fish-handle-make-symbolic-link) (tramp-fish-handle-process-file): Use null TRASH arg in `tramp-compat-delete-file' call. * lisp/net/tramp-ftp.el (tramp-ftp-file-name-handler): Use null TRASH arg in `tramp-compat-delete-file' call. * lisp/net/tramp-gvfs.el (tramp-gvfs-handle-delete-file): Rename arg. (tramp-gvfs-handle-write-region): Use null TRASH arg in `tramp-compat-delete-file' call. * lisp/net/tramp-imap.el (tramp-imap-handle-delete-file): Rename arg. (tramp-imap-do-copy-or-rename-file): Use null TRASH arg in `tramp-compat-delete-file' call. * lisp/net/tramp-smb.el (tramp-smb-handle-copy-file) (tramp-smb-handle-file-local-copy, tramp-smb-handle-rename-file) (tramp-smb-handle-write-region): Use null TRASH arg in tramp-compat-delete-file call. (tramp-smb-handle-delete-directory): Use tramp-compat-delete-file. (tramp-smb-handle-delete-file): Rename arg. * lisp/net/tramp.el (tramp-handle-delete-file): Change FORCE arg to TRASH. (tramp-handle-make-symbolic-link, tramp-handle-load) (tramp-do-copy-or-rename-file-via-buffer) (tramp-do-copy-or-rename-file-directly) (tramp-do-copy-or-rename-file-out-of-band) (tramp-handle-process-file, tramp-handle-call-process-region) (tramp-handle-shell-command, tramp-handle-file-local-copy) (tramp-handle-insert-file-contents, tramp-handle-write-region) (tramp-delete-temp-file-function): Use null TRASH arg in tramp-compat-delete-file call.
* Add optional arg to delete-file to force deletion (Bug#6070).Chong Yidong2010-05-031-8/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | * eval.c (internal_condition_case_n): Rename from internal_condition_case_2. (internal_condition_case_2): New function. * xdisp.c (safe_call): Use internal_condition_case_n. * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE. (internal_delete_file, Frename_file): Callers changed. * buffer.c (Fkill_buffer): * callproc.c (delete_temp_file): Callers changed (Bug#6070). * lisp.h: Update prototypes. * diff.el (diff-sentinel): * epg.el (epg--make-temp-file, epg-decrypt-string) (epg-verify-string, epg-sign-string, epg-encrypt-string): * jka-compr.el (jka-compr-partial-uncompress) (jka-compr-call-process, jka-compr-write-region, jka-compr-load): * server.el (server-sentinel): Use delete-file's new FORCE arg (Bug#6070).
* Avoid using trash for certain temp files (Bug#6070).Chong Yidong2010-04-301-7/+9
| | | | | | | | | | | | | * server.el (server-sentinel, server-start, server-force-delete): * jka-compr.el (jka-compr-partial-uncompress) (jka-compr-call-process, jka-compr-write-region, jka-compr-load): * epg.el (epg--make-temp-file, epg-decrypt-string) (epg-encrypt-string, epg-verify-string, epg-sign-string): * diff.el (diff-sentinel): Bind delete-by-moving-to-trash to nil before deleting (Bug#6070).
* Fix bug #5447, whereby loading C:/foo.el.gz on MS-Windows would fail.Eli Zaretskii2010-01-221-1/+8
| | | | | jka-compr.el (jka-compr-load): If load-file is not in load-history, try its file-truename version.
* Add 2010 to copyright years.Glenn Morris2010-01-131-1/+1
|
* Add 2009 to copyright years.Glenn Morris2009-01-051-1/+1
|
* * align.el:Lute Kamstra2008-12-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * allout.el: * apropos.el: * arc-mode.el: * autoinsert.el: * avoid.el: * battery.el: * bookmark.el: * buff-menu.el: * calculator.el: * chistory.el: * cmuscheme.el: * comint.el: * compare-w.el: * dabbrev.el: * delim-col.el: * desktop.el: * diff-mode.el: * diff.el: * dired-aux.el: * dired-x.el: * dired.el: * dos-vars.el: * ediff-diff.el: * ediff-help.el: * ediff-init.el: * ediff-merg.el: * ediff-mult.el: * ediff-ptch.el: * ediff-vers.el: * ediff-wind.el: * ediff.el: * emerge.el: * facemenu.el: * faces.el: * ffap.el: * filecache.el: * find-dired.el: * font-core.el: * font-lock.el: * forms.el: * fringe.el: * help-at-pt.el: * hippie-exp.el: * ido.el: * image-file.el: * imenu.el: * indent.el: * info.el: * isearchb.el: * iswitchb.el: * jit-lock.el: * jka-compr.el: * log-edit.el: * lpr.el: * ls-lisp.el: * man.el: * menu-bar.el: * midnight.el: * mouse-sel.el: * mouse.el: * msb.el: * outline.el: * paren.el: * pcmpl-cvs.el: * pcmpl-gnu.el: * pcomplete.el: * pcvs-info.el: * pcvs-parse.el: * printing.el: * ps-mule.el: * ps-print.el: * replace.el: * ruler-mode.el: * saveplace.el: * sb-image.el: * scroll-bar.el: * sha1.el: * shadowfile.el: * shell.el: * sort.el: * speedbar.el: * strokes.el: * tempo.el: * term.el: * terminal.el: * time-stamp.el: * time.el: * tree-widget.el: * type-break.el: * vc-cvs.el: * vc-hg.el: * vc-mcvs.el: * vc-rcs.el: * vc-sccs.el: * vc.el: * view.el: * w32-vars.el: * whitespace.el: * wid-edit.el: Remove leading * from docstrings of defcustoms, deffaces, defconsts and defuns.
* (jka-compr-write-region): Typo.Stefan Monnier2008-05-281-3/+3
|
* * progmodes/flymake.el (flymake-save-buffer-in-file):Stefan Monnier2008-05-281-9/+6
| | | | | | | | * shadowfile.el (shadow-copy-file): * arc-mode.el (archive-*-write-file-member): * files.el (diff-buffer-with-file): * subr.el (with-temp-file): Pass nil to write-region. * jka-compr.el (jka-compr-write-region): Preserve `start's nullness.
* Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-061-6/+4
|
* (jka-compr-insert-file-contents): Reduce indentation slightly.Stefan Monnier2008-04-031-131/+131
|
* Add 2008 to copyright years.Glenn Morris2008-01-071-1/+1
|
* Switch license to GPLv3 or later.Glenn Morris2007-07-251-1/+1
|
* (jka-compr-partial-uncompress, jka-compr-call-process): RebindChong Yidong2007-01-291-39/+41
| | | | default-directory if it is invalid. Suggested by Chris Moore.
* (jka-compr-shell): Doc fix.Juanma Barranquero2007-01-271-14/+3
|
* Add 2007 to copyright years.Glenn Morris2007-01-211-1/+1
|
* Update copyright years.Glenn Morris2006-12-051-1/+1
|
* (jka-compr-uninstall): Replace `mapcar' with `mapc'.Luc Teirlinck2006-02-271-9/+9
| | | | | | | Update `load-file-rep-suffixes' instead of `load-suffixes'. Use jka-compr-compression-info-list--internal, jka-compr-mode-alist-additions--internal and jka-compr-load-suffixes--internal.
* Update years in copyright notice; nfc.Thien-Thi Nguyen2006-02-061-1/+1
|
* Require 'jka-cmpr-hook.Stefan Monnier2005-11-111-44/+12
| | | | | | | | | | | | | (jka-compr-info-compress-message, jka-compr-info-compress-program) (jka-compr-info-compress-args, jka-compr-info-uncompress-message) (jka-compr-info-uncompress-program, jka-compr-info-uncompress-args) (jka-compr-info-can-append, jka-compr-info-strip-extension) (jka-compr-info-file-magic-bytes, jka-compr-get-compression-info) (jka-compr-info-regexp): Remove. Provided by jka-cmpr-hook. (jka-compr-uninstall): Remove entries from jka-compr-added-to-file-coding-system-alist after they are used. (jka-compr-error): Remove unused var `curbuf'. (jka-compr-file-local-copy): Remove unused var `notfound'.
* Update years in copyright notice; nfc.Thien-Thi Nguyen2005-08-061-1/+2
|
* Update FSF's address.Lute Kamstra2005-07-041-2/+2
|
* (jka-compr-insert-file-contents):Richard M. Stallman2005-06-251-0/+10
| | | | Special handling if cannot find the uncompression program.
* (jka-compr-uninstall): Add autoload cookie.Eli Zaretskii2005-05-061-1/+1
|
* Many functions and vars moved to jka-compr-hook.el.Richard M. Stallman2005-04-301-234/+2
| | | | | | | (jka-compr-handler): Add autoload. `put' calls moved to jka-compr-hook.el. (compression, jka-compr): defgroups moved to jka-compr-hook.el. (jka-compr-inhibit): Autoload.
* (jka-compr-compression-info-list): Fix custom type.Richard M. Stallman2005-04-171-2/+6
|
* (jka-compr-really-do-compress): Make variable buffer-local.Richard M. Stallman2005-03-211-1/+4
|
* (jka-compr-compression-info-list): Add tbz and dz.Juri Linkov2004-03-231-6/+21
| | | | | | | (jka-compr-mode-alist-additions): Add tbz. (jka-compr-write-region): Add error message for undefined compress-program. (jka-compr-insert-file-contents): Add message for undefined compress-program. (jka-compr-write-region): Remove redundant var bindings.
* * progmodes/idlwave.el (idlwave-make-tags):Eli Zaretskii2004-01-031-1/+1
| | | | | | | | | | | | | | | * textmodes/flyspell.el (flyspell-large-region):. * progmodes/make-mode.el (makefile-query-by-make-minus-q): * emulation/viper-util.el (viper-glob-unix-files): * emacs-lisp/shadow.el (shadow-same-file-or-nonexistent): * man.el (Man-init-defvars): * jka-compr.el (jka-compr-call-process): * files.el (get-free-disk-space,insert-directory): * ediff-ptch.el (ediff-test-patch-utility): * ediff-diff.el (ediff-test-utility): * dired-aux.el (dired-check-process): * mail/sendmail.el (sendmail-send-it): Don't use = or zerop to test the return value of call-process, because it can be a string.
* (jka-compr-insert-file-contents): Avoid error whenAndreas Schwab2003-12-251-4/+5
| | | | file not found.
* Add arch taglinesMiles Bader2003-09-011-0/+1
|
* (jka-compr-insert-file-contents):Richard M. Stallman2003-05-281-4/+1
| | | | When REPLACE, delete the proper range of text.
* Trailing whitespace deleted.Juanma Barranquero2003-02-041-17/+17
|
* (jka-compr-insert-file-contents): CallKenichi Handa2003-01-241-1/+1
| | | | docode-coding-inserted-region.
* (jka-compr-insert-file-contents): Fix typo in last change.Andreas Schwab2003-01-221-2/+2
|
* (jka-compr-insert-file-contents): Read a processKenichi Handa2003-01-221-15/+7
| | | | | output without decoding. Decode the result by decode-coding-region-as-inserted-from-file.
* (jka-compr-handler): Add safe-magic property.Richard M. Stallman2002-09-011-0/+1
|
* Fix a typo in a comment.Eli Zaretskii2002-06-091-1/+1
|
* (jka-compr-write-region): If START = nil, use whole buf.Richard M. Stallman2002-01-011-0/+4
|
* (jka-compr-partial-uncompress): Use null-device instead of a literalEli Zaretskii2001-12-211-2/+3
| | | | /dev/null. Reported by Jens Schmidt <schmidt@mathematik.uni-kl.de>.
* (jka-compr-partial-uncompress): Fix previous change.Richard M. Stallman2001-11-151-1/+1
|
* (jka-compr-partial-uncompress): Support an alternative of not using dd.Richard M. Stallman2001-11-061-32/+44
| | | | | | (jka-compr-dd-program): Use defcustom to define this. (jka-compr-load-suffixes): Use defcustom. (jka-compr-mode-alist-additions): Use defcustom.
* (jka-compr-load-suffixes): New var.Stefan Monnier2001-10-121-6/+22
| | | | | (jka-compr-install): Add its content to load-suffixes. (jka-compr-uninstall): Remove its content from load-suffixes.
* Some fixes to follow coding conventions in files maintained by FSF.Pavel Janík2001-07-151-2/+2
|
* (jka-compr-partial-uncompress): Don't use `concat' for numbers.Kenichi Handa2000-12-201-1/+1
|
* (jka-compr-compression-info-list): Fix :type.Dave Love2000-12-071-1/+2
|
* (auto-compression-mode): Drop unneeded positional args.Stefan Monnier2000-11-031-1/+1
|
* Doc fix.Miles Bader2000-10-151-4/+4
|
* Don't call `jka-compr-install' when loading (it will be done by theMiles Bader2000-10-081-10/+12
| | | | | | | definition of `auto-compression-mode' if necessary). Move code to uninstall existing file-name handler before definition of `auto-compression-mode'.
* (auto-compression-mode): Move to the end of the file, becauseMiles Bader2000-10-081-28/+30
| | | | | | | `define-minor-mode' actually calls the mode-function if the associated variable is non-nil, which requires that all needed functions be already defined. (with-auto-compression-mode): Add autoload cookie.