aboutsummaryrefslogtreecommitdiffstats
path: root/src/cm.h
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright notices for 2013.Paul Eggert2013-01-011-1/+1
|
* Add 2012 to FSF copyright years for Emacs filesGlenn Morris2012-01-051-1/+1
|
* Spelling fixes.Paul Eggert2011-12-041-2/+2
|
* Spelling fixes.Paul Eggert2011-11-241-1/+1
|
* Make tparam.h and terminfo.c consistent.Paul Eggert2011-03-191-2/+0
| | | | | | | | | | | | | * cm.c (tputs, tgoto, BC, UP): Remove extern decls. Include tparam.h instead, since it declares them. * cm.h (PC): Remove extern decl; tparam.h now does this. * deps.mk (cm.o, terminfo.o): Depend on tparam.h. * terminfo.c: Include tparam.h, to check interfaces. (tparm): Make 1st arg a const pointer in decl. Put it at top level. (tparam): Adjust signature to match interface in tparam.h; this removes some undefined behavior. Check that outstring and len are zero, which they always are with Emacs. * tparam.h (PC, BC, UP): New extern decls.
* * cm.c (calccost, cmgoto): Use const pointers where appropriate.Paul Eggert2011-03-081-17/+16
| | | | | | | | | | | * cm.h (struct cm): Likewise. * dispextern.h (do_line_insertion_deletion_costs): Likewise. * scroll.c (ins_del_costs, do_line_insertion_deletion_costs): Likewise. * term.c (tty_ins_del_lines, calculate_costs, struct fkey_table): (term_get_fkeys_1, append_glyphless_glyph, produce_glyphless_glyph): (turn_on_face, init_tty): Likewise. * termchar.h (struct tty_display_info): Likewise. * term.c (tgetflag, tgetnum, tgetstr): Redefine to use const pointers.
* Convert consecutive FSF copyright years to ranges.Glenn Morris2011-01-241-2/+1
|
* Nuke arch-tags.Glenn Morris2011-01-151-2/+0
|
* Merge from emacs-23Stefan Monnier2011-01-141-1/+1
|\
| * Add 2011 to FSF/AIST copyright years.Glenn Morris2011-01-021-1/+1
| |
* | Fix prototypes.Juanma Barranquero2010-07-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | * src/cm.c (evalcost): Fix arg type. * src/cm.h (evalcost): Fix prototype. * src/lisp.h (memory_warnings): Fix prototype. * lib-src/ebrowse.c (match_qualified_namespace_alias): Pass sym* to find_namespace, not link*. * lib-src/emacsclient.c (send_to_emacs, quote_argument): Arg s is HSOCKET. * lib-src/sorted-doc.c (qsort_compare): New typedef. (main): Use it to cast cmpdoc.
* | Convert some prototypes to standard C.Dan Nicolaescu2010-07-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | * lib-src/make-docfile.c (xmalloc, xrealloc, concat, readline, fatal): * lib-src/b2m.c (scan_file, scan_lisp_file, scan_c_file): Convert to standard C prototypes. * src/term.c (term_clear_mouse_face, Fidentity): * src/syssignal.h (signal_handler_t): * src/lisp.h (memory_warnings): * src/coding.h (preferred_coding_system): * src/cm.h (evalcost): * src/blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
* | Remove P_ and __P macros.Jan D2010-07-021-6/+6
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lwlib/lwlib-Xaw.h: Remove P_ and __P macros. * lwlib/lwlib-Xlw.h: * lwlib/lwlib-Xm.h: * lwlib/lwlib-int.h: * lwlib/lwlib-utils.h: * lwlib/lwlib.h: Likewise. * src/buffer.h: Remove P_ and __P macros. * src/category.h: * src/ccl.h: * src/character.h: * src/charset.h: * src/cm.h: * src/coding.h: * src/composite.h: * src/dispextern.h: * src/disptab.h: * src/font.h: * src/fontset.h: * src/frame.h: * src/gtkutil.h: * src/indent.h: * src/intervals.h: * src/keyboard.h: * src/keymap.h: * src/lisp.h: * src/macros.h: * src/md5.h: * src/menu.h: * src/msdos.h: * src/nsterm.h: * src/puresize.h: * src/region-cache.h: * src/syntax.h: * src/syssignal.h: * src/systime.h: * src/termhooks.h: * src/w32term.h: * src/widget.h: * src/window.h: * src/xgselect.h: * src/xsettings.h: * src/xterm.h: Likewise.
* Add 2010 to copyright years.Glenn Morris2010-01-131-1/+1
|
* Add 2009 to copyright years.Glenn Morris2009-01-081-1/+1
|
* Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-151-6/+4
|
* Merge from emacs--rel--22Miles Bader2008-01-081-1/+1
|\ | | | | | | Revision: [email protected]/emacs--devo--0--patch-987
| * Add 2008 to copyright years.Glenn Morris2008-01-081-1/+1
| |
* | Merge from emacs--devo--0Miles Bader2007-07-311-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * emacs--devo--0 (patch 824-838) - Update from CVS - Merge from emacs--rel--22 - Remove lisp/erc/erc-nicklist.el - Update some .arch-inventory files - Fix void function definition error in cus-edit.el - Restore lisp/emacs-lisp/cl-loaddefs.el * emacs--rel--22 (patch 70-83) - Update from CVS - Remove lisp/erc/erc-nicklist.el - Update some .arch-inventory files - Indicate that emacs--devo--0--patch-834 does not need to be applied - Merge from gnus--rel--5.10 - Restore lisp/emacs-lisp/cl-loaddefs.el * gnus--rel--5.10 (patch 239-241) - Merge from emacs--devo--0 - Update from CVS Revision: [email protected]/emacs--multi-tty--0--patch-28
| * Switch license to GPLv3 or later.Glenn Morris2007-07-251-1/+1
| |
* | Merged from [email protected]Karoly Lorentey2007-01-291-2/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * [email protected]/emacs--devo--0--patch-599 Merge from erc--main--0 * [email protected]/emacs--devo--0--patch-600 Merge from erc--main--0 * [email protected]/emacs--devo--0--patch-601 Update from CVS * [email protected]/emacs--devo--0--patch-602 Update from CVS * [email protected]/emacs--devo--0--patch-603 Update from CVS * [email protected]/emacs--devo--0--patch-604 Merge from gnus--rel--5.10 * [email protected]/emacs--devo--0--patch-605 Update from CVS * [email protected]/emacs--devo--0--patch-606 Merge from gnus--rel--5.10 * [email protected]/emacs--devo--0--patch-607 Update from CVS * [email protected]/emacs--devo--0--patch-608 Update from CVS * [email protected]/emacs--devo--0--patch-609 Update from CVS * [email protected]/emacs--devo--0--patch-610 Update from CVS * [email protected]/emacs--devo--0--patch-611 Update from CVS * [email protected]/emacs--devo--0--patch-612 Merge from gnus--rel--5.10 * [email protected]/emacs--devo--0--patch-613 Update from CVS * [email protected]/emacs--devo--0--patch-614 Make byte compiler correctly write circular constants * [email protected]/emacs--devo--0--patch-615 Update from CVS * [email protected]/emacs--devo--0--patch-616 Update from CVS * [email protected]/emacs--devo--0--patch-617 Update from CVS * [email protected]/emacs--devo--0--patch-618 Update from CVS * [email protected]/gnus--rel--5.10--patch-192 Merge from emacs--devo--0 * [email protected]/gnus--rel--5.10--patch-193 Update from CVS * [email protected]/gnus--rel--5.10--patch-194 Merge from emacs--devo--0 * [email protected]/gnus--rel--5.10--patch-195 Update from CVS * [email protected]/gnus--rel--5.10--patch-196 Update from CVS git-archimport-id: [email protected]/emacs--multi-tty--0--patch-594
| * Update copyright for years from Emacs 21 to present (mainly addingGlenn Morris2007-01-141-2/+2
| | | | | | | | 2001).
* | Merged from [email protected]Karoly Lorentey2006-02-121-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * [email protected]/emacs--devo--0--patch-49 Update from CVS * [email protected]/emacs--devo--0--patch-50 Update from CVS * [email protected]/emacs--devo--0--patch-51 Make constrain-to-field notice overlays * [email protected]/emacs--devo--0--patch-52 Update from CVS * [email protected]/emacs--devo--0--patch-53 Update from CVS * [email protected]/emacs--devo--0--patch-54 Update from CVS * [email protected]/emacs--devo--0--patch-55 Merge from erc--emacs--0 * [email protected]/emacs--devo--0--patch-56 Update from CVS * [email protected]/emacs--devo--0--patch-57 Merge from gnus--rel--5.10 * [email protected]/emacs--devo--0--patch-58 Update from CVS * [email protected]/emacs--devo--0--patch-59 Update from CVS * [email protected]/emacs--devo--0--patch-60 Update from CVS * [email protected]/emacs--devo--0--patch-61 Update from CVS * [email protected]/emacs--devo--0--patch-62 Merge from gnus--rel--5.10 * [email protected]/emacs--devo--0--patch-63 Update from CVS * [email protected]/emacs--devo--0--patch-64 Update from CVS * [email protected]/emacs--devo--0--patch-65 Merge from gnus--rel--5.10 * [email protected]/emacs--devo--0--patch-66 Update from CVS * [email protected]/emacs--devo--0--patch-67 Update from CVS * [email protected]/emacs--devo--0--patch-68 Update from CVS * [email protected]/emacs--devo--0--patch-69 rcirc: Add flexible response formatting; Add nick abbrevs * [email protected]/emacs--devo--0--patch-70 Update from CVS * [email protected]/emacs--devo--0--patch-71 Merge from gnus--rel--5.10 * [email protected]/emacs--devo--0--patch-72 Update from CVS: man/dired.texi (Tumme): More tumme documentation. * [email protected]/gnus--rel--5.10--patch-18 Update from CVS * [email protected]/gnus--rel--5.10--patch-19 Update from CVS * [email protected]/gnus--rel--5.10--patch-20 Update from CVS * [email protected]/gnus--rel--5.10--patch-21 Merge from emacs--devo--0 * [email protected]/gnus--rel--5.10--patch-22 Update from CVS * [email protected]/gnus--rel--5.10--patch-23 Update from CVS * [email protected]/gnus--rel--5.10--patch-24 Update from CVS * [email protected]/gnus--rel--5.10--patch-25 Update from CVS * [email protected]/gnus--rel--5.10--patch-26 Merge from emacs--devo--0 * [email protected]/gnus--rel--5.10--patch-27 Update from CVS: lisp/gnus.el: Remove bogus comment. * [email protected]/gnus--rel--5.10--patch-28 Merge from emacs--devo--0 * [email protected]/gnus--rel--5.10--patch-29 Add sendmail.el and smptmail.el from Emacs tree to contrib/ git-archimport-id: [email protected]/emacs--multi-tty--0--patch-508
| * Update years in copyright notice; nfc.Thien-Thi Nguyen2006-02-061-1/+1
| |
* | Merged in changes from CVS trunk. Plus added lisp/term tweaks.Karoly Lorentey2005-09-041-1/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patches applied: * [email protected]/emacs--cvs-trunk--0--base-0 tag of [email protected]/emacs--cvs-trunk--0--patch-474 * [email protected]/emacs--cvs-trunk--0--patch-1 Add CVS metadata files. * [email protected]/emacs--cvs-trunk--0--patch-2 Update from CVS. git-archimport-id: [email protected]/emacs--multi-tty--0--patch-393
| * Update years in copyright notice; nfc.Thien-Thi Nguyen2005-08-071-1/+2
| |
* | Merged from [email protected] (patch 469)Karoly Lorentey2005-07-051-2/+2
|\| | | | | | | | | | | | | | | | | Patches applied: * [email protected]/emacs--cvs-trunk--0--patch-469 Update from CVS git-archimport-id: [email protected]/emacs--multi-tty--0--patch-372
| * Update FSF's address.Lute Kamstra2005-07-041-2/+2
| |
* | Separate frame-local, tty-dependent parameters from tty-local parameters.Karoly Lorentey2004-01-011-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/termchar.h (struct tty_output): Redefined to contain frame-local tty-dependent parameters. (Currently there are no such parameters, so it consists of the tty_display_info pointer.) (struct tty_display_info): New structure, with reference_count. (FRAME_TTY): Updated to reflect new termcap frame structure. src/term.c: Update prototypes. Use tty_display_info instead of tty_output. src/cm.c (current_tty, cmcheckmagic, cmcostinit, calccost, cmgoto, Wcm_clear) (Wcm_init): Use tty_display_info instead of tty_output. src/cm.h: Update prototypes. src/dispextern.h: Ditto. src/dispnew.c (window_change_signal, init_display, make_terminal_frame): Use tty_display_info instead of tty_output. src/frame.c (Fdelete_frame): Use tty_display_info instead of tty_output. Fix delete_tty check. (make_terminal_frame): Allocate f->output_data.tty. Increase reference count of tty device. (delete_frame): Free f->output_data.tty. Use reference count to decide if the tty should be closed. src/frame.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): New, unconditional definitions. (struct device): New declaration (at the moment, it is defined as empty in termhooks.h). (struct frame): Added display, background_pixel, foreground_pixel member. src/keyboard.c (read_avail_input): Use tty_display_info instead of tty_output. src/lisp.h: Declare struct display. Update prototypes. src/sysdep.c: Update prototypes. (discard_tty_input, init_all_sys_modes, init_sys_modes, reset_all_sys_modes) (reset_sys_modes, hft_init, hft_reset): Use tty_display_info instead of tty_output. git-archimport-id: [email protected]/emacs--multi-tty--0--patch-29
* | Trivial changesKaroly Lorentey2003-12-281-3/+3
| | | | | | | | git-archimport-id: [email protected]/emacs--multi-tty--0--patch-18
* | Full support for multiple terminal I/O (with some rough edges).Karoly Lorentey2003-12-271-55/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lib-src/emacsclient.c (emacs_pid): New variable. (window_change): Forward the SIGWINCH signal to the Emacs process after copying the size parameters to the proxy terminal. (copy_from_to): New parameter (sigio), kill Emacs with SIGIO if it is nonzero. (main): Set emacs_pid. lisp/server.el (server-process-filter): Send the pid of Emacs to emacsclient. src/cm.c: Added tty parameters to all functions and all Wcm macro calls. src/cm.h: Added tty parameters to all macros. Updated function prototypes. (Wcm): Moved to struct tty_output. src/dispextern.h: Updated function prototypes. src/dispnew.c: Added tty parameters to all Wcm macro calls. (do_switch_frame): Make old frame obscured, not invisible, to solve problems with other-frame. (Wcm): Moved to struct tty_output. src/keyboard.c (read_avail_input): Select the frame corresponding to the tty that was read. Slight rearrangement of tty loop. src/lisp.h (tabs_safe_p): Removed duplicate prototype. src/sysdep.c (hft_init, hft_reset): Added tty_output parameter. (discard_tty_input): Discard input from all ttys on APOLLO, too. Whatever it is. (narrow_foreground_group, widen_foreground_group): Added tty parameter (not really useful, the functions only work on the controlling tty.) (tabs_safe_p): Added tty parameter. src/term.c Added tty parameters to all Wcm macro calls. Standardised updating_frame vs. selected frame and tty_output access. (term_init): Allocate Wcm. (syms_of_term): Provide the `multi-tty' feature. src/termchar.h (struct tty_output): Added Wcm. src/xdisp.c (try_window_id): Make sure we use the tty device corresponding to the current frame. git-archimport-id: [email protected]/emacs--multi-tty--0--patch-8
* | Implemented multiple tty support.Karoly Lorentey2003-12-251-3/+6
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | README.multi-tty: New file. src/termchar.h (struct terminal): Renamed to struct tty_output. Added name, type, input, output, termscript, old_tty, term_initted, old_tty_valid, background_pixel, foreground_pixel, next fields. (TERMINAL_*): Renamed to TTY_* for brevity. (CURRENT_TERMINAL): Renamed to CURTTY for brevity. (tty_list): New variable. (TERMINAL_PTR): Removed. (FRAME_TTY): New function. (TTY_NAME, TTY_TYPE): New macros. src/term.c (current_terminal): Removed. (_current_terminal): Removed. (tty_list): New variable. (OUTPUT, OUTPUT1, OUTPUTL, OUTPUT_IF, OUTPUT1_IF): Added tty parameter. (set_terminal_modes): Added tty parameter. (reset_terminal_modes): Added tty parameter. (cursor_to, raw_cursor_to): Updated cmgoto() calls. (clear_end_of_line, write_glyphs): Add indirection to terminal output, updated cmcheckmagic() calls. (get_named_tty): New function. (term_dummy_init): New function. (term_init): Added name parameter, added tty_output return value. Changed algorithm to update tty_list. Call init_sys_modes() to set up tty mode on the newly opened terminal device. (get_current_tty): New function, intended for debugging. src/termhooks.h (termscript): Removed. src/w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Removed redundant definition. src/macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Ditto. src/window.c (init_window_once): Call make_terminal_frame with two zero parameters. src/cm.h (emacs_tputs): New macro to set current_tty, and then call tputs(). (current_tty): New variable, for cmputc(). (cmcheckmagic, cmputc, cmgoto): Added prototypes. src/cm.c (current_tty): New variable, for cmputc(). (cmputc): Use it. (cmcheckmagic): Added tty parameter, look up terminal streams there. (calccost): Added tty parameter. Use emacs_tputs() instead of tputs(). (cmgoto): Added tty parameter. Pass it on to calccost(). Use emacs_tputs() instead of tputs(). src/dispextern.h (set_terminal_modes, reset_terminal_modes): Added tty parameter. (term_init): Added name parameter (the filename of the terminal device). Added return value (struct tty_output). src/dispnew.c: Replace CURTTY() with local variables throughout the file (where applicable). (termscript): Moved to struct tty_output. (terminal_type): Removed. src/emacs.c (main): Don't call init_sys_modes(), the new term_init() already does that during init_display(). (shut_down_emacs): Call reset_all_sys_modes() instead of reset_sys_modes(). src/frame.c (Qtty, Qtty_type): New variables. (syms_of_frame): Initialize them. (tty_display): Removed. (make_terminal_frame): New parameters (tty filename and type). Initialize output_data.tty field instead of output_data.x. Use term_init() to find the right tty_output. (Use term_dummy_init() during bootstrap.) (Fmake_terminal_frame): Get device filename and type from frame parameters. src/frame.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Do the right thing if the frame is a tty. (struct frame): New member in output_data: tty. (make_terminal_frame): Updated of prototype. src/keyboard.c (Fset_input_mode): Call reset_all_sys_modes(), not reset_sys_modes(). Ditto with init_sys_modes(). src/lisp.h (tty_output): Added forward declaration. (init_sys_modes, reset_sys_modes): Updated prototype. (init_all_sys_modes, reset_all_sys_modes): New prototypes. src/scroll.c: Replace CURTTY() with local variables throughout the file (where applicable). src/sysdep.c (old_tty, term_initted, old_tty_valid): Moved to struct tty_output.( (init_all_sys_modes): New function. (init_sys_modes): Added tty_output parameter. Use it. (reset_all_sys_modes): New function. (reset_sys_modes): Added tty_output parameter. Use it. src/Makefile.in: Update dependencies. git-archimport-id: [email protected]/emacs--multi-tty--0--patch-2
* Add arch taglinesMiles Bader2003-09-011-0/+3
|
* Remove unneeded declaration of ospeed.Dave Love1999-09-271-13/+0
|
* Update return types of declarations.Andreas Schwab1998-04-141-3/+3
|
* [HAVE_LIBNCURSES]: Declare ospeed as short, unless NCURSES_OSPEED_T.Richard M. Stallman1997-07-281-0/+4
|
* Fix previous change.Richard M. Stallman1997-07-151-1/+1
|
* (ospeed): Declare as short unless HAVE_TERMIOS_H and LINUX.Richard M. Stallman1997-07-071-2/+4
|
* (ospeed): Always use `extern' in the declaration.Richard M. Stallman1997-06-271-1/+1
|
* [HAVE_TERMIOS_H]: Include termios.h.Richard M. Stallman1996-09-101-0/+6
| | | | (ospeed) [HAVE_TERMIOS_H]: Use ospeed_t.
* Undo previous change.Karl Heuer1996-07-161-5/+0
|
* Test HAVE_TERMIOS rather than the automatically-generated HAVE_TERMIOS_H,Karl Heuer1996-07-161-1/+1
| | | | in case <termios.h> is present but unusable.
* [HAVE_TERMIOS_H]: Declare ospeed as speed_t.Karl Heuer1996-07-151-0/+5
|
* Update FSF's address in the preamble.Erik Naggum1996-01-151-1/+2
|
* Update GPL to version 2.Karl Heuer1995-06-151-1/+1
|
* Declare checkmagic.Karl Heuer1995-01-171-0/+1
|
* (cmputc): Return int rather than void.Richard M. Stallman1994-09-221-1/+1
|
* entered into RCSJim Blandy1992-07-141-3/+3
|
* Initial revisionJim Blandy1992-01-131-0/+169