Mercurial > hg > xemacs-beta
comparison lisp/hm--html-menus/hm--html-menu.el @ 116:9f59509498e1 r20-1b10
Import from CVS: tag r20-1b10
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:23:06 +0200 |
parents | a145efe76779 |
children | 1856695b1fa9 |
comparison
equal
deleted
inserted
replaced
115:f109f7dabbe2 | 116:9f59509498e1 |
---|---|
1 ;;; hm--html-menu --- A menu for the hm--html-mode. | 1 ;;; hm--html-menu --- A menu for the hm--html-mode. |
2 ;;; | 2 ;;; |
3 ;;; $Id: hm--html-menu.el,v 1.4 1997/02/27 06:08:09 steve Exp $ | 3 ;;; $Id: hm--html-menu.el,v 1.5 1997/03/28 02:28:41 steve Exp $ |
4 ;;; | 4 ;;; |
5 ;;; Copyright (C) 1993 - 1997 Heiko Muenkel | 5 ;;; Copyright (C) 1993 - 1997 Heiko Muenkel |
6 ;;; email: muenkel@tnt.uni-hannover.de | 6 ;;; email: muenkel@tnt.uni-hannover.de |
7 ;;; | 7 ;;; |
8 ;;; This program is free software; you can redistribute it and/or modify | 8 ;;; This program is free software; you can redistribute it and/or modify |
62 ["Gopher link..." hm--html-add-gopher-link t] | 62 ["Gopher link..." hm--html-add-gopher-link t] |
63 ["File link..." hm--html-add-file-link t] | 63 ["File link..." hm--html-add-file-link t] |
64 "----" | 64 "----" |
65 ["Ftp link..." hm--html-add-ftp-link t] | 65 ["Ftp link..." hm--html-add-ftp-link t] |
66 ["News link..." hm--html-add-news-link t] | 66 ["News link..." hm--html-add-news-link t] |
67 ["Mailbox link..." hm--html-add-mail-link t] | 67 ["Mailbox link..." hm--html-add-mail-box-link t] |
68 ["Mailto link..." hm--html-add-mailto-link t] | 68 ["Mailto link..." hm--html-add-mailto-link t] |
69 ["Wais link (direct)..." hm--html-add-direct-wais-link t] | 69 ["Wais link (direct)..." hm--html-add-direct-wais-link t] |
70 ["Wais link (gateway)..." hm--html-add-wais-link t] | 70 ["Wais link (gateway)..." hm--html-add-wais-link t] |
71 "----" | 71 "----" |
72 ["Proggate link..." hm--html-add-proggate-link t] | 72 ["Proggate link..." hm--html-add-proggate-link t] |
187 ; ["Sample" hm--html-add-sample t] | 187 ; ["Sample" hm--html-add-sample t] |
188 ; ) | 188 ; ) |
189 ; ("Literature" | 189 ; ("Literature" |
190 ; ["Quote" hm--html-add-quote t] | 190 ; ["Quote" hm--html-add-quote t] |
191 ; ["Acronym" hm--html-add-acronym t] | 191 ; ["Acronym" hm--html-add-acronym t] |
192 ; ["Abbrevation" hm--html-add-abbrevation t] | 192 ; ["Abbreviation" hm--html-add-abbreviation t] |
193 ; ["Citation" hm--html-add-citation t] | 193 ; ["Citation" hm--html-add-citation t] |
194 ; ["Literature" hm--html-add-literature t] | 194 ; ["Literature" hm--html-add-literature t] |
195 ; ["Publication" hm--html-add-publication t] | 195 ; ["Publication" hm--html-add-publication t] |
196 ; ["ISBN" hm--html-add-isbn t] | 196 ; ["ISBN" hm--html-add-isbn t] |
197 ; ) | 197 ; ) |
310 ["Gopher link..." hm--html-add-gopher-link-to-region t] | 310 ["Gopher link..." hm--html-add-gopher-link-to-region t] |
311 ["File link..." hm--html-add-file-link-to-region t] | 311 ["File link..." hm--html-add-file-link-to-region t] |
312 "----" | 312 "----" |
313 ["Ftp link..." hm--html-add-ftp-link-to-region t] | 313 ["Ftp link..." hm--html-add-ftp-link-to-region t] |
314 ["News link..." hm--html-add-news-link-to-region t] | 314 ["News link..." hm--html-add-news-link-to-region t] |
315 ["Mailbox link..." hm--html-add-mail-link-to-region t] | 315 ["Mailbox link..." hm--html-add-mail-box-link-to-region t] |
316 ["Mailto link..." hm--html-add-mailto-link-to-region t] | 316 ["Mailto link..." hm--html-add-mailto-link-to-region t] |
317 ["WAIS link (direct)..." hm--html-add-direct-wais-link-to-region t] | 317 ["WAIS link (direct)..." hm--html-add-direct-wais-link-to-region t] |
318 ["WAIS link (gateway)..." hm--html-add-wais-link-to-region t] | 318 ["WAIS link (gateway)..." hm--html-add-wais-link-to-region t] |
319 "----" | 319 "----" |
320 ["Proggate link..." hm--html-add-proggate-link-to-region t] | 320 ["Proggate link..." hm--html-add-proggate-link-to-region t] |
532 (if (adapt-xemacsp) | 532 (if (adapt-xemacsp) |
533 (defun hm--install-html-menu (menu-name) | 533 (defun hm--install-html-menu (menu-name) |
534 (if (and current-menubar (not (assoc menu-name current-menubar))) | 534 (if (and current-menubar (not (assoc menu-name current-menubar))) |
535 (progn | 535 (progn |
536 (set-buffer-menubar (copy-sequence current-menubar)) | 536 (set-buffer-menubar (copy-sequence current-menubar)) |
537 (add-submenu nil (cons menu-name (cdr hm--html-pulldown-menu)) "HTML")))) | 537 (add-submenu nil |
538 (cons menu-name (cdr hm--html-pulldown-menu)) | |
539 "HTML")))) | |
538 | 540 |
539 (defun hm--install-html-menu (menu-name) | 541 (defun hm--install-html-menu (menu-name) |
540 (if (eq major-mode 'hm--html-mode) | 542 (if (eq major-mode 'hm--html-mode) |
541 (easy-menu-define hm--html-menu-map | 543 (easy-menu-define hm--html-menu-map |
542 hm--html-mode-map | 544 hm--html-mode-map |
686 (popup-menu (append hm--html-popup-menu ; for the hm--html-menu | 688 (popup-menu (append hm--html-popup-menu ; for the hm--html-menu |
687 (list "==" ; | 689 (list "==" ; |
688 (car menudesc) ; | 690 (car menudesc) ; |
689 "==") ; | 691 "==") ; |
690 (cdr menudesc))) ; | 692 (cdr menudesc))) ; |
691 (while (popup-menu-up-p) | 693 (while (popup-up-p) |
692 (setq event (next-command-event event)) | 694 (setq event (next-command-event event)) |
693 (cond ((menu-event-p event) | 695 (cond ((misc-user-event-p event) |
694 (cond | 696 (cond |
695 ((eq (event-object event) 'abort) | 697 ((eq (event-object event) 'abort) |
696 (signal 'quit nil)) | 698 (signal 'quit nil)) |
697 ((eq (event-object event) 'menu-no-selection-hook) | 699 ((eq (event-object event) 'menu-no-selection-hook) |
698 nil) | 700 nil) |