home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / gnu / emacs / help / 5309 < prev    next >
Encoding:
Text File  |  1993-01-09  |  3.3 KB  |  96 lines

  1. Newsgroups: gnu.emacs.help
  2. Path: sparky!uunet!stanford.edu!kronos.arc.nasa.gov!pluto.arc.nasa.gov!kpc
  3. From: kpc@pluto.arc.nasa.gov (k p c)
  4. Subject: IMPOSSIBLE hacks?  or just very hard to do?
  5. Message-ID: <KPC.93Jan9095536@zog.arc.nasa.gov>
  6. Originator: kpc@zog.arc.nasa.gov
  7. Lines: 79
  8. Sender: usenet@kronos.arc.nasa.gov (Will Edgington, wedgingt@ptolemy.arc.nasa.gov)
  9. Nntp-Posting-Host: zog.arc.nasa.gov
  10. Reply-To: kpc@ptolemy.arc.nasa.gov
  11. Organization: NASA Ames Research Center AI Research and Aero Branches;
  12.     Sterling.
  13. Date: Sat, 9 Jan 1993 17:53:28 GMT
  14.  
  15. here are some hacks that i've thought of as MUCH too hard (in elisp
  16. anyway).  but i'd love to have them!  are they even possible?
  17.  
  18. here's all 4:
  19.  
  20. 1.  sticky shift and control keys.
  21. 2.  word motion and word deletion to treat punctuation in a special way.
  22. 3.  mode line functions.
  23. 4.  counts and paren negation in regular expressions.
  24.  
  25. 1.
  26.  
  27. you know how you can use ESC instead of a meta key?  i'd LOVE to use a
  28. key (maybe ESC ESC) to do the same for a control key.  ESC ESC f would
  29. then be forward-word.  and ideally ESC ESC ESC f would be
  30. forward-sexp.  transparently.
  31.  
  32. this is nice for people with CTS and other RSI problems.  (i think
  33. xmodmap might work but i want emacs to do it so that terminals can do
  34. it also.)  (i'd put eval-expression somewhere else to be able to do
  35. ESC ESC.)  (pc-write can do stickiness.)
  36.  
  37. 2.
  38.  
  39. in the last paragraph there is the string "control key.  ESC ESC".
  40. i'd LOVE to have forward-word (M-f) and kill-word (M-d) and their
  41. backward equivalents think of sets of punctuation as just different
  42. kinds of words.  so i'd be able to do this (' indicates point):
  43.  
  44. (text)                    (motion)
  45.  
  46. '    control key.  ESC ESC        M-f
  47.     'control key.  ESC ESC        M-f
  48.     control 'key.  ESC ESC        M-f
  49.     control key'.  ESC ESC        M-f
  50.     control key.  'ESC ESC        M-f
  51.     control key.  ESC 'ESC        M-f
  52.     control key.  ESC ESC'        M-f
  53.     control key.  ESC 'ESC        M-b
  54.     control key.  'ESC ESC        M-b
  55.     control key'.  ESC ESC        M-b
  56.     control 'key.  ESC ESC
  57.  
  58. (text)                    (deletion)
  59.  
  60. '    control key.  ESC ESC        M-d
  61. 'control key.  ESC ESC            C-a TAB
  62.     'control key.  ESC ESC        M-f
  63.     control 'key.  ESC ESC        M-d
  64.     control '.  ESC ESC        M-d
  65.     control 'ESC ESC        M-d
  66.     control 'ESC            M-d
  67.     control '            M-TAB
  68.     '                M-TAB
  69.     (point at end of previous line, having deleted TAB and newline)
  70.  
  71. 3.
  72.  
  73. i'd like to be able to do arbitrary things to the mode line on
  74. redisplay.  like printing the value of the variable major-mode after
  75. deleting the substring "-mode".  and like putting the
  76. file-name-nondirectory of the default directory right-justified after
  77. the %- string, if there is enough space.
  78.  
  79. 4.
  80.  
  81. i'd like to be able to do things with parenthesized groupings in a
  82. regexp.  like saying "\\(^redisplay.*\\) like" to a reverse regexp
  83. search from here to have it skip over the second line in the above
  84. paragraph.  also i'd like to be able to use ?  and * and + the way
  85. they work on characters.  finally, i'd like to be able to say
  86. "\\(redisplay\\){2,4}" so that 2 to 4 occurrences are to be matched.
  87.  
  88. (p.s.  why do (, ), and | have to be quoted with \, but *, ?, and .
  89. not so?)
  90.  
  91. are these impossible?  thanks for ALL answers, comments, fixes, code,
  92. and ideas!  email is preferred.  these hacks (if they are possible)
  93. would make emacs a MUCH more enjoyable experience!
  94. -- 
  95. i'm open to comparing research career notes with other cogsci/cogneuro people.
  96.