Sponsored Content
Full Discussion: xemacs bindings help
Top Forums UNIX for Dummies Questions & Answers xemacs bindings help Post 302482727 by DGPickett on Wednesday 22nd of December 2010 11:15:55 AM
Old 12-22-2010
Not that I ever let emacs into my brain, even on MULTICS, but you might try it on emacs in an xterm and see if it behaves more as you expect.
 

10 More Discussions You Might Find Interesting

1. Programming

xemacs

Hi Folks, Would like to download the xemacs editor for C. I searched the xemacs site but i donno the exact place of download. Can any one pass the URL or way to go thru and download the editor? Thanks in Advance, Nisha (4 Replies)
Discussion started by: Nisha
4 Replies

2. UNIX for Dummies Questions & Answers

Xemacs and emacs

Hi guys What is the difference between Xemacs and emacs. I assumed Xemacs runs only in X11. What about in Linux on KDE? Am I running Xemacs or emacs. Well it says emacs though. What is the advantage of one over other? What can I run on OS X ? SS (5 Replies)
Discussion started by: saurya_s
5 Replies

3. Shell Programming and Scripting

key bindings

I'm using AIX 5.2 with ksh, I think it's ksh88 by default, and not ksh93. I would like to enable my arrow keys to ressamble bash behaviour. I don't know to what sequence of characters they're bound now. They do something but it's rather useless behaviour, meaning, unexpected and not very... (1 Reply)
Discussion started by: rein
1 Replies

4. UNIX for Dummies Questions & Answers

xemacs colors for C files

xemacs uses default colors for coloring C files how can I change those colors. I could only manage the default background and foreground colors and that too using .Xdefaults file changes. (2 Replies)
Discussion started by: spotnis
2 Replies

5. Solaris

Mouse button bindings

Hello, On one of our Solaris machines the user has managed to destroy his mouse key bindings. Usally if he clicks the middle button it presents some applications but now it just minimises the CDE panel to the top. I have compared his /usr/dt/config/C/sys.dtwmrc with another machine that is... (0 Replies)
Discussion started by: Mr Pink
0 Replies

6. UNIX for Dummies Questions & Answers

display ^M in xemacs

Sorry, this has probably been posted before, but my searches turn up nothing, and I have tried. using a cygwin distro of xemacs The default is NOT to display CR characters (I expect to see them as ^M). I want to change this so they do show up. Can you tell me please, what command to issue?... (0 Replies)
Discussion started by: scott1256ca
0 Replies

7. Solaris

Solaris, vi (not vim), key bindings

hi, i am facing a problem that (i think) many people had before. under linux i use vim and therefor i am used to be able to use the cursor, delete and backspace keys in edit mode. that's not the case in the classic vi, e.g. under solaris. when hitting these keys, uninteded char sequences are... (1 Reply)
Discussion started by: alex.blackbit
1 Replies

8. UNIX for Advanced & Expert Users

About to give up on XEmacs 21.5.29

