aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-05-19 20:37:54 +0200
committerLars Ingebrigtsen2019-05-19 20:37:54 +0200
commit24d30cd61ad460739da0d9a8d397a0eca70c65f0 (patch)
tree38157fa39c4545d42750279bdcf6fe8a5b644514
parentd4af2f3001fea2d9ea46facaf26d3330bd8626e2 (diff)
downloademacs-24d30cd61ad460739da0d9a8d397a0eca70c65f0.tar.gz
emacs-24d30cd61ad460739da0d9a8d397a0eca70c65f0.zip
arc-mode.el: Remove XEmacs compat code
* lisp/arc-mode.el (archive-mode-map): Remove XEmacs compat code. (archive-summarize-files): Ditto.
-rw-r--r--lisp/arc-mode.el136
1 files changed, 65 insertions, 71 deletions
diff --git a/lisp/arc-mode.el b/lisp/arc-mode.el
index 7fa403f6ca4..7f435f17a17 100644
--- a/lisp/arc-mode.el
+++ b/lisp/arc-mode.el
@@ -417,70 +417,66 @@ file. Archive and member name will be added."
417 (substitute-key-definition 'advertised-undo 'archive-undo map global-map) 417 (substitute-key-definition 'advertised-undo 'archive-undo map global-map)
418 (substitute-key-definition 'undo 'archive-undo map global-map)) 418 (substitute-key-definition 'undo 'archive-undo map global-map))
419 419
420 (define-key map 420 (define-key map [mouse-2] 'archive-extract)
421 (if (featurep 'xemacs) 'button2 [mouse-2]) 'archive-extract) 421
422 422 (define-key map [menu-bar immediate]
423 (if (featurep 'xemacs) 423 (cons "Immediate" (make-sparse-keymap "Immediate")))
424 () ; out of luck 424 (define-key map [menu-bar immediate alternate]
425 425 '(menu-item "Alternate Display" archive-alternate-display
426 (define-key map [menu-bar immediate] 426 :enable (boundp (archive-name "alternate-display"))
427 (cons "Immediate" (make-sparse-keymap "Immediate"))) 427 :help "Toggle alternate file info display"))
428 (define-key map [menu-bar immediate alternate] 428 (define-key map [menu-bar immediate view]
429 '(menu-item "Alternate Display" archive-alternate-display 429 '(menu-item "View This File" archive-view
430 :enable (boundp (archive-name "alternate-display")) 430 :help "Display file at cursor in View Mode"))
431 :help "Toggle alternate file info display")) 431 (define-key map [menu-bar immediate display]
432 (define-key map [menu-bar immediate view] 432 '(menu-item "Display in Other Window" archive-display-other-window
433 '(menu-item "View This File" archive-view 433 :help "Display file at cursor in another window"))
434 :help "Display file at cursor in View Mode")) 434 (define-key map [menu-bar immediate find-file-other-window]
435 (define-key map [menu-bar immediate display] 435 '(menu-item "Find in Other Window" archive-extract-other-window
436 '(menu-item "Display in Other Window" archive-display-other-window 436 :help "Edit file at cursor in another window"))
437 :help "Display file at cursor in another window")) 437 (define-key map [menu-bar immediate find-file]
438 (define-key map [menu-bar immediate find-file-other-window] 438 '(menu-item "Find This File" archive-extract
439 '(menu-item "Find in Other Window" archive-extract-other-window 439 :help "Extract file at cursor and edit it"))
440 :help "Edit file at cursor in another window")) 440
441 (define-key map [menu-bar immediate find-file] 441 (define-key map [menu-bar mark]
442 '(menu-item "Find This File" archive-extract 442 (cons "Mark" (make-sparse-keymap "Mark")))
443 :help "Extract file at cursor and edit it")) 443 (define-key map [menu-bar mark unmark-all]
444 444 '(menu-item "Unmark All" archive-unmark-all-files
445 (define-key map [menu-bar mark] 445 :help "Unmark all marked files"))
446 (cons "Mark" (make-sparse-keymap "Mark"))) 446 (define-key map [menu-bar mark deletion]
447 (define-key map [menu-bar mark unmark-all] 447 '(menu-item "Flag" archive-flag-deleted
448 '(menu-item "Unmark All" archive-unmark-all-files 448 :help "Flag file at cursor for deletion"))
449 :help "Unmark all marked files")) 449 (define-key map [menu-bar mark unmark]
450 (define-key map [menu-bar mark deletion] 450 '(menu-item "Unflag" archive-unflag
451 '(menu-item "Flag" archive-flag-deleted 451 :help "Unmark file at cursor"))
452 :help "Flag file at cursor for deletion")) 452 (define-key map [menu-bar mark mark]
453 (define-key map [menu-bar mark unmark] 453 '(menu-item "Mark" archive-mark
454 '(menu-item "Unflag" archive-unflag 454 :help "Mark file at cursor"))
455 :help "Unmark file at cursor")) 455
456 (define-key map [menu-bar mark mark] 456 (define-key map [menu-bar operate]
457 '(menu-item "Mark" archive-mark 457 (cons "Operate" (make-sparse-keymap "Operate")))
458 :help "Mark file at cursor")) 458 (define-key map [menu-bar operate chown]
459 459 '(menu-item "Change Owner..." archive-chown-entry
460 (define-key map [menu-bar operate] 460 :enable (fboundp (archive-name "chown-entry"))
461 (cons "Operate" (make-sparse-keymap "Operate"))) 461 :help "Change owner of marked files"))
462 (define-key map [menu-bar operate chown] 462 (define-key map [menu-bar operate chgrp]
463 '(menu-item "Change Owner..." archive-chown-entry 463 '(menu-item "Change Group..." archive-chgrp-entry
464 :enable (fboundp (archive-name "chown-entry")) 464 :enable (fboundp (archive-name "chgrp-entry"))
465 :help "Change owner of marked files")) 465 :help "Change group ownership of marked files"))
466 (define-key map [menu-bar operate chgrp] 466 (define-key map [menu-bar operate chmod]
467 '(menu-item "Change Group..." archive-chgrp-entry 467 '(menu-item "Change Mode..." archive-chmod-entry
468 :enable (fboundp (archive-name "chgrp-entry")) 468 :enable (fboundp (archive-name "chmod-entry"))
469 :help "Change group ownership of marked files")) 469 :help "Change mode (permissions) of marked files"))
470 (define-key map [menu-bar operate chmod] 470 (define-key map [menu-bar operate rename]
471 '(menu-item "Change Mode..." archive-chmod-entry 471 '(menu-item "Rename to..." archive-rename-entry
472 :enable (fboundp (archive-name "chmod-entry")) 472 :enable (fboundp (archive-name "rename-entry"))
473 :help "Change mode (permissions) of marked files")) 473 :help "Rename marked files"))
474 (define-key map [menu-bar operate rename] 474 ;;(define-key map [menu-bar operate copy]
475 '(menu-item "Rename to..." archive-rename-entry 475 ;; '(menu-item "Copy to..." archive-copy))
476 :enable (fboundp (archive-name "rename-entry")) 476 (define-key map [menu-bar operate expunge]
477 :help "Rename marked files")) 477 '(menu-item "Expunge Marked Files" archive-expunge
478 ;;(define-key map [menu-bar operate copy] 478 :help "Delete all flagged files from archive"))
479 ;; '(menu-item "Copy to..." archive-copy)) 479 map)
480 (define-key map [menu-bar operate expunge]
481 '(menu-item "Expunge Marked Files" archive-expunge
482 :help "Delete all flagged files from archive"))
483 map))
484 "Local keymap for archive mode listings.") 480 "Local keymap for archive mode listings.")
485(defvar archive-file-name-indent nil "Column where file names start.") 481(defvar archive-file-name-indent nil "Column where file names start.")
486 482
@@ -838,13 +834,11 @@ when parsing the archive."
838 ;; Using `concat' here copies the text also, so we can add 834 ;; Using `concat' here copies the text also, so we can add
839 ;; properties without problems. 835 ;; properties without problems.
840 (let ((text (concat (aref fil 0) "\n"))) 836 (let ((text (concat (aref fil 0) "\n")))
841 (if (featurep 'xemacs) 837 (add-text-properties
842 () ; out of luck 838 (aref fil 1) (aref fil 2)
843 (add-text-properties 839 '(mouse-face highlight
844 (aref fil 1) (aref fil 2) 840 help-echo "mouse-2: extract this file into a buffer")
845 '(mouse-face highlight 841 text)
846 help-echo "mouse-2: extract this file into a buffer")
847 text))
848 text)) 842 text))
849 files))) 843 files)))
850 (setq archive-file-list-end (point-marker))) 844 (setq archive-file-list-end (point-marker)))