Glenn Morris
7b2bf907f1
Doc fix.
...
* src/buffer.c (before-change-functions, after-change-functions):
Three-year overdue doc fix following 2007-08-13 change.
2010-10-02 18:23:50 -07:00
Juanma Barranquero
14fb570491
* buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
2010-07-21 12:45:01 +02:00
Kenichi Handa
dcfb9bc4a1
buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte form of raw-bytes.
2010-03-02 10:30:52 +09:00
Stefan Monnier
0b5397c271
Try to fix bug#5314. This is probably not the final word, tho.
...
* buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
recent-auto-save-p as a side-effect.
* buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
* buffer.c (Fkill_buffer, reset_buffer):
* editfns.c (Fsubst_char_in_region):
* fileio.c (Finsert_file_contents, Fdo_auto_save)
(Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
2010-01-12 23:33:42 -05:00
Andreas Schwab
62a6e103dd
* character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH): Remove
...
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.
2009-11-21 11:52:23 +00:00
Dan Nicolaescu
f4265f6c27
* frame.c (make_initial_frame):
...
* 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.
2009-11-11 19:25:24 +00:00
Stefan Monnier
2de9f71c22
Let integers use up 2 tags to give them one extra bit and double their range.
...
* 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.
2009-11-06 18:47:48 +00:00
Dan Nicolaescu
d67b4f80db
* xterm.c (syms_of_xterm):
...
* 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.
2009-11-06 06:50:52 +00:00
Dan Nicolaescu
d7306fe6b1
* alloc.c: Do not define struct catchtag.
...
* 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.
2009-10-19 04:27:09 +00:00
Juanma Barranquero
35f5c1d28f
* buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2009-10-17 02:35:35 +00:00
Glenn Morris
5a021dd062
(default-major-mode): Move most of the doc from here...
...
(major-mode): ... to here.
2009-09-02 03:11:15 +00:00
Chong Yidong
b5b98ff494
* buffer.c (set_buffer_internal_1)
...
(swap_out_buffer_local_variables): Check for unbound local
variables (Bug#4138).
2009-08-15 14:06:02 +00:00
Richard M. Stallman
4be941e3d0
* fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
...
(Fset_buffer_auto_saved): Handle save_length = -2.
Comment changes in other files.
2009-07-16 01:45:08 +00:00
Eli Zaretskii
3ba010e58f
(syms_of_buffer) <line-spacing>: Doc fix.
2009-04-14 13:58:35 +00:00
Juanma Barranquero
6fe45af317
Move comment to make clearer it's talking about buffer Vprin1_to_string_buffer.
2009-03-17 10:26:25 +00:00
Stefan Monnier
61313fa38c
(Fswitch_to_buffer): Revert part of 2008-10-21's change.
2009-03-10 03:35:27 +00:00
Glenn Morris
76b6f70759
Add 2009 to copyright years.
2009-01-08 03:15:17 +00:00
Jason Rumney
40b615d6bd
(Fbuffer_swap_text): Use POINTER_TYPE.
2008-12-25 10:33:33 +00:00
Jason Rumney
baae5c2d84
* ralloc.c (r_alloc_reset_variable): New function.
...
* buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
record of what points where.
2008-12-24 11:20:32 +00:00
Andreas Schwab
8b1463121e
* buffer.c (init_buffer): Use realloc instead of xrealloc.
...
* gtkutil.c (free_widget_value): Use xfree instead of free.
2008-12-22 09:48:21 +00:00
Chong Yidong
dc9cc5743b
(Fbuffer_swap_text): Signal error if swapping a dead buffer.
2008-12-09 23:08:05 +00:00
Martin Rudalics
ee50ff07eb
(Fswitch_to_buffer): Reword and mention new option
...
confirm-nonexistent-file-or-buffer in doc-string.
2008-11-22 11:35:45 +00:00
Stefan Monnier
b8ff72fad8
(Fbuffer_swap_text): Remove redundant marker manipulation.
...
Fix copy/paste typo. Add checks.
2008-11-21 05:33:29 +00:00
Martin Rudalics
e08b170568
(syms_of_buffer): Fix doc-string of cursor-type.
2008-11-16 18:54:50 +00:00
Martin Rudalics
cd265ca60f
(Fget_buffer_create): Rename arg to buffer_or_name. Reword doc-string.
...
(Fbury_buffer): In doc-string say what happens to the buffer's window.
2008-10-23 09:05:39 +00:00
Martin Rudalics
c8804c4f9f
(Fget_buffer, Fbury_buffer, switch_to_buffer_1):
...
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.
2008-10-21 14:05:55 +00:00
Eli Zaretskii
7cb7097441
(syms_of_buffer): Doc fix.
2008-10-15 11:38:09 +00:00
Stefan Monnier
126f1fc1a3
(Fbuffer_swap_text): Reset window->point markers.
2008-09-07 01:22:25 +00:00
Glenn Morris
eb577e2701
(syms_of_buffer): Doc fix.
2008-08-29 06:50:34 +00:00
Juanma Barranquero
d765e3a3d5
* buffer.c (syms_of_buffer) <scroll-up-aggressively>:
...
<scroll-down-aggressively, before-change-functions>:
<after-change-functions>: Reflow docstrings.
2008-08-05 15:04:03 +00:00
Dan Nicolaescu
7c2fb837ec
* bitmaps/README:
...
* 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.
2008-07-31 05:33:56 +00:00
Stefan Monnier
fbe062b7fb
(syms_of_buffer): Remove default-word-wrap.
2008-06-25 20:55:53 +00:00
Chong Yidong
0858cd02f0
(syms_of_buffer): New variables default-word-wrap and word-wrap.
...
(init_buffer_once): Initialize them.
2008-06-24 17:56:14 +00:00
Stefan Monnier
4b7cdc0edd
(clone_per_buffer_values): Skip `name'.
2008-06-11 16:25:03 +00:00
Stefan Monnier
87478b52f9
* window.el (display-buffer-function, special-display-p)
...
(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.
2008-06-05 18:00:36 +00:00
Stefan Monnier
ad97b375e8
* lisp.h (indirect_variable):
...
* 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.
2008-05-19 18:38:55 +00:00
Glenn Morris
9ec0b715e2
Switch to recommended form of GPLv3 permissions notice.
2008-05-14 07:50:26 +00:00
Juri Linkov
88970542ac
(Fswitch_to_buffer): Change interactive spec to call
...
read-buffer-to-switch instead of using the letter "B".
2008-04-22 19:49:26 +00:00
Chong Yidong
526c9df942
(Vtransient_mark_mode): Move docstring to simple.el to
...
avoid clobbering by define-minor-mode.
2008-04-02 20:15:11 +00:00
Stefan Monnier
5371d722ec
(enlarge_buffer_text): Fix int -> EMACS_INT.
2008-03-21 01:49:18 +00:00
Martin Rudalics
7723e095a7
(overlays_in, Foverlays_in): Include empty overlays
...
at end of range when it coincides with the end of the buffer.
2008-03-15 09:14:40 +00:00
Stefan Monnier
1c55ebd109
(Fswitch_to_buffer): Fall back on pop-to-buffer.
2008-03-12 18:13:23 +00:00
Stefan Monnier
0f8b27ea24
* dispextern.h (face_at_buffer_position, face_for_overlay_string)
...
(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.
2008-02-26 18:18:05 +00:00
Stefan Monnier
13cda5f9e5
(Fbuffer_swap_text): New function.
...
(syms_of_buffer): Defsubr it.
2008-02-25 19:09:22 +00:00
Stefan Monnier
3ee24aecf6
(clone_per_buffer_values, reset_buffer_local_variables)
...
(Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
2008-02-11 17:56:13 +00:00
Glenn Morris
d224e8c251
(mode-name): Doc fix.
2008-02-10 02:14:20 +00:00
Stefan Monnier
3ae565b386
* xselect.c (x_handle_dnd_message):
...
* 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.
2008-02-07 04:11:05 +00:00
Miles Bader
d235ca2ff8
Merge from emacs--devo--0
...
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-324
2008-01-30 07:57:28 +00:00
Richard M. Stallman
2f7a359ddd
(reset_buffer_local_variables): Implement `permanent-local-hook'.
...
(Qpermanent_local_hook): New variable.
(syms_of_buffer): init and staticpro it.
2008-01-25 22:56:30 +00:00
Stefan Monnier
64a7c220b3
(syms_of_buffer) <mode-name>: Fix docstring.
2008-01-18 22:50:17 +00:00