Folks, I am hoping someone out there can help me. I have been writing code for in-excess of 10 years. Throughout all this time I have used Xemacs. I have picked up bits of customizations here and there over the years, but would not profess to be anything of an expert in Lisp (or have a heavily... (3 Replies)
Discussion started by: petermc
3 Replies

9. UNIX for Dummies Questions & Answers

Replace and increment in xemacs 21.4

I am trying to replace and increment a lot of TEST_FONC_1 entries in my file with TEST_FONC_2 then TEST_FONC_3..... I'm trying to use replace regexp but it doesn't work I have tried replace _+ with _\,(1+ \#&) but it doesn't work. it find the entries but it replace it with the text... (4 Replies)
Discussion started by: Toug
4 Replies

10. Linux

GNU Screen key bindings....

After I do CTRL-" to show all of my screen sessions, I typically use the up and down arrows to navigate up and down. Suddenly this has changed, and instead only "j" and "k" seem to work for up and down. This has changed in the middle of my screen session. First one changed, and then the... (1 Reply)
Discussion started by: akbar
1 Replies
ntextWordBreak(3tk)				 ntext Word Boundary Detection for the Text Widget			       ntextWordBreak(3tk)

__________________________________________________________________________________________________________________________________________________

NAME
ntextWordBreak - ntext Word Boundary Detection for the Text Widget SYNOPSIS
package require Tcl 8.5 package require Tk 8.5 package require ntext ?0.81? _________________________________________________________________ DESCRIPTION
The ntext package provides a binding tag named Ntext for use by text widgets in place of the default Text binding tag. Navigation and selection in a text widget require the detection of words and their boundaries. The word boundary detection facilities pro- vided by Tcl/Tk through the Text binding tag are limited because they define only one class of "word" characters and one class of "non- word" characters. The Ntext binding tag uses more general rules for word boundary detection, that define two classes of "word" characters and one class of "non-word" characters. CONFIGURATION OPTIONS
The behaviour of Ntext may be configured application-wide by setting the values of a number of namespace variables. One of these is rele- vant to word boundary detection: ::ntext::classicWordBreak o 0 - (default value) selects Ntext behaviour, i.e. platform-independent, two classes of word characters and one class of non-word characters. o 1 - selects classic Text behaviour, i.e. platform-dependent, one class of word characters and one class of non-word characters o After changing this value, Ntext 's regexp matching patterns should be recalculated. See FUNCTIONS for details and advanced config- uration options. ADVANCED USE
VARIABLES (ADVANCED USE) ::ntext::tcl_match_wordBreakAfter ::ntext::tcl_match_wordBreakBefore ::ntext::tcl_match_endOfWord ::ntext::tcl_match_startOfNextWord ::ntext::tcl_match_startOfPreviousWord These variables hold the regexp patterns that are used by Ntext to search for word boundaries. If they are changed, subsequent searches are immediately altered. In many situations, it it unnecessary to alter the values of these variables directly: instead call one of the functions ::ntext::initializeMatchPatterns, ::ntext::createMatchPatterns. In the Text binding tag one can change the search rules by changing the values of the global variables tcl_wordchars and tcl_nonwordchars. The equivalent operation in the Ntext binding tag is to call ::ntext::createMatchPatterns with appropriate arguments. FUNCTIONS (ADVANCED USE) If a simple regexp search should prove insufficient, the following functions (analogous to the Tcl/Tk core's tcl_wordBreakAfter etc) may be replaced by the developer: ntext::new_wordBreakAfter ntext::new_wordBreakBefore ntext::new_endOfWord ntext::new_startOfNextWord ntext::new_startOfPreviousWord FUNCTIONS
Each function calculates the five regexp search patterns that define the word boundary searches. These values are stored in the namespace variables listed above. ::ntext::initializeMatchPatterns o This function is called when Ntext is first used, and needs to be called again only if the script changes the value of either ::ntext::classicWordBreak or ::tcl_platform(platform). The function is called with no arguments. It is useful when the desired search patterns are the default patterns for either the Ntext or Text binding tag, and so are implicitly specified by the values of ::ntext::classicWordBreak and ::tcl_platform(platform) alone. ::ntext::createMatchPatterns new_nonwordchars new_word1chars ?new_word2chars? o This function is useful in a wider range of situations than ::ntext::initializeMatchPatterns. It calculates the regexp search pat- terns for any case with one class of "non-word" characters and one or two classes of "word" characters. Each argument should be a regexp expression defining a class of characters. An argument will usually be a bracket expression, but might alternatively be a class-shorthand escape, or a single character. The third argument may be omitted, or supplied as the empty string, in which case it is unused. The first argument is interpreted as the class of non-word characters; the second argument (and the third, if present) are classes of word characters. The classes should include all possible characters and will normally be mutually exclusive: it is often conve- nient to define one class as the negation of the other two. WORD BOUNDARY MATCHING
The problem of word boundary selection is a vexed one, because text is used to represent a universe of different types of information, and there are no simple rules that are useful for all data types or for all purposes. Ntext attempts to improve on the facilities available in classic Text by providing facilities for more complex definitions of words (with three classes of characters instead of two). What is a word? Why two classes of word? When using the modified cursor keys <Control-Left> and <Control-Right> to navigate through a Ntext widget, the cursor is placed at the start of a word. A word is defined as a sequence of one or more characters from only one of the two defined "word" classes; it may be pre- ceded by a character from the other "word" class or from the "non-word" class. The double-click of mouse button 1 selects a word of text, where in this case a "word" may be as defined above, or alternatively may be a sequence of one or more characters from the "non-word" class of characters. Traditionally Tcl has defined only one word class and one non-word class: on Windows, the non-word class is whitespace, and so alphanumer- ics and punctuation belong to the same class. On other platforms, punctuation is bundled with whitespace as "non-word" characters. In either case, the navigation and selection of text are unnecessarily coarse-grained, and sometimes give unhelpful results. The use of three classes of characters might make selection too fine-grained; but in this case, holding down the Shift key and double- clicking another word is an excellent way to select a longer range of text (a useful binding that Tcl/Tk has long provided but which is missing in other systems). As well as its defaults, Ntext permits the developer to define their own classes of characters, or to revert to the classic Text defini- tions, or to specify their own regexp matching patterns. EXAMPLE
To use Ntext with Tcl/Tk's usual word-boundary detection rules: package require ntext text .t bindtags .t {.t Ntext . all} set ::ntext::classicWordBreak 1 ::ntext::initializeMatchPatterns See bindtags for more information. To define a different set of word-boundary detection rules: package require ntext text .t bindtags .t {.t Ntext . all} ::ntext::createMatchPatterns {[[:space:][:cntrl:]]} {[[:punct:]]} {[^[:punct:][:space:][:cntrl:]]} See regexp, re_syntax for more information. SEE ALSO
bindtags, ntext, re_syntax, regexp, text KEYWORDS
bindtags, re_syntax, regexp, text ntext 0.81 ntextWordBreak(3tk)
All times are GMT -4. The time now is 10:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy