aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH): RemoveAndreas Schwab2009-11-211-1/+1
| | | | | | | ignored second argument. All callers changed. * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR) (RE_STRING_CHAR_AND_LENGTH): Likewise. * xdisp.c (string_char_and_length): Likewise.
* * frame.c (make_initial_frame):Dan Nicolaescu2009-11-111-1/+1
| | | | | | * buffer.c (init_buffer_once): Use make_pure_c_string instead of build_string. * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
* Let integers use up 2 tags to give them one extra bit and double their range.Stefan Monnier2009-11-061-5/+5
| | | | | | | | | | | | | | | | | | | | | | * lisp.h (USE_2_TAGS_FOR_INTS): New macro. (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P): New macros. (enum Lisp_Type): Use them. Give explicit values. (Lisp_Type_Limit): Remove. (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]: (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK): Pay attention to USE_2_TAGS_FOR_INTS. (INTEGERP): Use LISP_INT_TAG_P. * fns.c (internal_equal): Simplify the default case. (sxhash): Use case_Lisp_Int. * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit any more. (Ftype_of): Use case_Lisp_Int. (store_symval_forwarding): Take into account the fact that Ints can now have more than one tag. * buffer.c (syms_of_buffer): Use LISP_INT_TAG. buffer_slot_type_mismatch): * xfaces.c (face_attr_equal_p): * print.c (print_object): * alloc.c (mark_maybe_object, mark_object, survives_gc_p): Use case_Lisp_Int.
* * xterm.c (syms_of_xterm):Dan Nicolaescu2009-11-061-29/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * xselect.c (syms_of_xselect): * xmenu.c (syms_of_xmenu): * xfns.c (syms_of_xfns): * xfaces.c (syms_of_xfaces): * xdisp.c (syms_of_xdisp): * window.c (syms_of_window): * w32fns.c (syms_of_w32fns): * undo.c (syms_of_undo): * textprop.c (syms_of_textprop): * terminal.c (syms_of_terminal): * syntax.c (syms_of_syntax): * sound.c (syms_of_sound): * search.c (syms_of_search): * print.c (syms_of_print): * minibuf.c (syms_of_minibuf): * macros.c (syms_of_macros): * keymap.c (syms_of_keymap, initial_define_key) (initial_define_lispy_key): * keyboard.c (syms_of_keyboard): * insdel.c (syms_of_insdel): * image.c (syms_of_image): * fringe.c (syms_of_fringe): * frame.c (syms_of_frame): * fontset.c (syms_of_fontset): * fns.c (syms_of_fns): * fns.c (syms_of_fns): * fileio.c (syms_of_fileio): * fileio.c (syms_of_fileio): * eval.c (syms_of_eval): * doc.c (syms_of_doc): * dispnew.c (syms_of_display): * dired.c (syms_of_dired): * dbusbind.c (syms_of_dbusbind): * data.c (syms_of_data): * composite.c (syms_of_composite): * coding.c (syms_of_coding): * cmds.c (syms_of_cmds): * charset.c (define_charset_internal, syms_of_character): * ccl.c (syms_of_ccl): * category.c (syms_of_category, init_category_once): * casetab.c (syms_of_casetab): * casefiddle.c (syms_of_casefiddle): * callint.c (syms_of_callint): * bytecode.c (syms_of_bytecode): * buffer.c (keys_of_buffer, syms_of_buffer): * alloc.c (syms_of_alloc): * process.c (syms_of_process, init_process): * lread.c (syms_of_lread, init_obarray): * font.c (build_style_table): * emacs.c (syms_of_emacs, main): Replace calls to intern with intern_c_string, calls to make_pure_string with make_pure_c_string. Use pure_cons instead of Fcons. * process.c (socket_options): Make it const. (set_socket_option, init_process): Use a const pointer. * lread.c (intern_c_string): New function. (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool) (defvar_int): Uset it. Make the name const char*. * font.c (struct table_entry): Remove unused member. Make NAMES constant. (weight_table, slant_table, width_table): Make constant. * emacs.c (struct standard_args): Make name and longname constant.
* * alloc.c: Do not define struct catchtag.Dan Nicolaescu2009-10-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * eval.c: Move struct catchtag definition ... * lisp.h: ... here. * image.c: Move png.h #include earlier to avoid warnings. * xterm.c: * xsmfns.c: * xselect.c: * xrdb.c: * xmenu.c: * xftfont.c: * xfont.c: * xfns.c: * xfaces.c: * xdisp.c: * window.c: * widget.c: * w32xfns.c: * w32uniscribe.c: * w32term.c: * w32select.c: * w32reg.c: * w32proc.c: * w32menu.c: * w32inevt.c: * w32heap.c: * w32font.c: * w32fns.c: * w32console.c: * w32.c: * w16select.c: * vm-limit.c: * unexsol.c: * unexec.c: * unexcw.c: * unexaix.c: * undo.c: * tparam.c: * textprop.c: * terminfo.c: * terminal.c: * termcap.c: * term.c: * syntax.c: * sound.c: * sheap.c: * search.c: * scroll.c: * region-cache.c: * regex.c: * ralloc.c: * process.c: * print.c: * msdos.c: * minibuf.c: * menu.c: * marker.c: * macros.c: * keymap.c: * keyboard.c: * intervals.c: * insdel.c: * indent.c: * gtkutil.c: * ftxfont.c: * ftfont.c: * fringe.c: * frame.c: * fontset.c: * font.c: * fns.c: * floatfns.c: * filelock.c: * fileio.c: * emacs.c: * editfns.c: * dosfns.c: * doprnt.c: * doc.c: * dispnew.c: * dired.c: * dbusbind.c: * data.c: * composite.c: * coding.c: * cmds.c: * cm.c: * chartab.c: * charset.c: * character.c: * ccl.c: * category.c: * casetab.c: * casefiddle.c: * callproc.c: * callint.c: * bytecode.c: * buffer.c: * atimer.c: Include setjmp.h. (Bug#4643) * xlwmenu.c: * lwlib.c: * lwlib-utils.c: * lwlib-Xm.c: * lwlib-Xlw.c: * lwlib-Xaw.c: Include setjmp.h.
* * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)Juanma Barranquero2009-10-171-1/+2
|
* (default-major-mode): Move most of the doc from here...Glenn Morris2009-09-021-10/+11
| | | | (major-mode): ... to here.
* * buffer.c (set_buffer_internal_1)Chong Yidong2009-08-151-14/+19
| | | | | (swap_out_buffer_local_variables): Check for unbound local variables (Bug#4138).
* * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.Richard M. Stallman2009-07-161-1/+6
| | | | | | (Fset_buffer_auto_saved): Handle save_length = -2. Comment changes in other files.
* (syms_of_buffer) <line-spacing>: Doc fix.Eli Zaretskii2009-04-141-1/+2
|
* Move comment to make clearer it's talking about buffer Vprin1_to_string_buffer.Juanma Barranquero2009-03-171-2/+1
|
* (Fswitch_to_buffer): Revert part of 2008-10-21's change.Stefan Monnier2009-03-101-3/+5
|
* Add 2009 to copyright years.Glenn Morris2009-01-081-1/+1
|
* (Fbuffer_swap_text): Use POINTER_TYPE.Jason Rumney2008-12-251-5/+5
|
* * ralloc.c (r_alloc_reset_variable): New function.Jason Rumney2008-12-241-0/+11
| | | | | * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal record of what points where.
* * buffer.c (init_buffer): Use realloc instead of xrealloc.Andreas Schwab2008-12-221-1/+3
| | | | * gtkutil.c (free_widget_value): Use xfree instead of free.
* (Fbuffer_swap_text): Signal error if swapping a dead buffer.Chong Yidong2008-12-091-0/+3
|
* (Fswitch_to_buffer): Reword and mention new optionMartin Rudalics2008-11-221-12/+16
| | | | confirm-nonexistent-file-or-buffer in doc-string.
* (Fbuffer_swap_text): Remove redundant marker manipulation.Stefan Monnier2008-11-211-6/+10
| | | | Fix copy/paste typo. Add checks.
* (syms_of_buffer): Fix doc-string of cursor-type.Martin Rudalics2008-11-161-2/+3
|
* (Fget_buffer_create): Rename arg to buffer_or_name. Reword doc-string.Martin Rudalics2008-10-231-19/+25
| | | | (Fbury_buffer): In doc-string say what happens to the buffer's window.
* (Fget_buffer, Fbury_buffer, switch_to_buffer_1):Martin Rudalics2008-10-211-129/+117
| | | | | | | | | | Rename arg "buffer" to "buffer_or_name". (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make it optional. (no_switch_window): Remove since the return value is not used. (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name". Consider window as dedicated when Fwindow_dedicated_p returns a non-nil value.
* (syms_of_buffer): Doc fix.Eli Zaretskii2008-10-151-2/+3
|
* (Fbuffer_swap_text): Reset window->point markers.Stefan Monnier2008-09-071-0/+20
|
* (syms_of_buffer): Doc fix.Glenn Morris2008-08-291-1/+4
|
* * buffer.c (syms_of_buffer) <scroll-up-aggressively>:Juanma Barranquero2008-08-051-13/+13
| | | | | <scroll-down-aggressively, before-change-functions>: <after-change-functions>: Reflow docstrings.
* * bitmaps/README:Dan Nicolaescu2008-07-311-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * xfns.c: * termcap.c: * term.c: * syswait.h: * systty.h: * systime.h: * syssignal.h: * sysdep.c: * process.h: * process.c: * print.c: * ndir.h: * lread.c: * keyboard.c: * getpagesize.h: * floatfns.c: * fileio.c: * emacs.c: * doc.c: * dispnew.c: * dired.c: * data.c: * callproc.c: * buffer.c: * README: * Makefile.in: * s/template.h: * s/msdos.h: * m/vax.h: Remove VMS support. * s/vms.h: * vlimit.h: * uaf.h: * temacs.opt: * param.h: * ioctl.h: Remove file. * descrip.mms: * compile.com: Remove file. * Create.c: Remove VMS support. * message.el (Module): * gnus-start.el (Module): * gnus-registry.el (Module): * textmodes/texinfmt.el: * nxml/nxml-enc.el: * mail/feedmail.el: * international/mule.el: * international/latexenc.el: * emulation/viper-util.el: * emulation/viper-init.el: * emulation/viper-ex.el: * emacs-lisp/bytecomp.el: * version.el: * subr.el: * startup.el: * sort.el: * shadowfile.el: * recentf.el: * printing.el: * paths.el: * minibuffer.el: * ls-lisp.el: * loadup.el: * hippie-exp.el: * finder.el: * files.el: * ediff-util.el: * ediff-ptch.el: * ediff-init.el: * ediff-diff.el: * dired.el: * dired-aux.el: * cus-edit.el: * bindings.el: * arc-mode.el: * add-log.el: Remove VMS support. * obsolete/vmsproc.el: * obsolete/vms-pmail.el: * obsolete/vms-patch.el: Remove file. * etags.c: * emacsclient.c: Remove VMS support. * termcap.src: Remove file. * README: * PROBLEMS: * MACHINES: Remove VMS info. * ediff.texi: Remove VMS support. * os.texi: * intro.texi: * files.texi: Remove VMS support. * emacs.texi: Remove VMS support. * make-dist: * README: Remove VMS support. * vms: Remove directory.
* (syms_of_buffer): Remove default-word-wrap.Stefan Monnier2008-06-251-5/+0
|
* (syms_of_buffer): New variables default-word-wrap and word-wrap.Chong Yidong2008-06-241-0/+16
| | | | (init_buffer_once): Initialize them.
* (clone_per_buffer_values): Skip `name'.Stefan Monnier2008-06-111-1/+5
|
* * window.el (display-buffer-function, special-display-p)Stefan Monnier2008-06-051-37/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (special-display-buffer-names, special-display-regexps) (special-display-function, same-window-p, same-window-buffer-names) (same-window-regexps, pop-up-frames, display-buffer-reuse-frames) (pop-up-frame-function, pop-up-windows) (split-window-preferred-function, split-height-threshold) (split-width-threshold, window--splittable-p) (window--try-to-split-window, window--frame-usable-p) (even-window-heights, window--even-window-heights) (window--display-buffer-1, window--display-buffer-2, display-buffer) (pop-to-buffer): Move from window.c and buffer.c. (split-window-preferred-horizontally): Remove. * cus-start.el: Remove corresponding declarations. * window.c (pop_up_windows, pop_up_frames) (display_buffer_reuse_frames, Vpop_up_frame_function) (Vdisplay_buffer_function, Veven_window_heights) (Vspecial_display_buffer_names, Vspecial_display_regexps) (Vspecial_display_function, Vsame_window_buffer_names) (Vsame_window_regexps, split_height_threshold) (Vsplit_window_preferred_function): Move those vars to window.el. (display_buffer_1, Fspecial_display_p, Fsame_window_p) (Fdisplay_buffer): Move those functions to window.el. (syms_of_window): Remove corresponding declarations. (display_buffer): New function. (temp_output_buffer_show, Fother_window_for_scrolling): Use it. * dispnew.c (Flast_nonminibuf_frame): New function. * buffer.c (Fpop_to_buffer): Move to window.el.
* * lisp.h (indirect_variable):Stefan Monnier2008-05-191-21/+12
| | | | | | | * data.c (indirect_variable, let_shadows_buffer_binding_p): Use Lisp_Symbol pointers rather than Lisp_Object. Adjust callers. * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument. To this end, change calling-convention.
* Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-141-6/+4
|
* (Fswitch_to_buffer): Change interactive spec to callJuri Linkov2008-04-221-1/+2
| | | | read-buffer-to-switch instead of using the letter "B".
* (Vtransient_mark_mode): Move docstring to simple.el toChong Yidong2008-04-021-11/+4
| | | | avoid clobbering by define-minor-mode.
* (enlarge_buffer_text): Fix int -> EMACS_INT.Stefan Monnier2008-03-211-3/+1
|
* (overlays_in, Foverlays_in): Include empty overlaysMartin Rudalics2008-03-151-11/+18
| | | | at end of range when it coincides with the end of the buffer.
* (Fswitch_to_buffer): Fall back on pop-to-buffer.Stefan Monnier2008-03-121-1/+4
|
* * dispextern.h (face_at_buffer_position, face_for_overlay_string)Stefan Monnier2008-02-261-8/+8
| | | | | | | | | | (face_at_string_position): * xfaces.c (face_at_buffer_position, face_for_overlay_string) (face_at_string_position): * xdisp.c (display_string, next_overlay_change): * buffer.h (overlays_at): * buffer.c (overlays_at): Use EMACS_INT for buffer positions. Update callers.
* (Fbuffer_swap_text): New function.Stefan Monnier2008-02-251-0/+96
| | | | (syms_of_buffer): Defsubr it.
* (clone_per_buffer_values, reset_buffer_local_variables)Stefan Monnier2008-02-111-4/+12
| | | | (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
* (mode-name): Doc fix.Glenn Morris2008-02-101-1/+2
|
* * xselect.c (x_handle_dnd_message):Stefan Monnier2008-02-071-2/+4
| | | | | | | | | | | * xmenu.c (digest_single_submenu, xmenu_show): * xdisp.c (with_echo_area_buffer_unwind_data, format_mode_line_unwind_data) (unwind_format_mode_line, display_menu_bar): * eval.c (Ffetch_bytecode): * doc.c (store_function_docstring): * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code) (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map): * buffer.c (add_overlay_mod_hooklist): Use ASET.
* Merge from emacs--devo--0Miles Bader2008-01-301-5/+35
|\ | | | | | | Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-324
| * (reset_buffer_local_variables): Implement `permanent-local-hook'.Richard M. Stallman2008-01-251-4/+33
| | | | | | | | | | (Qpermanent_local_hook): New variable. (syms_of_buffer): init and staticpro it.
| * (syms_of_buffer) <mode-name>: Fix docstring.Stefan Monnier2008-01-181-1/+2
| |
* | Merge from emacs--devo--0Miles Bader2008-01-091-1/+2
|\ \ | |/ | | | | Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-312
| * Merge from emacs--rel--22Miles Bader2008-01-081-1/+2
| |\ | | | | | | | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
| | * Add 2008 to copyright years.Glenn Morris2008-01-081-1/+2
| | |
* | | Merge from emacs--devo--0Miles Bader2007-12-161-28/+30
|\ \ \ | |/ / | | | | | | Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-300