summaryrefslogtreecommitdiff
path: root/lisp/tar-mode.el
Commit message (Collapse)AuthorAgeFilesLines
* Spelling fixes.Paul Eggert2011-11-141-1/+1
|
* tar-grind-file-mode fix.Ulrich Mueller2011-10-201-3/+9
| | | | | | | * lisp/tar-mode.el (tar-grind-file-mode): Fix handling of setuid/setgid, handle sticky bit. Fixes: debbugs:9817
* Coding system fix for tar-untar-buffer (Bug#8870).Jambunathan K2011-06-271-1/+2
| | | | | * lisp/tar-mode.el (tar-untar-buffer): Set coding-system-for-write to no-conversion.
* lisp/*.el: Lexical-binding cleanup.Juanma Barranquero2011-04-191-3/+2
|
* Move keymap initialization into declaration.Stefan Monnier2011-02-101-71/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/textmodes/enriched.el (enriched-mode-map): * lisp/textmodes/bib-mode.el (bib-mode-map): * lisp/term/lk201.el (lk201-function-map): * lisp/tar-mode.el (tar-mode-map): * lisp/replace.el (occur-mode-map): * lisp/progmodes/idlwave.el (idlwave-rinfo-mouse-map, idlwave-rinfo-map): * lisp/progmodes/idlw-help.el (idlwave-help-mode-map): * lisp/progmodes/gdb-mi.el (gdb-memory-format-menu, gdb-memory-unit-menu): * lisp/play/solitaire.el (solitaire-mode-map): * lisp/play/snake.el (snake-mode-map, snake-null-map): * lisp/play/pong.el (pong-mode-map): * lisp/play/handwrite.el (menu-bar-handwrite-map): * lisp/play/gametree.el (gametree-mode-map): * lisp/net/rcirc.el (rcirc-mode-map, rcirc-browse-url-map (rcirc-multiline-minor-mode-map, rcirc-track-minor-mode-map): * lisp/net/newst-plainview.el (newsticker-menu, newsticker-mode-map) (newsticker--url-keymap): * lisp/net/net-utils.el (nslookup-mode-map, ftp-mode-map): * lisp/menu-bar.el (menu-bar-file-menu, menu-bar-i-search-menu) (menu-bar-search-menu, menu-bar-replace-menu, menu-bar-goto-menu) (menu-bar-edit-menu, menu-bar-custom-menu) (menu-bar-showhide-fringe-ind-menu, menu-bar-showhide-fringe-menu) (menu-bar-showhide-scroll-bar-menu, menu-bar-showhide-menu) (menu-bar-line-wrapping-menu, menu-bar-options-menu) (menu-bar-games-menu, menu-bar-encryption-decryption-menu) (menu-bar-tools-menu, menu-bar-describe-menu) (menu-bar-search-documentation-menu, menu-bar-manuals-menu) (menu-bar-help-menu): * lisp/mail/rmailsum.el (rmail-summary-mode-map): * lisp/kmacro.el (kmacro-step-edit-map): * lisp/ibuffer.el (ibuffer-mode-groups-popup, ibuffer-mode-map) (ibuffer-mode-operate-map): * lisp/hi-lock.el (hi-lock-menu, hi-lock-map): * lisp/emulation/vip.el (vip-mode-map): * lisp/emacs-lisp/re-builder.el (reb-lisp-mode-map): * lisp/bookmark.el (bookmark-bmenu-mode-map): * lisp/help-mode.el (help-mode-map): * lisp/erc/erc-list.el (erc-list-menu-mode-map): * lisp/org/org-remember.el (org-remember-mode-map): * lisp/org/org-src.el (org-src-mode-map): Move initialization into declaration.
* * lisp/simple.el (special-mode-map): Bind "h" to `describe-mode';Sam Steingold2011-02-011-84/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bind "z" to `kill-this-buffer'. (completion-list-mode-map): Bind "z" to `kill-this-buffer'. * lisp/apropos.el (apropos-mode-map): Inherit from `special-mode-map'. (apropos-mode): Inherit from `special-mode'. * lisp/arc-mode.el (archive-mode-map): Inherit from `special-mode-map'. * lisp/bookmark.el (bookmark-bmenu-mode): Define using `define-derived-mode' inheriting from `special-mode'. * lisp/dired.el (dired-mode-map): Inherit from `special-mode-map'. * lisp/image-mode.el (image-mode-map): Ditto. * lisp/replace.el (occur-mode): Define using `define-derived-mode' inheriting from `special-mode'. * lisp/tar-mode.el (tar-mode): Inherit from `special-mode'. * lisp/calendar/diary-lib.el (diary-fancy-display-mode): Inherit from `special-mode-map'. * lisp/emacs-lisp/ert.el (ert-simple-view-mode, ert-results-mode): Inherit from `special-mode'. * lisp/emacs-lisp/package.el (package-menu-mode-map): Copy from `special-mode-map'. (package-menu-mode): Define using `define-derived-mode' inheriting from `special-mode'. * erc/erc-list.el (erc-list-menu-mode): Inherit from `special-mode'. * lisp/net/xesam.el (xesam-mode): Inherit from `special-mode'. (xesam-mode-map): Define separately. * lisp/play/solitaire.el (solitaire-mode): Inherit from `special-mode'. * lisp/progmodes/compile.el (compilation-minor-mode-map) (compilation-mode-map): Inherit from `special-mode-map'. * lisp/vc/diff-mode.el (diff-mode-shared-map): Inherit from `special-mode-map'. * lisp/vc/log-view.el (log-view-mode-map): Add a comment.
* Refill some long/short copyright headers.Glenn Morris2011-01-261-2/+1
|
* Convert consecutive FSF copyright years to ranges.Glenn Morris2011-01-241-2/+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
| |
* | Merge changes from emacs-23 branch.Juanma Barranquero2010-09-281-1/+2
|\|
| * tar-mode.el (tar-header-block-tokenize): Decode filenames in "ustar" format.Kenichi Handa2010-09-271-1/+2
| |
* | Use define-minor-mode where applicable.Stefan Monnier2010-05-021-14/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * mh-show.el (mh-showing-mode): Move function to mh-e.el. * mh-e.el (mh-showing-mode): * url-dired.el (url-dired-minor-mode): * org-table.el (orgtbl-mode): * view.el (view-mode): * type-break.el (type-break-query-mode) (type-break-mode-line-message-mode): * textmodes/reftex.el (reftex-mode): * term/vt100.el (vt100-wide-mode): * tar-mode.el (tar-subfile-mode): * savehist.el (savehist-mode): * ibuf-ext.el (ibuffer-auto-mode): * composite.el (auto-composition-mode): * progmodes/vhdl-mode.el (vhdl-electric-mode, vhdl-stutter-mode): Use define-minor-mode. (vhdl-mode): Use static mode-line format. (vhdl-mode-line-update): Delete. (vhdl-create-mode-menu, vhdl-activate-customizations) (vhdl-hs-minor-mode): Don't bother calling it.
* | Test for special mode-class in view-buffer instead of view-file (bug#5513).Juri Linkov2010-04-191-8/+6
|/ | | | | | | | * view.el (view-file, view-buffer): Move test for special mode-class from view-file to view-buffer. * tar-mode.el (tar-extract): Turn if's into one cond like in arc-mode.el.
* Add 2010 to copyright years.Glenn Morris2010-01-131-1/+1
|
* * tar-mode.el (tar-copy): Call write-region on the right bufferChong Yidong2009-11-071-4/+6
| | | | (Bug#4857).
* (tar-data-swapped-p): Make the assertion a bit moreStefan Monnier2009-10-171-6/+16
| | | | | | permissive for when the buffer is empty. (tar-header-block-tokenize): Decode the username and groupname. (tar-chown-entry, tar-chgrp-entry): Encode the names (bug#4730).
* Use default-value rather than default-enable-multibyte-characters.Glenn Morris2009-09-031-3/+4
|
* (tar-header-block-tokenize): Obey @LongLink even forStefan Monnier2009-06-041-1/+4
| | | | POSIX tar archives (bug#3410).
* (tar-extract): Setup the buffer's name, undo-list, andStefan Monnier2009-03-141-10/+4
| | | | modified status before running the major-mode.
* (tar-header-block-tokenize): Presume less, check more.Stefan Monnier2009-03-131-6/+20
| | | | | | | | (tar-summarize-buffer): Don't silently skip incomplete headers. (tar-mode): Revert to fundamental-mode in case of malformed tar data. (tar-extract): Try to make sure set-auto-mode doesn't mistakenly treat a tar file member as being a tar file itself, just because its own filename includes the parent tar file's.
* (tar-rename-entry): Only test the magic string, withoutStefan Monnier2009-01-161-2/+2
| | | | its version number, and then set both.
* (tar-header-block-tokenize): Properly ignore the versionStefan Monnier2009-01-121-4/+9
| | | | subfield of the magic string.
* (tar-mode, tar-mode-write-contents)Stefan Monnier2009-01-071-12/+12
| | | | (tar-write-region-annotate): Undo Andreas's last change.
* Add 2009 to copyright years.Glenn Morris2009-01-051-1/+1
|
* (tar-mode): Set write-contents-functions instead ofAndreas Schwab2008-12-311-10/+13
| | | | | | write-region-annotate-functions. (tar-mode-write-contents): New function. (tar-write-region-annotate): Remove.
* (tar-data-swapped): New var.Stefan Monnier2008-12-301-7/+30
| | | | | | | (tar-data-swapped-p, tar-swap-data): Use it instead of buffer-swapped-with. (tar-write-region-annotate): Re-add (partial undo of last change). (tar-mode): Use it again (partial undo as well).
* (tar-swap-data): New function.Andreas Schwab2008-12-261-33/+24
| | | | | | | | | | | (tar-change-major-mode-hook): Use it instead of buffer-swap-text. (tar-mode-revert): Likewise. (tar-mode): Likewise. Don't set write-region-annotate-functions. (tar-data-swapped-p): Test buffer-swapped-with. (tar-write-region-annotate): Remove. (tar-header-block-tokenize): Add argument `coding' and use it instead of tar-file-name-coding-system. (tar-summarize-buffer): Pass tar-file-name-coding-system here.
* Merge from emacs--rel--22Miles Bader2008-06-011-1/+1
|\ | | | | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1193
| * (tar-header-block-summarize): Ensure one space around user&group.Stefan Monnier2008-05-261-1/+1
| |
* | (tar-header): New field `header-start'.Stefan Monnier2008-05-291-97/+95
| | | | | | | | | | | | | | | | | | | | | | | | (tar-header-block-tokenize): Set it when useful. Drop "GNUtar " magic value, which even GNU Tar doesn't know about. (tar-header-data-end): New function. (tar-summarize-buffer): Use it. (tar-next-line): Fix goal column for long usernames. (tar-expunge-internal): Use header-start. (tar-rename-entry): Handle ustar-style long names. (tar-alter-one-field): Add optional `descriptor' argument. (tar-subfile-save-buffer): Use it.
* | (tar-summarize-buffer): Fix reporter initialization.Stefan Monnier2008-05-281-22/+15
| | | | | | | | | | | | | | | | | | (tar-mode): Use write-region-annotate-functions rather than write-contents-functions. (tar-extract): Remove unused var `pos'. (tar-subfile-save-buffer): Remove unused var `following-descs'. (tar-mode-write-file): Remove. (tar-write-region-annotate): New function.
* | Use defstruct and markers.Stefan Monnier2008-05-271-241/+180
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (tar-setf): Remove. (tar-header): Use defstruct. Add `data-start' field. (make-tar-desc, tar-desc-tokens): Remove, folded into tar-header. (tar-desc-data-start): Remove (now called tar-header-data-start). (tar-roundup-512): New fun. (tar-header-block-tokenize): Receive a buffer position rather than a string. Handle @longLink here, be more careful about it. Create a marker for data-start. (tar-summarize-buffer): Don't handle @LongLink here any more. (tar-expunge-internal, tar-subfile-save-buffer): Don't update data-start on the following entries any more. (tar-chown-entry, tar-chgrp-entry): Use read-number.
* | Use buffer-swap-text to separate summary and raw data.Stefan Monnier2008-05-271-308/+311
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (tar-header-offset): Remove. (tar-parse-info, tar-header-offset, tar-file-name-coding-system): Not permanent any more. (tar-data-buffer): New var. (tar-data-swapped-p, tar-change-major-mode-hook) (tar-mode-kill-buffer-hook): New funs. (tar-untar-buffer, tar-summarize-buffer, tar-mode, tar-mode-revert) (tar-extract, tar-copy, tar-expunge-internal, tar-expunge) (tar-clear-modification-flags, tar-alter-one-field) (tar-subfile-save-buffer, tar-pad-to-blocksize, tar-mode-write-file): Change accordingly.
* | (tar-summarize-buffer): Comment fix.Andreas Schwab2008-05-261-1/+1
| |
* | Merge from emacs--rel--22Miles Bader2008-05-261-5/+13
|\| | | | | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1179
| * (tar-summarize-buffer): Handle GNU Tar @LongLink format.Stefan Monnier2008-05-251-9/+17
| |
* | Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-061-6/+4
| |
* | (tar-untar-buffer): If the entry has directory link type, extract itMagnus Henoch2008-04-231-1/+3
| | | | | | | | | | as a directory even if its file name doesn't end with a slash. Fixes extraction of NetBSD tar archives.
* | (tar-prefix-offset): New constant.Juri Linkov2008-04-221-4/+12
| | | | | | | | | | (tar-header-block-tokenize): Support paths with long names which use the "ustar" standard.
* | (tar-mode-map): Obey mouse-1-click-follows-link.Stefan Monnier2008-04-031-0/+2
| |
* | Fix broken indentation.Stefan Monnier2008-02-121-30/+24
| | | | | | | | | | (tar-mouse-extract, tar-extract, tar-subfile-save-buffer): Use with-current-buffer.
* | Merge from emacs--devo--0Miles Bader2008-01-301-1/+2
|\ \ | | | | | | | | | Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-324
| * | (tar-extract): Use kill-buffer-if-not-modified asMartin Rudalics2008-01-271-1/+2
| | | | | | | | | | | | exit-action when viewing the buffer.
* | | Merge from emacs--devo--0Miles Bader2008-01-091-1/+1
|\| | | | | | | | | | | Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-312
| * | Merge from emacs--rel--22Miles Bader2008-01-081-1/+1
| |\| | | | | | | | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
| | * Add 2008 to copyright years.Glenn Morris2008-01-071-1/+1
| | |
* | | Merge from emacs--devo--0Miles Bader2007-10-271-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * emacs--devo--0 (patch 902-908) - Update from CVS - Merge from emacs--rel--22 * emacs--rel--22 (patch 131-137) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 261-262) - Update from CVS Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-278
| * | * term/x-win.el (x-gtk-stock-map, icon-map-list)Dan Nicolaescu2007-10-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (x-gtk-map-stock): Delete duplicated definitions from merge. * progmodes/octave-mod.el: Require octave-inf at compile time * progmodes/compile.el (compilation-skip-to-next-location) (compilation-skip-threshold, compilation-skip-visited): Move definitions earlier. * play/zone.el (zone-fall-through-ws): * play/landmark.el (lm-move-down, lm-move-up): * play/handwrite.el (handwrite): * mail/mspools.el (mspools-visit-spool): * wdired.el (wdired-next-line, wdired-previous-line): * tar-mode.el (tar-subfile-save-buffer): * scroll-lock.el (scroll-lock-next-line) (scroll-lock-previous-line): * image-dired.el (image-dired-next-line) (image-dired-previous-line): * ediff-help.el (ediff-help-message-line-length): Use forward-line. * smerge-mode.el (smerge-auto-refine): * diff-mode.el (diff-auto-refine): Add :group. * play/yow.el: Require doctor at compile time. * vmsproc.el: Provide vmsproc. (command-send-input): Use forward-line. * vms-patch.el: Require ps-print and vmsproc at compile time. * vc-mtn.el (log-view-message-re, log-view-file-re) (log-view-font-lock-keywords): Pacify byte-compiler. * vc-hg.el: Require log-view at compile time.