summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Fix doc string in `insert'Lars Ingebrigtsen2016-05-091-2/+2
| | | | | | * src/editfns.c (Finsert_and_inherit): The before-insertion markers do not move. (Finsert): Ditto.
* Document automatic adjustment of process' logical window dimensionsEli Zaretskii2016-05-071-1/+3
| | | | | | | | | | * doc/lispref/processes.texi (Process Buffers): Document 'set-process-window-size' and 'window-adjust-process-window-size-function'. * etc/NEWS: Mention the new functionality and variable. * src/process.c (Fset_process_window_size): Improve the doc string.
* Doc fixes for fclist and grepPaul Eggert2016-05-051-2/+2
| | | | | | A newline is needed between two fc-list calls. egrep and fgrep have been withdrawn from POSIX, so document grep -E and grep -F instead.
* Doc fixes for quotingPaul Eggert2016-05-033-9/+12
| | | | | | | | | * doc/emacs/text.texi, doc/lispintro/emacs-lisp-intro.texi: * doc/lispref/control.texi, doc/lispref/display.texi: * doc/lispref/help.texi, doc/lispref/strings.texi, lisp/subr.el: * src/callint.c, src/doprnt.c, src/editfns.c: Document quoting a bit more systematically. Problem reported by Alan Mackenzie (Bug#23425).
* Fmarker_position doc string clarificationLars Ingebrigtsen2016-05-011-2/+1
| | | | | | | * src/marker.c (Fmarker_position): Clarify the doc string (bug#21231). (cherry picked from commit eeac7c57273cec3f9408b18392dd2bafe3be4450)
* cursor-type doc fixLars Ingebrigtsen2016-05-011-0/+2
| | | | | | | * src/buffer.c (syms_of_buffer): Mention that cursor-type's WIDHT/HEIGHT can't exceed the frame char size (bug#19215). (cherry picked from commit 77c5f4554ebb3b7c7d49bc881e45a550f6c93987)
* Fcompare_buffer_substrings doc string clarificationLars Ingebrigtsen2016-05-011-4/+3
| | | | | | | * src/editfns.c (Fcompare_buffer_substrings): Extremely minor doc string clarification (bug#19255). (cherry picked from commit aa692acbb598a1cc8219ed7a87dde25fd7626ba5)
* Have the doc strings of `load-path' and `require' mention each otherLars Ingebrigtsen2016-05-012-11/+19
| | | | | | | | | | * src/fns.c (Frequire): Mention `load-path' and fill the doc string (bug#18829). * src/lread.c (syms_of_lread): Mention that `require' uses `load-path'. (cherry picked from commit 3eca9a03816f95da0030665223c0b5262f223ba7)
* Tiny doc fixLars Ingebrigtsen2016-05-011-7/+7
| | | | | | | * src/fileio.c (Ffile_accessible_directory_p): Tiny doc fix (and fill) (bug#18201). (cherry picked from commit 2ef0040e2363a669d9b93df935d31c98fa130132)
* Doc fixLars Ingebrigtsen2016-05-011-4/+6
| | | | | | | * src/keymap.c (Fdefine_prefix_command): Clarify doc string slightly (bug#18092). (cherry picked from commit 6b769c81d024f7eeb90b167e7df6f87d859614d4)
* Doc string change to enable-recursive-minibuffersLars Ingebrigtsen2016-05-011-1/+3
| | | | | | | | * src/minibuf.c (syms_of_minibuf): Mention minibuffer-depth-indicator-mode in the doc string to enable-recursive-minibuffers (bug#14147). (cherry picked from commit 23ba488a5e8290c4de91e0ff4161641efa364c0d)
* Clarify the `interactive' doc string slightlyLars Ingebrigtsen2016-05-011-13/+17
| | | | | | | * src/callint.c (Finteractive): Clarify the doc string slightly (bug#14577). (cherry picked from commit cd993be60da2d12db0d390001373d486c1091c47)
* Use ‘T *restrict’ proto, not ‘T[restrict]’Paul Eggert2016-05-011-6/+1
| | | | | | * src/fns.c (sort_vector_copy): Use a different way to attempt to work around GCC 3.0-and-earlier incompatibility with C99, one that does not have problems with modern non-GCC compilers.
* Fix the MSDOS buildEli Zaretskii2016-04-3013-47/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * config.bat: * msdos/sedlisp.inp: * msdos/sedlibmk.inp: * msdos/sedleim.inp: * msdos/sedadmin.inp: * msdos/sed6.inp: * msdos/sed3v2.inp: * msdos/sed2v2.inp: * msdos/sed1v2.inp: Adapt to Emacs 25. * src/process.c (remove_slash_colon): Move out of "#ifdef subprocesses" block, as it its called unconditionally. Move ADD_SUBFEATURE calls into "#ifdef subprocesses" block, as they reference variables only defined in that block. * src/msdos.h: Provide prototypes for IT_set_frame_parameters, faccessat, msdos_fatal_signal, syms_of_msdos, pthread_sigmask, dos_keysns, dos_keyread, run_msdos_command, and syms_of_win16select, to avoid compiler warnings. * src/msdos.c (SYS_ENVIRON): Define to either '_environ' or 'environ', depending on the DJGPP version. Remove declarations of externally-visible Lisp objects, like Qbackground_color and Qreverse. (run_msdos_command): First argument is not signed, not unsigned. Use SYS_ENVIRON. (sys_select): Use 'timespec_cmp' instead of 'timespec_sign', as the latter doesn't work when 'time_t' is an unsigned data type. This caused idle timers to behave incorrectly: they only fired after a keyboard input event. * src/frame.c (adjust_frame_size) [MSDOS]: Account for FRAME_TOP_MARGIN that isn't counted in the frame's number of lines, but dos_set_window_size needs it to be added. * src/lread.c (INFINITY, NAN) [DJGPP < 2.05]: Provide definitions. * src/fns.c (sort_vector_copy) [__GNUC__ < 4]: Provide a prototype that works around compilation errors with older GCC versions. * src/w16select.c: Don't declare QCLIPBOARD and QPRIMARY as Lisp Objects. * src/filelock.c [MSDOS]: Ifdef away most of the code. Provide no-op implementations for 'lock_file' and 'unlock_file'. (Ffile_locked_p) [MSDOS]: Always return nil. This avoids multiple ifdefs in all users of filelock.c functionality. * src/conf_post.h (EOVERFLOW, SIZE_MAX) [DJGPP < 2.04]: Define. * src/emacs.c [MSDOS]: Include dosfns.h, to avoid compiler warnings. * src/dosfns.h: Provide prototypes for dos_cleanup, syms_of_dosfns, and init_dosfns. * src/deps.mk (atimer.o): Depend on msdos.h. (emacs.o): Depend on dosfns.h. * src/atimer.c [MSDOS]: Include msdos.h, to avoid compiler warnings. * lisp/window.el (window--adjust-process-windows): Skip the body if 'process-list' is not available. This avoids failure to start up on MS-DOS. * lisp/vc/diff.el (diff-no-select): Test 'make-process', not 'start-process', as the latter is now available on all platforms. * lisp/textmodes/ispell.el (ispell-async-processp): Replace 'start-process' with 'make-process' in a comment. * lisp/term/internal.el (IT-unicode-translations): Modify and add a few translations to display Info files with Unicode markup. Fix an ancient off-by-one mismatch error with Unicode codepoints. * lisp/progmodes/compile.el (compilation-start): Test 'make-process', not 'start-process', as the latter is now available on all platforms. * lisp/man.el (Man-build-man-command, Man-getpage-in-background): Test 'make-process', not 'start-process', as the latter is now available on all platforms. * lisp/international/mule-cmds.el (set-coding-system-map): Test 'make-process', not 'start-process', as the latter is now available on all platforms. * lisp/eshell/esh-cmd.el (eshell-do-pipelines-synchronously): Doc fix. (eshell-execute-pipeline): Test 'make-process', not 'start-process', as the latter is now available on all platforms.
* Port dumping to NetBSD with PaXPaul Eggert2016-04-271-6/+12
| | | | | | | | | | | Problem reported by Thomas Klausner (Bug#23371). * configure.ac (PAXCTL_dumped, PAXCTL_notdumped): New vars. Set them to setfattr and/or paxctl commands appropriate for GNU/Linux and/or NetBSD; the latter prefers paxctl +a. Search for paxctl only if setfattr is not found. * src/Makefile.in (PAXCTL_dumped, PAXCTL_notdumped): New vars, replacing PAXCTL_if_present and SETFATTR_if_present. All uses changed.
* Port to Ubuntu 16.04 --enable-gcc-warningsPaul Eggert2016-04-241-1/+2
| | | | * src/image.c (gif_load) [HAVE_GIF]: Fix pointer signedness problem.
* In x_set_window_size restore do_pending_window_change callsMartin Rudalics2016-04-222-0/+4
| | | | | | | * src/xterm.c (x_set_window_size): * src/w32term.c (x_set_window_size): Restore do_pending_window_change calls after their stupid removal on 2015-08-31.
* Fix Alt-modified keys on some European MS-Windows keyboardsIlya Zakharevich2016-04-211-1/+37
| | | | | | * src/w32fns.c (deliver_wm_chars): If the reported character is ASCII, AND Meta modifier is a candidate, behave as if Meta is present, i.e. fall back to the legacy code. (Bug#23251)
* Port to GCC 5.3.1 20160406 (Red Hat 5.3.1-6)Paul Eggert2016-04-161-1/+1
| | | | | * src/indent.c (Fvertical_motion): Pacify --enable-gcc-warnings when using the April 6 Fedora patch to GCC.
* Fix w32 memory-management problem when extending buffer textEli Zaretskii2016-04-151-4/+4
| | | | | | | | | | | | | | * src/w32heap.c (mmap_realloc): Only attempt extending a region if the following region has the same allocation base. Also, use the original allocation base and enlarged size to commit reserved memory, to ensure that the allocation base stays at its original value. This fixes several hard-to-debug problems whereby part of buffer text was overwritten with binary nulls, because mmap_realloc copied only part of buffer text when extending it. See http://lists.gnu.org/archive/html/emacs-devel/2016-04/msg00325.html and http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23223#55 for two examples of the related problems.
* substitute-command-keys keeps quotes’ text propsPaul Eggert2016-04-141-3/+22
| | | | | | | | Problem reported by Clément Pit--Claudel (Bug#23254). * src/doc.c: Include intervals.h. (Fsubstitute_command_keys): If the only substitutions are for quotes, copy the source string’s text properties too, since no substring lengths have changed.
* * src/xwidget.c (x_draw_xwidget_glyph_string): More clipping fixes.YAMAMOTO Mitsuharu2016-04-141-16/+10
|
* Improve time zone documentationPaul Eggert2016-04-121-12/+15
| | | | | | | | | | | | | | | | * doc/lispref/os.texi (Time Zone Rules): New section, mostly with material moved here from other sections. * doc/emacs/cmdargs.texi (General Variables): * doc/lispref/os.texi (Time Conversion, Time Parsing): Xref new section. * etc/NEWS, etc/PROBLEMS: * lisp/org/org.el (org-timestamp-format): * src/editfns.c (Fformat_time_string, Fdecode_time) (Fencode_time, Fcurrent_time_string, Fcurrent_time_zone) (Fset_time_zone_rule): When documenting time zone rule strings, mention the TZ environment variable in preference to mentioning the sort-of-internal function set-time-zone-rule.
* Disable multicolor fonts on OS X since they are not supported on free systemsYAMAMOTO Mitsuharu2016-04-121-3/+3
| | | | * src/macfont.m (macfont_list): Don't use color bitmap fonts.
* ; Spelling fixesPaul Eggert2016-04-101-1/+1
|
* Remove undefined behavior in OS X dumper.Philipp Stephani2016-04-091-1/+20
| | | | | | | Found by Address Sanitizer. * src/unexmacosx.c (unexec_write): Use Mach virtual memory API to avoid undefined behavior when reading arbitrary memory.
* Fix clipping of xwidgetsJoakim Verona2016-04-091-18/+16
| | | | | | * src/xwidget.c (x_draw_xwidget_glyph_string): Use window_box instead of calculating the clipping borders manually. Suggested by YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>.
* * src/xsmfns.c (syms_of_xsmfns): Remove stray "s in doc strings.Paul Eggert2016-04-081-2/+2
|
* Set locale encoding to UTF-8 when run from OS X GUI.Alan Third2016-04-081-1/+8
| | | | * src/nsterm.m (ns_init_locale): Append .UTF-8 when setting LANG.
* ; * src/keyboard.c (read_char): Fix typos in a comment.Eli Zaretskii2016-04-031-1/+1
|
* make-xwidget unused arg cleanupPaul Eggert2016-04-021-7/+7
| | | | | * doc/lispref/display.texi (Xwidgets): Remove stray refs. * src/xwidget.c (syms_of_xwidget): Qwebkit, not Qwebkit_osr.
* Remove unused arguments from make-xwidgetJoakim Verona2016-04-021-10/+6
| | | | | | | | | The arguments BEG and END were unused, and are now removed. * display.texi (Xwidgets): Document the change * xwidget.el (make-xwidget, xwidget-insert) (xwidget-webkit-new-session): Reflect changed arguments * xwidget.c (Fmake_xwidget, syms_of_xwidget): Reflect changed arguments
* Avoid crashes due to insanely large columns in tabulated-list-formatEli Zaretskii2016-04-012-3/+9
| | | | | | | | | | | * src/xdisp.c (append_stretch_glyph, produce_xwidget_glyph) (produce_image_glyph): Limit the pixel width of the produced glyph to SHRT_MAX. (Bug#23178) (append_composite_glyph, append_glyph, append_glyphless_glyph): Add assertions to verify that the pixel width of the glyph will never overflow a 'short'. * src/term.c (append_composite_glyph): Add assertion to verify that the pixel width of the glyph will never overflow a 'short'.
* Fix rare problems with echo-area display and multiple framesEli Zaretskii2016-03-291-0/+9
| | | | | | * src/xdisp.c (redisplay_window): Bind inhibit-redisplay non-nil around the call to x_consider_frame_title, to prevent resize_mini_window from undoing echo-area display. (Bug#23124)
* * src/font.c (QCuser_spec): Add missing colon to :user-spec.Paul Eggert2016-03-271-1/+1
|
* * src/xwidget.c (Fxwidget_resize): Fix inappropriate use of XFASTINT.YAMAMOTO Mitsuharu2016-03-271-1/+1
|
* Ignore non-nil. non-cons values of unread-command-eventsEli Zaretskii2016-03-261-4/+4
| | | | | | * src/keyboard.c (requeued_events_pending_p, read_char) (Finput_pending_p): Use CONSP instead of !NILP to see if there are unread command events to be processed. (Bug#22976)
* Improve documentatuon of 'truncate-partial-width-windows'Eli Zaretskii2016-03-261-2/+5
| | | | | | | | | | | * src/xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Clarify in the doc string how the width of partial-width windows is computed for the purposes of truncation decision. (Bug#4338) * doc/emacs/windows.texi (Split Window): Clarify how the width of windows is calculated for the purposes of truncation decision. * doc/emacs/display.texi (Line Truncation): Remove a redundant index entry.
* * src/ftfont.c (ftfont_shape_by_flt): Parenthesize as per GNU style.Paul Eggert2016-03-251-2/+2
|
* Fix scrolling upwards with 'xwidget-webkit-browse-url'Eli Zaretskii2016-03-251-1/+1
| | | | | | * src/xwidget.c (Fxwidget_set_adjustment): Use CHECK_NUMBER instead of CHECK_NATNUM. Suggested by Shayan Pirani <shayanpirani@gmail.com>. (Bug#22918)
* Fix display of Indic scriptsK. Handa2016-03-251-1/+6
| | | | | | * ftfont.c (ftfont_shape_by_flt): For combining characters out of the range U+300...U+36F, use the "combining" FLT only with non-OTF fonts.
* Fix splash screen display at startupEli Zaretskii2016-03-251-1/+1
| | | | | | | | | | | | * src/frame.c (DEFAULT_ROWS): Enlarge to 36, so that the initial window displayed by "emacs -q" has enough space to show the whole text even if it includes 2 lines talking about recovering crashes sessions. (Bug#23074) * lisp/startup.el (use-fancy-splash-screens-p): Fix off-by-one error when computing the window-height from frame-height. * etc/NEWS: Mention the change.
* Avoid GTK 3 crash with icons and masksPaul Eggert2016-03-241-66/+34
| | | | | | | | | | | Problem reported by Mosè Giordano (Bug#18997). * src/gtkutil.c (xg_get_pixbuf_from_pixmap): Remove. (xg_get_pixbuf_from_pix_and_mask): Do not use xg_get_pixbuf_from_pixmap, as it is poorly documented. Instead, invoke XGetPixel directly. This is slow but speed is not important here. Also, fail for unusual situations (not TrueColor, or images that are not 8 bits per sample) instead of displaying junk or crashing.
* Define make_save_ptr_ptr unconditionallyEli Zaretskii2016-03-241-2/+0
| | | | | | * src/alloc.c (make_save_ptr_ptr): Remove the !(defined USE_X_TOOLKIT || defined USE_GTK) conditional. Reported by Philipp Stephani <phst@google.com>. (Bug#23101)
* Preserve current buffer when popping up TTY menusEli Zaretskii2016-03-241-1/+6
| | | | | * src/term.c (tty_menu_show): Be sure to save and restore the current buffer around TTY menu pop-ups. (Bug#23101)
* Improve font selection by family on MS-WindowsEli Zaretskii2016-03-241-1/+2
| | | | | | | | | | * src/w32font.c (w32font_list_internal): Allow 'ascii-0' charset, in addition to 'iso10646-1', 'unicode-bmp', and 'unicode-sip'. This avoids rejecting many font families whose members are shown by 'font-family-list', in particular 'courier' requested by info.el. Without this change, many values of ':family' attribute of a face have no effect on MS-Windows, because they are rejected due to bogus mismatch of the charset.
* Make `toggle-frame-maximized' respect the dock on OS X (bug#22988).Anders Lindgren2016-03-221-22/+120
| | | | | | | | * src/nsterm.m (ns_screen_margins): New function. (ns_screen_margins_ignoring_hidden_dock): New function. (ns_menu_bar_height): Reimplement in terms of `ns_screen_margins'. ([EmacsWindow zoom:]): Take all screen margins (except those originating from a hidden dock) into account.
* Fix bug in displaying header line with a box faceEli Zaretskii2016-03-221-14/+47
| | | | | | * src/xdisp.c (get_next_display_element): Handle the case when a display string acquires the box face from an underlying string, not from the buffer. (Bug#23091)
* ; Spelling fixesPaul Eggert2016-03-181-2/+1
|
* Port to strict C99 offsetofPaul Eggert2016-03-182-2/+3
| | | | | | | * src/bidi.c (bidi_copy_it): * src/lisp.h (CHAR_TABLE_EXTRA_SLOTS): Use only a single identifier as the second argument of offsetof. Found by using clang -pedantic.