home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / alt / lucidem / help / 859 < prev    next >
Encoding:
Text File  |  1993-01-09  |  3.4 KB  |  99 lines

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