aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * intervals.c (adjust_intervals_for_insertion): Initialize `newi'Dmitry Antipov2012-05-021-2/+0
| | | | | | with RESET_INTERVAL. * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Remove duplicated buffer name initialization.
* Do not avoid creating empty evaporating overlays (Bug#9642).Paul Eggert2012-04-281-19/+18
| | | | | | | | * buffer.c (Fmove_overlay): Revert the change of 2012-04-23. That is, do not delete an evaporating overlay if it becomes empty after its bounds are adjusted to fit within its buffer. This fix caused other problems, and I'm reverting it until we get to the bottom of them.
* Do not create empty overlays with the evaporate property (Bug#9642).Paul Eggert2012-04-231-18/+19
| | | | | | | | | * buffer.c (Fmove_overlay): Delete an evaporating overlay if it becomes empty after its bounds are adjusted to fit within its buffer. Without this fix, in a nonempty buffer (let ((o (make-overlay 1 2))) (overlay-put o 'evaporate t) (move-overlay o 0 1)) yields an empty overlay that has the evaporate property, which is not supposed to happen.
* Improve ralloc.c interface checking.Paul Eggert2012-04-151-11/+0
| | | | | | | | | | See http://lists.gnu.org/archive/html/emacs-devel/2011-12/msg00720.html * buffer.c (ralloc_reset_variable, r_alloc, r_re_alloc) (r_alloc_free) [REL_ALLOC]: Move decls from here ... * lisp.h (r_alloc, r_alloc_free, r_re_alloc, r_alloc_reset_variable) [REL_ALLOC]: ... to here, to check interface. * m/ia64.h (r_alloc, r_alloc_free) [REL_ALLOC && !_MALLOC_INTERNAL]: Remove decls. This fixes an "It stinks!".
* Remove * characters from the front of variable docstrings.Chong Yidong2012-04-091-24/+24
|
* Remove ucs-set-table-for-input dead codeGlenn Morris2012-04-081-13/+0
| | | | | | | | | | | | | | This function was removed with ucs-tables.el in 2008. * lisp/international/mule-cmds.el (set-default-coding-systems): * lisp/files.el (normal-mode): Remove guarded calls to ucs-set-table-for-input. * src/buffer.c (Qucs_set_table_for_input): Remove. (Fget_buffer_create): Don't call Qucs_set_table_for_input. (init_buffer_once, syms_of_buffer): Remove Qucs_set_table_for_input. Fixes: debbugs:9821
* * buffer.c (compare_overlays): Don't assume args differ (Bug#6830).Paul Eggert2012-03-121-1/+3
|
* * src/buffer.c (compare_overlays): Avoid qsort's instability.Stefan Monnier2012-03-091-1/+5
| | | | Fixes: debbugs:6830
* * src/buffer.c (buffer-list-update-hook): Doc fix.Glenn Morris2012-03-011-3/+3
|
* Update Files chapter in Lisp manual.Chong Yidong2012-02-211-1/+5
| | | | | | | | | | | | | | | * doc/lispref/files.texi (Files): Mention magic file names as arguments. (Reading from Files): Copyedits. (File Attributes): Mention how to change file modes. (Changing Files): Use standard "file permissions" terminology. Add xref to File Attributes node. (Locating Files): Document locate-user-emacs-file. (Unique File Names): Recommend against using make-temp-name. * src/buffer.c (Fget_file_buffer): Protect against invalid file handler return value. * src/fileio.c (Vfile_name_handler_alist): Doc fix.
* Fix and doc-fix for `buffer-local-variables'.Chong Yidong2012-02-071-4/+10
| | | | | | | | | | | * src/buffer.c (Fbuffer_local_variables) (buffer_lisp_local_variables): Handle unbound vars correctly; don't let Qunbound leak into Lisp. * doc/lispref/variables.texi (Creating Buffer-Local): Minor clarification to buffer-local-variables doc. Fixes: debbugs:10715
* Add 2012 to FSF copyright years for Emacs filesGlenn Morris2012-01-051-1/+1
|
* Spelling fixes.Paul Eggert2011-11-261-2/+2
|
* In Fkill_buffer do replace_buffer_in_windows before Fset_buffer. (Bug#10114)Martin Rudalics2011-11-231-2/+7
| | | | | * buffer.c (Fkill_buffer): Run replace_buffer_in_windows before making another buffer current. (Bug#10114)
* Fix typos.Juanma Barranquero2011-11-201-1/+1
|
* Spelling fixes.Paul Eggert2011-11-191-1/+1
|
* Spelling fixes.Paul Eggert2011-11-141-1/+1
|
* * src/buffer.c (syms_of_buffer) <enable-multibyte-characters>: Don'tStefan Monnier2011-10-071-3/+1
| | | | advertise functionality which we discourage or doesn't work.
* * buffer.h (struct buffer): Use time_t, not int, for a time stamp.Paul Eggert2011-09-301-1/+1
| | | | | | | | | This fixes a Y2038 bug on 64-bit hosts. * buffer.c (reset_buffer): * fileio.c (Fdo_auto_save, Fset_buffer_auto_saved) (Fclear_buffer_auto_save_failure): Use 0, not -1, to represent an unset failure time, since time_t might not be signed.
* * src/buffer.c (truncate-lines): Doc fix.Glenn Morris2011-09-241-1/+3
|
* Merge from trunk.Paul Eggert2011-08-251-22/+10
|\
| * Delete record-buffer, and rename unrecord-buffer to bury-buffer-internal.Chong Yidong2011-08-241-22/+10
| | | | | | | | | | | | | | | | * lisp/window.el (bury-buffer, quit-window): Use bury-buffer-internal. * src/buffer.c (Fbury_buffer_internal): Rename from Funrecord_buffer. Change return value to nil. (Frecord_buffer): Delete unused function.
* | * buffer.c (overlay_str_len): Now ptrdiff_t, not EMACS_INT,Paul Eggert2011-08-151-1/+1
| | | | | | | | since either will do and ptrdiff_t is convenient with xpalloc.
* | Adjust in response to jan.h.d's comments.Paul Eggert2011-08-041-39/+25
| | | | | | | | See, for example <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9196#26>.
* | Merge from trunk.Paul Eggert2011-07-281-1/+1
|\ \ | |/
| * src/buffer.c: Fix last change.Eli Zaretskii2011-07-281-1/+1
| |
| * Turn on bidi-display-reordering by default.Eli Zaretskii2011-07-281-2/+2
| | | | | | | | | | | | | | | | | | src/buffer.c (init_buffer_once, syms_of_buffer): Set bidi-display-reordering to t by default. doc/emacs/mule.texi (Bidirectional Editing): Document the fact that bidi-display-reordering is t by default. lispref/display.texi (Bidirectional Display): Document the fact that bidi-display-reordering is t by default.
* | * buffer.c: Memory overflow fixes.Paul Eggert2011-07-281-12/+9
|/ | | | | | (overlays_at, overlays_in, record_overlay_string, overlay_strings): Don't update size of array until after memory allocation succeeds, because xmalloc/xrealloc may not return.
* Merge from trunk.Paul Eggert2011-07-131-1/+1
|\
| * src/buffer.c (mmap_find): Fix a typo.Eli Zaretskii2011-07-131-1/+1
| |
* | Merge from trunk.Paul Eggert2011-07-121-0/+1
|\ \ | |/
| * * buffer.c (Fget_buffer_create): Initialized inhibit_shrinking.Paul Eggert2011-07-121-0/+1
| | | | | | | | The old code sometimes used this field without initializing it.
* | Merge from trunk.Paul Eggert2011-07-101-68/+47
|\ \ | |/
| * ProtoizeAndreas Schwab2011-07-101-68/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * src/buffer.c (mmap_init, mmap_find, mmap_free_1, mmap_enlarge) (mmap_set_vars, mmap_alloc, mmap_free, mmap_realloc): Protoize. * src/data.c (fmod): Likewise. * src/dispnew.c (swap_glyphs_in_rows): Likewise. * src/emacs.c (memory_warning_signal): Likewise. * src/floatfns.c (float_error): Likewise. * src/font.c (check_gstring, check_otf_features, otf_tag_symbol) (otf_open, font_otf_capability, generate_otf_features) (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor): Likewise. * src/image.c (pbm_read_file): Likewise. * src/indent.c (string_display_width): Likewise. * src/intervals.c (check_for_interval, search_for_interval) (inc_interval_count, count_intervals, root_interval) (adjust_intervals_for_insertion, make_new_interval): Likewise. * src/lread.c (defalias): Likewise. * src/regex.c (set_image_of_range_1, set_image_of_range) (regex_grow_registers): Likewise. * src/sysdep.c (strerror): Likewise. * src/termcap.c (valid_filename_p, tprint, main): Likewise. * src/tparam.c (main): Likewise. * src/unexhp9k800.c (run_time_remap, save_data_space) (update_file_ptrs, read_header, write_header, calculate_checksum) (copy_file, copy_rest, display_header): Likewise. * src/widget.c (mark_shell_size_user_specified, create_frame_gcs): Likewise. * src/xdisp.c (check_it): Likewise. * src/xfaces.c (register_color, unregister_color, unregister_colors): Likewise. * src/xfns.c (print_fontset_result): Likewise. * src/xrdb.c (member, fatal, main): Likewise.
* | * buffer.c: Integer signedness fixes.Paul Eggert2011-07-071-4/+4
|/ | | | | | (alloc_buffer_text, enlarge_buffer_text): Use ptrdiff_t rather than size_t when either will do, as we prefer signed integers.
* Remove more assumptions re struct layout (Bug#8884).Paul Eggert2011-07-061-4/+4
|
* Remove unportable assumption about struct layout (Bug#8884).Paul Eggert2011-07-061-2/+2
| | | | | | | | | * buffer.c (clone_per_buffer_values): Don't assume that sizeof (struct buffer) is a multiple of sizeof (Lisp_Object). This isn't true in general, and it's particularly not true if Emacs is configured with --with-wide-int. * buffer.h (FIRST_FIELD_PER_BUFFER, LAST_FIELD_PER_BUFFER): New macros, used in the buffer.c change.
* * buffer.c (Foverlay_put): Say what the return value isLars Magne Ingebrigtsen2011-07-041-1/+2
| | | | (bug#7835).
* Remove clone-number support. Provide clone-of parameter in window states.Martin Rudalics2011-07-021-17/+6
| | | | | | | | | | | | | | | | * window.h (window): Remove clone_number slot. * window.c (Fwindow_clone_number, Fset_window_clone_number): Remove. (make_parent_window, make_window, saved_window) (Fset_window_configuration, save_window_save): Don't deal with clone numbers. * buffer.c (Qclone_number): Remove declaration. (sort_overlays, overlay_strings): Don't deal with clone numbers. * window.el (window-state-get-1): Don't assign clone numbers. Add clone-of item to list of window parameters. (window-state-put-2): Don't process clone numbers. (display-buffer-alist): Fix doc-string.
* Have overlays with window property respect clone numbers.Martin Rudalics2011-06-271-6/+17
| | | | | | | * buffer.c (Qclone_number): Declare static and DEFSYM it. (sort_overlays, overlay_strings): When an overlay's clone number matches the window's clone number process the overlay even if the overlay's window property doesn't match the current window.
* Move DEFSYM to lisp.h and use everywhere.Juanma Barranquero2011-06-241-33/+18
|
* * buffer.c (OVERLAY_COUNT_MAX): New macro.Paul Eggert2011-06-211-17/+19
| | | | | | (overlays_in, mouse_face_overlay_overlaps, Foverlays_in): Use ptrdiff_t, not int, for sizes. (overlays_in): Check for size-calculation overflow.
* Use ptrdiff_t, not int, for overlay counts.Paul Eggert2011-06-211-19/+19
| | | | | | | | | | | | * buffer.h (overlays_at, sort_overlays, GET_OVERLAYS_AT): * editfns.c (overlays_around, get_pos_property): * textprop.c (get_char_property_and_overlay): * xdisp.c (next_overlay_change, note_mouse_highlight): * xfaces.c (face_at_buffer_position): * buffer.c (overlays_at, sort_overlays, Foverlays_at) (Fnext_overlay_change, Fprevious_overlay_change): Use ptrdiff_t, not int, for sizes. (overlays_at): Check for size-calculation overflow.
* * buffer.c (init_buffer): Don't assume string length fits in 'int'.Paul Eggert2011-06-191-1/+1
|
* * buffer.c: Include <verify.h>.Paul Eggert2011-06-171-1/+3
| | | | (init_buffer_once): Check at compile-time, not run-time.
* * buffer.c (record_overlay_string): Check for size-calculation overflow.Paul Eggert2011-06-171-3/+6
| | | | (struct sortstrlist.size, struct sortlist.used): Don't truncate size to int.
* * buffer.c (struct sortstr.size, record_overlay_string): Don't truncate size ↵Paul Eggert2011-06-171-2/+3
| | | | to int.
* * buffer.c (compare_overlays, cmp_for_strings): Avoid subtraction overflow.Paul Eggert2011-06-171-5/+5
|
* * buffer.c (struct sortstr.priority): Now EMACS_INT, not int.Paul Eggert2011-06-171-1/+1
|
* * buffer.c (struct sortvec.priority): Now EMACS_INT, not int.Paul Eggert2011-06-171-1/+1
|