diff options
| author | Richard M. Stallman | 1993-06-06 22:36:23 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-06-06 22:36:23 +0000 |
| commit | 2798dfd62927c3db099042b5e62565dc7890ca0a (patch) | |
| tree | a26c5fbbfae3c51b673f7c741e726e88d22f9a07 | |
| parent | b78559b08704bc5de1a5c822a582461c08db9b29 (diff) | |
| download | emacs-2798dfd62927c3db099042b5e62565dc7890ca0a.tar.gz emacs-2798dfd62927c3db099042b5e62565dc7890ca0a.zip | |
Define 2 local menu-bar submaps.
(bibtex-x-help, bibtex-x-environment): Deleted.
| -rw-r--r-- | lisp/textmodes/bibtex.el | 113 |
1 files changed, 57 insertions, 56 deletions
diff --git a/lisp/textmodes/bibtex.el b/lisp/textmodes/bibtex.el index db0ba20861f..473081d162d 100644 --- a/lisp/textmodes/bibtex.el +++ b/lisp/textmodes/bibtex.el | |||
| @@ -604,11 +604,6 @@ checks that no non-optional fields are empty. | |||
| 604 | Use \\[bibtex-find-text] to position the dot at the end of the current field. | 604 | Use \\[bibtex-find-text] to position the dot at the end of the current field. |
| 605 | Use \\[bibtex-next-field] to move to end of the next field. | 605 | Use \\[bibtex-next-field] to move to end of the next field. |
| 606 | 606 | ||
| 607 | \\[bibtex-x-environment] binds a mode-specific X menu to control+right | ||
| 608 | mouse button. | ||
| 609 | \\[bibtex-sun-environment] binds a mode-specific Sun menu to right | ||
| 610 | mouse button. | ||
| 611 | |||
| 612 | The following may be of interest as well: | 607 | The following may be of interest as well: |
| 613 | 608 | ||
| 614 | Functions: | 609 | Functions: |
| @@ -1487,57 +1482,63 @@ an undefined location. | |||
| 1487 | (skip-whitespace-and-comments))) | 1482 | (skip-whitespace-and-comments))) |
| 1488 | 1483 | ||
| 1489 | 1484 | ||
| 1490 | 1485 | ;;; Menus for bibtex mode | |
| 1491 | ;;; X window menus for bibtex mode | 1486 | |
| 1492 | 1487 | (define-key bibtex-mode-map [menu-bar entry-types] | |
| 1493 | (defun bibtex-x-help (arg) | 1488 | (make-sparse-keymap "Entry Types")) |
| 1494 | "Mouse commands for BibTeX mode" | 1489 | |
| 1495 | 1490 | (define-key bibtex-mode-map [menu-bar entry-types bibtex-InProceedings] | |
| 1496 | (let ((selection | 1491 | '(" article in conference Proceedings " . bibtex-InProceedings)) |
| 1497 | (x-popup-menu | 1492 | (define-key bibtex-mode-map [menu-bar entry-types bibtex-Article] |
| 1498 | arg | 1493 | '(" Article in journal " . bibtex-Article)) |
| 1499 | '("BibTeX commands" | 1494 | (define-key bibtex-mode-map [menu-bar entry-types bibtex-Book] |
| 1500 | ("BibTeX entry types" | 1495 | '(" Book " . bibtex-Book)) |
| 1501 | (" article in conference Proceedings " . bibtex-InProceedings) | 1496 | (define-key bibtex-mode-map [menu-bar entry-types bibtex-Booklet] |
| 1502 | (" Article in journal " . bibtex-Article) | 1497 | '(" Booklet " . bibtex-Booklet)) |
| 1503 | (" Book " . bibtex-Book) | 1498 | (define-key bibtex-mode-map [menu-bar entry-types bibtex-InProceedings] |
| 1504 | (" Booklet " . bibtex-Booklet) | 1499 | '(" Conference " . bibtex-InProceedings)) |
| 1505 | (" Conference " . bibtex-InProceedings) | 1500 | (define-key bibtex-mode-map [menu-bar entry-types bibtex-MastersThesis] |
| 1506 | (" Master's Thesis " . bibtex-MastersThesis) | 1501 | '(" Master's Thesis " . bibtex-MastersThesis)) |
| 1507 | ; (" DEA Thesis " . bibtex-DEAthesis) | 1502 | ;define-key bibtex-mode-map [menu-bar entry-types bibtex-DEAthesis] |
| 1508 | (" Phd. Thesis " . bibtex-PhdThesis) | 1503 | '((" DEA Thesis " . bibtex-DEAthesis)) |
| 1509 | (" Technical Report " . bibtex-TechReport) | 1504 | (define-key bibtex-mode-map [menu-bar entry-types bibtex-PhdThesis] |
| 1510 | (" technical Manual " . bibtex-Manual) | 1505 | '(" Phd. Thesis " . bibtex-PhdThesis)) |
| 1511 | (" conference Proceedings " . bibtex-Proceedings) | 1506 | (define-key bibtex-mode-map [menu-bar entry-types bibtex-TechReport] |
| 1512 | (" a chapter in a Book " . bibtex-InBook) | 1507 | '(" Technical Report " . bibtex-TechReport)) |
| 1513 | (" an article in a Collection " . bibtex-InCollection) | 1508 | (define-key bibtex-mode-map [menu-bar entry-types bibtex-Manual] |
| 1514 | (" miscellaneous " . bibtex-Misc) | 1509 | '(" technical Manual " . bibtex-Manual)) |
| 1515 | (" unpublished " . bibtex-Unpublished) | 1510 | (define-key bibtex-mode-map [menu-bar entry-types bibtex-Proceedings] |
| 1516 | (" string " . bibtex-string) | 1511 | '(" conference Proceedings " . bibtex-Proceedings)) |
| 1517 | (" preamble " . bibtex-preamble) | 1512 | (define-key bibtex-mode-map [menu-bar entry-types bibtex-InBook] |
| 1518 | ) | 1513 | '(" a chapter in a Book " . bibtex-InBook)) |
| 1519 | ("Moving around and editing" | 1514 | (define-key bibtex-mode-map [menu-bar entry-types bibtex-InCollection] |
| 1520 | (" next field " . bibtex-next-field) | 1515 | '(" an article in a Collection " . bibtex-InCollection)) |
| 1521 | (" to end of field " . bibtex-find-text) | 1516 | (define-key bibtex-mode-map [menu-bar entry-types bibtex-Misc] |
| 1522 | ("snatch from similar preceding field" . bibtex-pop-previous) | 1517 | '(" miscellaneous " . bibtex-Misc)) |
| 1523 | ("snatch from similar following field" . bibtex-pop-next) | 1518 | (define-key bibtex-mode-map [menu-bar entry-types bibtex-Unpublished] |
| 1524 | (" remove OPT " . bibtex-remove-OPT) | 1519 | '(" unpublished " . bibtex-Unpublished)) |
| 1525 | (" remove quotes " | 1520 | (define-key bibtex-mode-map [menu-bar entry-types bibtex-string] |
| 1526 | . bibtex-remove-double-quotes) | 1521 | '(" string " . bibtex-string)) |
| 1527 | (" clean up entry " . bibtex-clean-entry) | 1522 | (define-key bibtex-mode-map [menu-bar entry-types bibtex-preamble] |
| 1528 | ) | 1523 | '(" preamble " . bibtex-preamble)) |
| 1529 | ("help" | 1524 | |
| 1530 | (" describe BibTeX mode " . describe-mode) | 1525 | (define-key bibtex-mode-map [menu-bar move/edit] |
| 1531 | ))))) | 1526 | (make-sparse-keymap "Bibtex Edit")) |
| 1532 | (and selection (call-interactively selection)))) | 1527 | |
| 1533 | 1528 | (define-key bibtex-mode-map [menu-bar move/edit bibtex-next-field] | |
| 1534 | (defun bibtex-x-environment () | 1529 | '(" next field " . bibtex-next-field)) |
| 1535 | "Set up X menus for BibTeX mode. Call it as bibtex-mode-hook, or interactively" | 1530 | (define-key bibtex-mode-map [menu-bar move/edit bibtex-find-text] |
| 1536 | (interactive) | 1531 | '(" to end of field " . bibtex-find-text)) |
| 1537 | (require 'x-mouse) | 1532 | (define-key bibtex-mode-map [menu-bar move/edit bibtex-pop-previous] |
| 1538 | (define-key mouse-map x-button-c-right 'bibtex-x-help) | 1533 | '("snatch from similar preceding field" . bibtex-pop-previous)) |
| 1539 | ) | 1534 | (define-key bibtex-mode-map [menu-bar move/edit bibtex-pop-next] |
| 1540 | 1535 | '("snatch from similar following field" . bibtex-pop-next)) | |
| 1536 | (define-key bibtex-mode-map [menu-bar move/edit bibtex-remove-OPT] | ||
| 1537 | '(" remove OPT " . bibtex-remove-OPT) | ||
| 1538 | (define-key bibtex-mode-map [menu-bar move/edit bibtex-remove-double-quotes] | ||
| 1539 | '(" remove quotes " . bibtex-remove-double-quotes)) | ||
| 1540 | (define-key bibtex-mode-map [menu-bar move/edit bibtex-clean-entry] | ||
| 1541 | '(" clean up entry " . bibtex-clean-entry)) | ||
| 1541 | 1542 | ||
| 1542 | 1543 | ||
| 1543 | ;; Please don't send anything to bug-gnu-emacs about these Sunwindows functions | 1544 | ;; Please don't send anything to bug-gnu-emacs about these Sunwindows functions |