diff options
| author | Karoly Lorentey | 2004-02-24 22:48:10 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2004-02-24 22:48:10 +0000 |
| commit | e39e96544557e39200234f3f855f6567f9ea6bff (patch) | |
| tree | bb2802ee28d62c72d61f46f88d089d268809a120 /src | |
| parent | 1cbfd764118c2fed03fc96fe6b9aad3555270c96 (diff) | |
| parent | 92f5fba2d661eb84fa67e0190cd617aa57f51f34 (diff) | |
| download | emacs-e39e96544557e39200234f3f855f6567f9ea6bff.tar.gz emacs-e39e96544557e39200234f3f855f6567f9ea6bff.zip | |
Merged in changes from CVS HEAD
Patches applied:
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-108
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-109
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-110
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-111
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-112
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-94
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 23 | ||||
| -rw-r--r-- | src/abbrev.c | 3 | ||||
| -rw-r--r-- | src/emacs.c | 121 | ||||
| -rw-r--r-- | src/w32term.c | 46 |
4 files changed, 118 insertions, 75 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index a25239d88a3..1a2f7f4e20b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,26 @@ | |||
| 1 | 2004-02-23 Luc Teirlinck <teirllm@auburn.edu> | ||
| 2 | |||
| 3 | * abbrev.c (Finsert_abbrev_table_description): Doc fix. | ||
| 4 | |||
| 5 | 2004-02-22 Jason Rumney <jasonr@gnu.org> | ||
| 6 | |||
| 7 | * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps | ||
| 8 | correctly over other bitmaps. | ||
| 9 | |||
| 10 | 2004-02-21 Eli Zaretskii <eliz@elta.co.il> | ||
| 11 | |||
| 12 | * emacs.c (USAGE1): Split into two halves. | ||
| 13 | (USAGE2): Second half of the old USAGE1. | ||
| 14 | (USAGE3): Renamed from USAGE2. | ||
| 15 | (USAGE4): Renamed from USAGE3. | ||
| 16 | |||
| 17 | 2004-02-21 Juri Linkov <juri@jurta.org> | ||
| 18 | |||
| 19 | * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2. | ||
| 20 | Fix --multibyte. Move --help, --version to USAGE2. Add alias | ||
| 21 | --file. Fix -f, -l. Sort options. Untabify. | ||
| 22 | (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify. | ||
| 23 | |||
| 1 | 2004-02-19 Luc Teirlinck <teirllm@auburn.edu> | 24 | 2004-02-19 Luc Teirlinck <teirllm@auburn.edu> |
| 2 | 25 | ||
| 3 | * category.c (Fdefine_category, Fcategory_docstring) | 26 | * category.c (Fdefine_category, Fcategory_docstring) |
diff --git a/src/abbrev.c b/src/abbrev.c index 1cf06946631..41e329ac95d 100644 --- a/src/abbrev.c +++ b/src/abbrev.c | |||
| @@ -540,7 +540,8 @@ is inserted. Otherwise the description is an expression, | |||
| 540 | a call to `define-abbrev-table', which would | 540 | a call to `define-abbrev-table', which would |
| 541 | define the abbrev table NAME exactly as it is currently defined. | 541 | define the abbrev table NAME exactly as it is currently defined. |
| 542 | 542 | ||
| 543 | Abbrevs marked as "system abbrevs" are omitted. */) | 543 | Abbrevs marked as "system abbrevs" are normally omitted. However, if |
| 544 | READABLE is non-nil, they are listed. */) | ||
| 544 | (name, readable) | 545 | (name, readable) |
| 545 | Lisp_Object name, readable; | 546 | Lisp_Object name, readable; |
| 546 | { | 547 | { |
diff --git a/src/emacs.c b/src/emacs.c index 20c6295e2e2..96fd323c42a 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -221,6 +221,8 @@ int initial_argc; | |||
| 221 | static void sort_args (); | 221 | static void sort_args (); |
| 222 | void syms_of_emacs (); | 222 | void syms_of_emacs (); |
| 223 | 223 | ||
| 224 | /* MSVC needs each string be shorter than 2048 bytes, so the usage | ||
| 225 | strings below are split to not overflow this limit. */ | ||
| 224 | #define USAGE1 "\ | 226 | #define USAGE1 "\ |
| 225 | Usage: %s [OPTION-OR-FILENAME]...\n\ | 227 | Usage: %s [OPTION-OR-FILENAME]...\n\ |
| 226 | \n\ | 228 | \n\ |
| @@ -233,66 +235,71 @@ read the main documentation for these command-line arguments.\n\ | |||
| 233 | \n\ | 235 | \n\ |
| 234 | Initialization options:\n\ | 236 | Initialization options:\n\ |
| 235 | \n\ | 237 | \n\ |
| 236 | --batch do not do interactive display; implies -q\n\ | 238 | --batch do not do interactive display; implies -q\n\ |
| 237 | --script FILE run FILE as an Emacs Lisp script.\n\ | 239 | --debug-init enable Emacs Lisp debugger for init file\n\ |
| 238 | --debug-init enable Emacs Lisp debugger during init file\n\ | 240 | --display, -d DISPLAY use X server DISPLAY\n\ |
| 239 | --help display this help message and exit\n\ | 241 | --multibyte, --no-unibyte inhibit the effect of EMACS_UNIBYTE\n\ |
| 240 | --multibyte, --no-unibyte run Emacs in multibyte mode\n\ | 242 | --no-desktop do not load a saved desktop\n\ |
| 241 | --no-init-file, -q load neither ~/.emacs nor default.el\n\ | 243 | --no-init-file, -q load neither ~/.emacs nor default.el\n\ |
| 242 | --no-shared-memory, -nl do not use shared memory\n\ | 244 | --no-shared-memory, -nl do not use shared memory\n\ |
| 243 | --no-site-file do not load site-start.el\n\ | 245 | --no-site-file do not load site-start.el\n\ |
| 244 | --no-splash do not display a splash screen on startup\n\ | 246 | --no-splash do not display a splash screen on startup\n\ |
| 245 | --no-window-system, -nw don't communicate with X, ignoring $DISPLAY\n\ | 247 | --no-window-system, -nw don't communicate with X, ignoring $DISPLAY\n\ |
| 246 | --terminal, -t DEVICE use DEVICE for terminal I/O\n\ | 248 | --script FILE run FILE as an Emacs Lisp script\n\ |
| 249 | --terminal, -t DEVICE use DEVICE for terminal I/O\n\ | ||
| 247 | --unibyte, --no-multibyte run Emacs in unibyte mode\n\ | 250 | --unibyte, --no-multibyte run Emacs in unibyte mode\n\ |
| 248 | --user, -u USER load ~USER/.emacs instead of your own\n\ | 251 | --user, -u USER load ~USER/.emacs instead of your own\n\ |
| 249 | --version display version information and exit\n\ | 252 | \n%s" |
| 250 | \n\ | 253 | |
| 254 | #define USAGE2 "\ | ||
| 251 | Action options:\n\ | 255 | Action options:\n\ |
| 252 | \n\ | 256 | \n\ |
| 253 | FILE visit FILE using find-file\n\ | 257 | FILE visit FILE using find-file\n\ |
| 254 | +LINE FILE visit FILE using find-file, then go to line LINE\n\ | 258 | +LINE FILE visit FILE using find-file, then go to line LINE\n\ |
| 255 | +LINE:COLUMN FILE visit FILE using find-file, then go to line LINE,\n\ | 259 | +LINE:COLUMN FILE visit FILE using find-file, then go to line LINE,\n\ |
| 256 | column COLUMN\n\ | 260 | column COLUMN\n\ |
| 257 | --directory, -L DIR add DIR to variable load-path\n\ | 261 | --directory, -L DIR add DIR to variable load-path\n\ |
| 258 | --eval EXPR evaluate Emacs Lisp expression EXPR\n\ | 262 | --eval EXPR evaluate Emacs Lisp expression EXPR\n\ |
| 259 | --execute EXPR evaluate Emacs Lisp expression EXPR\n\ | 263 | --execute EXPR evaluate Emacs Lisp expression EXPR\n\ |
| 260 | --find-file FILE visit FILE\n\ | 264 | --file FILE visit FILE using find-file\n\ |
| 261 | --funcall, -f FUNC call Emacs function FUNC with no arguments\n\ | 265 | --find-file FILE visit FILE using find-file\n\ |
| 262 | --insert FILE insert contents of FILE into current buffer\n\ | 266 | --funcall, -f FUNC call Emacs Lisp function FUNC with no arguments\n\ |
| 263 | --kill exit without asking for confirmation\n\ | 267 | --insert FILE insert contents of FILE into current buffer\n\ |
| 264 | --load, -l FILE load FILE of Emacs Lisp code using the load function\n\ | 268 | --kill exit without asking for confirmation\n\ |
| 265 | --visit FILE visit FILE\n\ | 269 | --load, -l FILE load Emacs Lisp FILE using the load function\n\ |
| 270 | --visit FILE visit FILE using find-file\n\ | ||
| 266 | \n" | 271 | \n" |
| 267 | 272 | ||
| 268 | #define USAGE2 "\ | 273 | #define USAGE3 "\ |
| 269 | Display options:\n\ | 274 | Display options:\n\ |
| 270 | \n\ | 275 | \n\ |
| 271 | --background-color, -bg COLOR window background color\n\ | 276 | --background-color, -bg COLOR window background color\n\ |
| 272 | --border-color, -bd COLOR main border color\n\ | 277 | --border-color, -bd COLOR main border color\n\ |
| 273 | --border-width, -bw WIDTH width of main border\n\ | 278 | --border-width, -bw WIDTH width of main border\n\ |
| 274 | --color=MODE color mode for character terminals;\n\ | 279 | --color MODE color mode for character terminals;\n\ |
| 275 | MODE defaults to `auto', and can also\n\ | 280 | MODE defaults to `auto', and can also\n\ |
| 276 | be `never', `auto', `always',\n\ | 281 | be `never', `auto', `always',\n\ |
| 277 | or a mode name like `ansi8'\n\ | 282 | or a mode name like `ansi8'\n\ |
| 278 | --cursor-color, -cr COLOR color of the Emacs cursor indicating point\n\ | 283 | --cursor-color, -cr COLOR color of the Emacs cursor indicating point\n\ |
| 279 | --display, -d DISPLAY use X server DISPLAY\n\ | 284 | --font, -fn FONT default font; must be fixed-width\n\ |
| 280 | --font, -fn FONT default font; must be fixed-width\n\ | 285 | --foreground-color, -fg COLOR window foreground color\n\ |
| 281 | --foreground-color, -fg COLOR window foreground color\n\ | 286 | --fullheight, -fh make the first frame high as the screen\n\ |
| 282 | --fullscreen, -fs make first frame fullscreen\n\ | 287 | --fullscreen, -fs make first frame fullscreen\n\ |
| 283 | --fullwidth, -fw make the first frame wide as the screen\n\ | 288 | --fullwidth, -fw make the first frame wide as the screen\n\ |
| 284 | --fullheight, -fh make the first frame high as the screen\n\ | 289 | --geometry, -g GEOMETRY window geometry\n\ |
| 285 | --geometry, -g GEOMETRY window geometry\n\ | 290 | --horizontal-scroll-bars, -hb enable horizontal scroll bars\n\ |
| 286 | --iconic start Emacs in iconified state\n\ | 291 | --icon-type, -i use picture of gnu for Emacs icon\n\ |
| 287 | --icon-type, -i use picture of gnu for Emacs icon\n\ | 292 | --iconic start Emacs in iconified state\n\ |
| 288 | --internal-border, -ib WIDTH width between text and main border\n\ | 293 | --internal-border, -ib WIDTH width between text and main border\n\ |
| 289 | --line-spacing, -lsp PIXELS additional space to put between lines\n\ | 294 | --line-spacing, -lsp PIXELS additional space to put between lines\n\ |
| 290 | --mouse-color, -ms COLOR mouse cursor color in Emacs window\n\ | 295 | --mouse-color, -ms COLOR mouse cursor color in Emacs window\n\ |
| 291 | --name NAME title of main Emacs window\n\ | 296 | --name NAME title for initial Emacs frame\n\ |
| 292 | --reverse-video, -r, -rv switch foreground and background\n\ | 297 | --reverse-video, -r, -rv switch foreground and background\n\ |
| 293 | --title, -T, -wn TITLE title for Emacs windows\n\ | 298 | --title, -T TITLE title for initial Emacs frame\n\ |
| 294 | --vertical-scroll-bars, -vb enable vertical scroll bars\n\ | 299 | --vertical-scroll-bars, -vb enable vertical scroll bars\n\ |
| 295 | --xrm XRESOURCES set additional X resources\n\ | 300 | --xrm XRESOURCES set additional X resources\n\ |
| 301 | --help display this help and exit\n\ | ||
| 302 | --version output version information and exit\n\ | ||
| 296 | \n\ | 303 | \n\ |
| 297 | You can generally also specify long option names with a single -; for\n\ | 304 | You can generally also specify long option names with a single -; for\n\ |
| 298 | example, -batch as well as --batch. You can use any unambiguous\n\ | 305 | example, -batch as well as --batch. You can use any unambiguous\n\ |
| @@ -302,7 +309,7 @@ Various environment variables and window system resources also affect\n\ | |||
| 302 | Emacs' operation. See the main documentation.\n\ | 309 | Emacs' operation. See the main documentation.\n\ |
| 303 | \n" | 310 | \n" |
| 304 | 311 | ||
| 305 | #define USAGE3 "\ | 312 | #define USAGE4 "\ |
| 306 | Report bugs to %s. First, please see the Bugs\n\ | 313 | Report bugs to %s. First, please see the Bugs\n\ |
| 307 | section of the Emacs manual or the file BUGS.\n" | 314 | section of the Emacs manual or the file BUGS.\n" |
| 308 | 315 | ||
| @@ -1062,9 +1069,9 @@ main (argc, argv | |||
| 1062 | /* Handle the --help option, which gives a usage message. */ | 1069 | /* Handle the --help option, which gives a usage message. */ |
| 1063 | if (argmatch (argv, argc, "-help", "--help", 3, NULL, &skip_args)) | 1070 | if (argmatch (argv, argc, "-help", "--help", 3, NULL, &skip_args)) |
| 1064 | { | 1071 | { |
| 1065 | printf (USAGE1, argv[0]); | 1072 | printf (USAGE1, argv[0], USAGE2); |
| 1066 | printf (USAGE2); | 1073 | printf (USAGE3); |
| 1067 | printf (USAGE3, bug_reporting_address ()); | 1074 | printf (USAGE4, bug_reporting_address ()); |
| 1068 | exit (0); | 1075 | exit (0); |
| 1069 | } | 1076 | } |
| 1070 | 1077 | ||
diff --git a/src/w32term.c b/src/w32term.c index 82db82826e8..92d508691cd 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -715,29 +715,41 @@ w32_draw_fringe_bitmap (w, row, p) | |||
| 715 | SaveDC (hdc); | 715 | SaveDC (hdc); |
| 716 | 716 | ||
| 717 | horig_obj = SelectObject (compat_hdc, pixmap); | 717 | horig_obj = SelectObject (compat_hdc, pixmap); |
| 718 | SetTextColor (hdc, face->background); | ||
| 719 | SetBkColor (hdc, p->cursor_p | ||
| 720 | ? (p->overlay_p ? face->background | ||
| 721 | : f->output_data.w32->cursor_pixel) | ||
| 722 | : face->foreground); | ||
| 723 | 718 | ||
| 724 | /* Paint overlays transparently. */ | 719 | /* Paint overlays transparently. */ |
| 725 | if (p->overlay_p) | 720 | if (p->overlay_p) |
| 726 | { | 721 | { |
| 727 | BitBlt (hdc, p->x, p->y, p->wd, p->h, | 722 | HBRUSH h_brush, h_orig_brush; |
| 728 | compat_hdc, 0, p->dh, | 723 | |
| 729 | DSTINVERT); | 724 | SetTextColor (hdc, BLACK_PIX_DEFAULT (f)); |
| 730 | BitBlt (hdc, p->x, p->y, p->wd, p->h, | 725 | SetBkColor (hdc, WHITE_PIX_DEFAULT (f)); |
| 731 | compat_hdc, 0, p->dh, | 726 | h_brush = CreateSolidBrush (face->foreground); |
| 732 | MERGEPAINT); | 727 | h_orig_brush = SelectObject (hdc, h_brush); |
| 733 | BitBlt (hdc, p->x, p->y, p->wd, p->h, | 728 | |
| 734 | compat_hdc, 0, p->dh, | 729 | BitBlt (hdc, p->x, p->y, p->wd, p->h, |
| 735 | DSTINVERT); | 730 | compat_hdc, 0, p->dh, |
| 731 | DSTINVERT); | ||
| 732 | BitBlt (hdc, p->x, p->y, p->wd, p->h, | ||
| 733 | compat_hdc, 0, p->dh, | ||
| 734 | 0x2E064A); | ||
| 735 | BitBlt (hdc, p->x, p->y, p->wd, p->h, | ||
| 736 | compat_hdc, 0, p->dh, | ||
| 737 | DSTINVERT); | ||
| 738 | |||
| 739 | SelectObject (hdc, h_orig_brush); | ||
| 740 | DeleteObject (h_brush); | ||
| 736 | } | 741 | } |
| 737 | else | 742 | else |
| 738 | BitBlt (hdc, p->x, p->y, p->wd, p->h, | 743 | { |
| 739 | compat_hdc, 0, p->dh, | 744 | SetTextColor (hdc, face->background); |
| 740 | SRCCOPY); | 745 | SetBkColor (hdc, (p->cursor_p |
| 746 | ? f->output_data.w32->cursor_pixel | ||
| 747 | : face->foreground)); | ||
| 748 | |||
| 749 | BitBlt (hdc, p->x, p->y, p->wd, p->h, | ||
| 750 | compat_hdc, 0, p->dh, | ||
| 751 | SRCCOPY); | ||
| 752 | } | ||
| 741 | 753 | ||
| 742 | SelectObject (compat_hdc, horig_obj); | 754 | SelectObject (compat_hdc, horig_obj); |
| 743 | DeleteDC (compat_hdc); | 755 | DeleteDC (compat_hdc); |