Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 125757 - [RFE] Add mouse bindings for .emacs/psgml setup
Summary: [RFE] Add mouse bindings for .emacs/psgml setup
Alias: None
Product: Fedora Documentation
Classification: Fedora
Component: docs-requests
Version: devel
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Karsten Wade
QA Contact: Tammy Fox
Depends On:
Blocks: fdp-docguide-traqr
TreeView+ depends on / blocked
Reported: 2004-06-10 21:08 UTC by Mark Johnson
Modified: 2009-07-07 04:08 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2009-06-30 15:56:23 UTC

Attachments (Terms of Use)

Description Mark Johnson 2004-06-10 21:08:06 UTC
Description of problem:

Some people may like to use the mouse to insert tags. The following
snippet will generate popup menus when the cursor point is either on a
start tag or in a region where elements are allowed. 

Such an addition may make Emacs a bit for friendly for a new user...


;; Mouse Bindings: right-click generates context-aware
elements/attributes popup menu.
    (define-key sgml-mode-map [mouse-3] 'sgml-tags-menu)


For screenshots, see
(See Green Theme for attribute menu.)

Comment 1 Tammy Fox 2004-08-13 15:16:53 UTC
I tried this in FC2, and it get the following error:

Symbol's value as variable is void: sgml-mode-map

Do you have to have any special modes installed to use this?

Comment 2 Mark Johnson 2004-08-14 21:03:57 UTC
Naw, I think all you need to do is to tell emacs to only use these key
bindings when in sgml/xml-mode. To do so, wrap the sgml-mode-map
statement as follows:

 'sgml-mode-hook        ; These only apply in sgml-mode

;; Mouse Bindings: right-click generates elements/attributes menu

    (define-key sgml-mode-map [mouse-3] 'sgml-tags-menu)


The final three parentheses are not optional. 

Comment 3 Tammy Fox 2004-09-17 16:41:42 UTC
I finally got around to adding the correct lines to my .emacs file,
and it works. Interesting how it divides the valid elements into

I am blocking bug #131160 with this one since it is a Docs Guide RFE.
If you already have a patch to add it to docs-emacs-en.xml, then pass
it along. Otherwise, I'll write it up and add it soon.

Comment 4 Matthew Miller 2005-04-26 15:18:02 UTC
Fedora Core 2 is now maintained by the Fedora Legacy project for
security updates only. If this problem is a security issue, please
reopen and reassign to the Fedora Legacy product. If it is not a
security issue and hasn't been resolved in the current FC3 updates or
in the FC4 test release, reopen and change the version to match.

Comment 5 Paul W. Frields 2005-04-28 12:49:51 UTC
Mark or Tammy, can you change the version to "fc3" to ensure that this bug does
not get closed as part of the Fedora Legacy bug-scrubbing?  Or is that not

Comment 6 2009-06-30 15:56:23 UTC
These guides are no longer being supported or updated.  If you feel your ticket could better be supported in one of our other guides please feel free to reopen and reassign the ticket to that guide.

Thank you for taking the time to submit your bug.

Comment 7 2009-07-07 04:08:15 UTC
Ticket moved to allow products to be removed from BZ.

Note You need to log in before you can comment on or make changes to this bug.