annotate etc/sparcworks/SW.Editor.xpm @ 844:047d37eb70d7

[xemacs-hg @ 2002-05-16 13:30:23 by ben] ui fixes for things that were bothering me bytecode.c, editfns.c, lisp.h, lread.c: Fix save-restriction to use markers rather than pseudo-markers (integers representing the amount of text on either side of the region). That way, all inserts are handled correctly, not just those inside old restriction. Add buffer argument to save_restriction_save(). process.c: Clean up very dirty and kludgy code that outputs into a buffer -- use proper unwind protects, etc. font-lock.c: Do save-restriction/widen around the function -- otherwise, incorrect results will ensue when a buffer has been narrowed before a call to e.g. `buffer-syntactic-context' -- something that happens quite often. fileio.c: Look for a handler for make-temp-name. window.c, winslots.h: Try to solve this annoying problem: have two frames displaying the buffer, in different places; in one, temporarily switch away to another buffer and then back -- and you've lost your position; it's reset to the other one in the other frame. My current solution involves window-level caches of buffers and points (also a cache for window-start); when set-window-buffer is called, it looks to see if the buffer was previously visited in the window, and if so, uses the most recent point at that time. (It's a marker, so it handles changes.) #### Note: It could be argued that doing it on the frame level would be better -- e.g. if you visit a buffer temporarily through a grep, and then go back to that buffer, you presumably want the grep's position rather than some previous position provided everything was in the same frame, even though the grep was in another window in the frame. However, doing it on the frame level fails when you have two windows on the same frame. Perhaps we keep both a window and a frame cache, and use the frame cache if there are no other windows on the frame showing the buffer, else the window's cache? This is probably something to be configurable using a specifier. Suggestions please please please? window.c: Clean up a bit code that deals with the annoyance of window-point vs. point. dialog.el: Function to ask a multiple-choice question, automatically choosing a dialog box or minibuffer representation as necessary. Generalized version of yes-or-no-p, y-or-n-p. files.el: Use get-user-response to ask "yes/no/diff" question when recovering. "diff" means that a diff is displayed between the current file and the autosave. (Converts/deconverts escape-quoted as necessary. No more complaints from you, Mr. Turnbull!) One known problem: when a dialog is used, it's modal, so you can't scroll the diff. Will fix soon. lisp-mode.el: If we're filling a string, don't treat semicolon as a comment, which would give very unfriendly results. Uses `buffer-syntactic-context'. simple.el: all changes back to the beginning. (Useful if you've saved the file in the middle of the changes.) simple.el: Add option kill-word-into-kill-ring, which controls whether words deleted with kill-word, backward-kill-word, etc. are "cut" into the kill ring, or "cleared" into nothingness. (My preference is the latter, by far. I'd almost go so far as suggesting we make it the default, as you can always select a word and then cut it if you want it cut.) menubar-items.el: Add option corresponding to kill-word-into-kill-ring.
author ben
date Thu, 16 May 2002 13:30:58 +0000
parents 376386a54a3c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 /* XPM */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 static char *noname[] = {
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 /* width height ncolors chars_per_pixel */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 "64 64 17 1",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 /* colors */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 "` c #ABABAB",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 "a c #C34C4C",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 "b c #DBB794",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 "c c #94DBB7",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 "d c #DBFFEE",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 "e c #A0A0A0",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 "f c #BAEADA",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 "g c #888888",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 "h c #7C7C7C",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 "i c #FFFFB7",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 "j c #DB9494",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 "k c #FFB7B7",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 "l c #FFFFFF",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 "m c #4C4C4C",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 "n c #F3F3F3",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 "o c #DBDBDB",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 "p c #CFCFCF",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 /* pixels */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 "mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 "mlllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllom",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 "mlnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnpm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 "mloooooooooooooooooooooooooooooooooooooooooooooooooooooooooooopm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 "mlllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllom",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 "mlnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnpm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 "mloooooooooooooooooooooooooooooooooooooooooooooooooooooooooooopm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 "mlllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllom",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 "mlnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnpm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 "mloooooooooooooooooooooooooooooooooooooooooooooooooooooooooooopm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 "mlllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllom",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 "mlnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnpm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 "mloooooooooooooooooooooooooooooooooooooooooooooooooooooooooooopm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 "mllllllllllllllll````````````````````````````````lllllllllllllom",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 "mlnnnnnnnnnnnnnnn`oooooooooooooooooooooooooooooolnnnnnnnnnnnnnpm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 "mlooooooooooooooo`oooooooooooooooooooooooooooooolooooooooooooopm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 "mllllllllllllllll`oooooooooooooooooooooooooooooollllllllllllllom",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 "mlnnnnnnnnnnnnnnn`ooooooooooooooooooooooommmoooolnnnnnnnnnnnnnpm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 "mlooooooooooooooo`ooogggggggggggggggoooomkkjmooolooooooooooooopm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 "mllllllllllllllll`oooglllllllllllllgmooomkkjmooollllllllllllllom",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 "mlnnnnnnnnnnnnnnn`oooglllllllllllllglmommkjmmooolnnnnnnnnnnnnnpm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 "mlooooooooooooooo`ooogllmmmlmmmllllgllmmimmmeeoolooooooooooooopm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 "mllllllllllllllll`oooglllllllllllllmmmmiiibmeeoollllllllllllllom",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 "mlnnnnnnnnnnnnnnn`ooogllmmmmmlllllllllmiibmeeooolnnnnnnnnnnnnnpm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 "mlooooooooooooooo`oooglllllllllllllllmiiibmeeooolooooooooooooopm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 "mllllllllllllllll`ooogllllmmmmmmmmlllmiibmeeoooollllllllllllllom",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 "mlnnnnnnnnnnnnnnn`ooogllllllllllllllmiiibmeeoooolnnnnnnnnnnnnnpm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 "mlooooooooooooooo`oooglllllllmmmmlmmmiibmeeooooolooooooooooooopm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 "mllllllllllllllll`ooogllllllllllllllmiibmeeooooollllllllllllllom",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 "mlnnnnnnnnnnnnnnn`oooglllmmmmlmmmmllmmimeeoooooolnnnnnnnnnnnnnpm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 "mlooooooooooooooo`oooglllllaaaaaaallmmmmeooooooolooooooooooooopm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 "mllllllllllllllll`oooglllaammmmmmmllmmemoooooooollllllllllllllom",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 "mlnnnnnnnnnnnnnnn`oooglllalllllllllameemoooooooolnnnnnnnnnnnnnpm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 "mlooooooooooooooo`oooglllaallmmmmmaahllmoooooooolooooooooooooopm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 "mllllllllllllllll`oooglllllaaaaaaalllllmoooooooollllllllllllllom",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 "mlnnnnnnnnnnnnnnn`ooogllllmmlmmmmmlllllmoooooooolnnnnnnnnnnnnnpm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 "mlooooooooooooooo`oooglllllllllllllllllmoooooooolooooooooooooopm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 "mllllllllllllllll`oooglllmmmlllllllllllmoooooooollllllllllllllom",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 "mlnnnnnnnnnnnnnnn`oooglllllllllllllllllmoooooooolnnnnnnnnnnnnnpm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 "mlooooooooooooooo`oooglllllllllllllllllmoooooooolooooooooooooopm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 "mllllllllllllllll`ooommmmmmmmmmmmmmmmmmmoooooooollllllllllllllom",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 "mlnnnnnnnnnnnnnnn`oooooooooooooooooooooooooooooolnnnnnnnnnnnnnpm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 "mlooooooooooooooo`oooooooooooooooooooooooooooooolooooooooooooopm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 "mllllllllllllllll`oooooooooooooooooooooooooooooollllllllllllllom",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 "mlnnnnnnnnnnnnnnn`lllllllllllllllllllllllllllllllnnnnnnnnnnnnnpm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 "mloooooooooooooooooooooooooooooooooooooooooooooooooooooooooooopm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 "mlllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllom",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 "mdffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 "mdffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 "mdffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 "mdffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 "mdffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76 "mdffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 "mdffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 "mdffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 "mdffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 "mdffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 "mdffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 "mdffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 "mdffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 "mdffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 "mdffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86 "mfcccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccm",
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 "mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 };