summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* Improve display of glyph matrix by dump-glyph-matrix.Eli Zaretskii2013-01-05
| | | | | | | | | src/xdisp.c (dump_glyph): Align glyph data better. Use "pD" instead of a non-portable "t" to print ptrdiff_t values. Allow up to 9 digits for buffer positions, before misalignment starts. Display "0" for integer "object" field. (dump_glyph_row): Adapt the header line to changes in dump_glyph. Display the newline glyph more unambiguously.
* Don't use previous underline thickness or position if previous underline ↵YAMAMOTO Mitsuharu2013-01-04
| | | | type is underwave.
* Make underwave look more triangular and also degrade gracefully for small ↵YAMAMOTO Mitsuharu2013-01-04
| | | | fonts. (Bug#13000)
* Add 2013 to more copyright yearsGlenn Morris2013-01-02
|
* Update copyright notices for 2013.Paul Eggert2013-01-01
|
* * src/keymap.c (Fkey_description): Doc fix.Glenn Morris2012-12-31
| | | | Fixes: debbugs:13323
* Use URLs, not Boston addresses, in copyright notices.Paul Eggert2012-12-31
|
* Properly configure GNUstep librariesAndreas Schwab2012-12-29
| | | | | | | | | | | * configure.ac (TEMACS_LDFLAGS2): Don't define. (LIBS_GNUSTEP): Set for GNUstep and substitute. (LD_SWITCH_SYSTEM_TEMACS): Don't set for GNUstep. * src/Makefile.in (TEMACS_LDFLAGS2): Remove. (LIBS_GNUSTEP): Define. (LIBES): Add $(LIBS_GNUSTEP). (temacs$(EXEEXT)): Use $(LDFLAGS) instead of $(TEMACS_LDFLAGS2).
* More improvements in 'struct glyph' comments.Eli Zaretskii2012-12-29
|
* Fix bug #13277 with TTY cursor positioning in a line with overlay arrow.Eli Zaretskii2012-12-27
| | | | | | | src/xdisp.c (set_cursor_from_row): Don't confuse a truncation or continuation glyph on a TTY with an indication of an empty line. src/dispextern.h: Improve commentary to glyph->charpos and glyph->object.
* Document cygwin-convert-file-name-{to|from}-windowsGlenn Morris2012-12-26
| | | | | | | | | * doc/lispref/files.texi (File Names): Mention Cygwin conversion functions. * src/cygw32.c (Fcygwin_convert_file_name_to_windows) (Fcygwin_convert_file_name_from_windows): Doc fixes. * etc/NEWS: Related markup.
* Fix bug #13262 with crashes in completion on MS-Windows with non-ASCII ↵Eli Zaretskii2012-12-24
| | | | | | | | | | | | | | | | filenames. src/fileio.c (file_name_as_directory, directory_file_name): Accept an additional argument MULTIBYTE to indicate whether the input C came from a multibyte or a unibyte Lisp string; all callers adjusted. Don't assume the input string is always multibyte. (Ffile_name_directory) [DOS_NT]: Handle unibyte strings correctly: don't ENCODE_FILE them, and return a unibyte string if the input was unibyte. (Fexpand_file_name): Don't mix unibyte with multibyte strings, and don't assume the input strings will always be multibyte. If the input strings are multibyte, decode strings obtained from C library functions.
* Reword doc and doc-string of select-window (Bug#13248).Martin Rudalics2012-12-22
| | | | | | * window.c (Fselect_window): Reword doc-string. * windows.texi (Selecting Windows): Reword description of select-window.
* src/fileio.c (Finsert_file_contents): Doc fix.Eli Zaretskii2012-12-21
|
* Possibly fix bug #13086 with losing track of subprocesses on MS-Windows.Eli Zaretskii2012-12-21
| | | | | | | | | | src/w32proc.c (new_child, delete_child, find_child_pid): For a subprocess, consider its slot being in use as long as its process handle (procinfo.hProcess) is not NULL. This avoids reusing the slot when a new process is started immediately after killing another one, without waiting enough time for the first process to be reaped and resources allocated for it be orderly freed. Suggested by Fabrice Popineau <fabrice.popineau@supelec.fr>.
* * buffer.c (Fset_buffer_major_mode): Doc fix.Chong Yidong2012-12-21
| | | | Fixes: debbugs:13231
* * fns.c (Fcompare_strings): Doc fix.Chong Yidong2012-12-15
| | | | | | * strings.texi (Text Comparison): Doc fix for compare-strings. Fixes: debbugs:13081
* search.c (search_buffer): Improve a comment.Kenichi Handa2012-12-15
|
* search.c (search_buffer): Improve a comment.Kenichi Handa2012-12-15
|
* Fix bug #12621 with crashes on MS-Windows in LookupAccountSid.Eli Zaretskii2012-12-14
| | | | | | | | | src/w32.c (get_name_and_id): Always pass NULL as the first argument of lookup_account_sid. Avoids crashes with UNC file names that refer to DFS domains, not to specific machine names. (Bug#12621) Remove now unused argument FNAME; all callers changed. (get_file_owner_and_group): Remove now unused argument FNAME; all callers changed.
* Fix bug #13084 with crashes during search.Eli Zaretskii2012-12-11
| | | | | src/search.c (search_buffer): Check the inverse translations of each character in pattern when the buffer being searched is unibyte.
* * fileio.c (Fverify_visited_file_modtime): Don't read uninitialized st.st_size.Paul Eggert2012-12-10
|
* * fileio.c (Fvisited_file_modtime): Return (-1 ...) for nonexistentPaul Eggert2012-12-10
| | | | files, fixing a regression from 24.2.
* Move fix for bug#12993 to trunkDaniel Colascione2012-12-10
|
* Compile Windows resources into cygw32 EmacsDaniel Colascione2012-12-09
|
* * nsterm.m (fd_handler:): FD_ZERO fds.Jan Djärv2012-12-08
| | | | Fixes: debbugs:13103
* Fix incompatibilities with 64-bit Windows builds.Fabrice Popineau2012-12-08
| | | | | | | | | src/w32fns.c (cache_system_info): Cast sysinfo_cache.dwPageSize to DWORD_PTR, for compatibility with 64-bit builds. src/w32.c (_PROCESS_MEMORY_COUNTERS_EX): (GetProcessWorkingSetSize_Proc, get_process_working_set_size) (system_process_attributes): Use SIZE_T rather than DWORD, for compatibility with 64-bit builds.
* * lread.c (Vload_source_file_function): Doc fix.Christopher Schmidt2012-12-08
| | | | Fixes: debbugs:11647
* Fix bug #13108 introduced by the fix to bug #12930.Eli Zaretskii2012-12-07
| | | | | | src/indent.c (Fvertical_motion): If a display string will be displayed on the left or the right margin, don't consider it as a factor in cursor positioning.
* Reword doc-string of Fcompare_buffer_substrings.Martin Rudalics2012-12-07
| | | | * editfns.c (Fcompare_buffer_substrings): Reword doc-string.
* Don't pass un-encoded file name to mkstemp.Eli Zaretskii2012-12-05
| | | | | src/callproc.c (Fcall_process_region): Encode expanded temp file pattern before passing it to mkstemp or mktemp.
* Fix one part of bug #13079 with temporary files in call-process-region.Eli Zaretskii2012-12-05
| | | | | | src/callproc.c (Fcall_process_region) [!HAVE_MKSTEMP]: If mktemp fails, signal an error instead of continuing with an empty string.
* Fix another instance of bug #12933 with non-ASCII file names on Windows.Eli Zaretskii2012-12-04
| | | | | | src/fileio.c (file_name_as_directory, directory_file_name) [DOS_NT]: Encode the file name before passing it to dostounix_filename, in case it will downcase it (under w32-downcase-file-names).
* * fileio.c (Vauto_save_list_file_name): Minor doc fix.Chong Yidong2012-12-01
|
* Fix compilation problems with 64-bit MSVC compiler.Fabrice Popineau2012-11-30
| | | | | | | | | | | | src/w32fns.c: Remove prototype of atof. (syspage_mask): Declared DWORD_PTR, for compatibility with 64-bit builds. (file_dialog_callback): Declared UINT_PTR. src/w32common.h (syspage_mask): Declare DWORD_PTR, for compatibility with 64-bit builds. src/w32.c (FILE_DEVICE_FILE_SYSTEM, METHOD_BUFFERED) (FILE_ANY_ACCESS, CTL_CODE) [_MSC_VER]: Define only if not already defined.
* * src/data.c (Fboundp): Doc fix re lexical-binding.Glenn Morris2012-11-27
|
* * src/data.c (Fsymbol_value): Doc fix re lexical-binding.Glenn Morris2012-11-27
|
* Don't crash if internal-char-font is called on non-GUI frames.Eli Zaretskii2012-11-26
| | | | | src/fontset.c (Finternal_char_font): Return nil on non-GUI frames. (Bug#11964)
* Revert recent change for Bug#8855.Paul Eggert2012-11-24
| | | | | | | | As reported by Harald Hanche-Olsen in <http://lists.gnu.org/archive/html/emacs-devel/2012-11/msg00445.html> the change introduces a further bug, of creating lots of zombie processes in some cases. Further work is needed to come up with a better fix for Bug#8855.
* Fix assertion violations when clicking on Info bread-crumbs.Eli Zaretskii2012-11-24
| | | | | | | src/xdisp.c (draw_glyphs): Don't draw in mouse face if mouse highlighting on the frame was cleared. Prevents assertion violations when repeatedly clicking on the "Top" link of the "bread-crumbs" in Info buffers.
* Fix ChangeLog entries for the last commit.Eli Zaretskii2012-11-24
|
* Fix a race condition with glib (Bug#8855).Paul Eggert2012-11-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a backport from the trunk, consisting of: 2012-11-17 Eli Zaretskii <eliz@gnu.org> * nt/inc/sys/wait.h: New file, with prototype of waitpid and definitions of macros it needs. * nt/inc/ms-w32.h (wait): Don't define, 'wait' is not used anymore. (sys_wait): Remove prototype. * nt/config.nt (HAVE_SYS_WAIT_H): Define to 1. * src/w32proc.c (create_child): Don't clip the PID of the child process to fit into an Emacs integer, as this is no longer a restriction. (waitpid): Rename from sys_wait. Emulate a Posix 'waitpid' by reaping only the process specified by PID argument, if that is positive. Use PID instead of dead_child to know which process to reap. Wait for the child to die only if WNOHANG is not in OPTIONS. (sys_select): Don't set dead_child. * src/sysdep.c (wait_for_termination_1): Remove the WINDOWSNT portion, as it is no longer needed. * src/process.c (waitpid, WUNTRACED) [!WNOHANG]: Remove definitions, no longer needed. (record_child_status_change): Remove the setting of record_at_most_one_child for the !WNOHANG case. 2012-11-03 Paul Eggert <eggert@cs.ucla.edu> Fix a race condition that causes Emacs to mess up glib (Bug#8855). This is a backport from the trunk. The symptom is a diagnostic "GLib-WARNING **: In call to g_spawn_sync(), exit status of a child process was requested but SIGCHLD action was set to SIG_IGN and ECHILD was received by waitpid(), so exit status can't be returned." The diagnostic is partly wrong, as the SIGCHLD action is not set to SIG_IGN. The real bug is a race condition between Emacs and glib: Emacs does a waitpid (-1, ...) and reaps glib's subprocess by mistake, so that glib can't find it. Work around the bug by invoking waitpid only on subprocesses that Emacs itself creates. * src/process.c (create_process, record_child_status_change): Don't use special value -1 in pid field, as the caller now must know the pid rather than having the callee infer it. The inference was sometimes incorrect anyway, due to another race. (create_process): Set new 'alive' member if child is created. (process_status_retrieved): New function. (record_child_status_change): Use it. Accept negative 1st argument, which means to wait for the processes that Emacs already knows about. Move special-case code for DOS_NT (which lacks WNOHANG) here, from caller. Keep track of processes that have already been waited for, by testing and clearing new 'alive' member. (CAN_HANDLE_MULTIPLE_CHILDREN): Remove, as record_child_status_change now does this internally. (handle_child_signal): Let record_child_status_change do all the work, since we do not want to reap all exited child processes, only the child processes that Emacs itself created. * src/process.h (Lisp_Process): New boolean member 'alive'.
* Fix cursor display when several display strings follow each other.Eli Zaretskii2012-11-23
| | | | | | src/xdisp.c (set_cursor_from_row): Skip step 2 only if point is not between bpos_covered and bpos_max. This fixes cursor display when several display strings follow each other.
* Fix pgx in .gdbinit when CHECK_LISP_OBJECT_TYPE is defined.Eli Zaretskii2012-11-23
| | | | | | src/.gdbinit (pgx): If the glyph's object is a string, display the pointer to string data, rather than the value of the string object itself (which barfs under CHECK_LISP_OBJECT_TYPE).
* Fix bug #12930 with vertical-motion through a display string.Eli Zaretskii2012-11-21
| | | | | | src/indent.c (Fvertical_motion): If the starting position is covered by a display string, return to one position before that, to avoid overshooting it inside move_it_to.
* Backport: Rename cygwin_convert_path* to cygwin_convert_file_name*Daniel Colascione2012-11-20
|
* Fix non-GTK builds on CygwinKen Brown2012-11-20
| | | | | | * src/emacs.c (main): Set the G_SLICE environment variable for all Cygwin builds, not just GTK builds. See https://lists.gnu.org/archive/html/emacs-devel/2012-11/msg00368.html.
* More fixes for bug #12878 with MS-Windows MSVC build.Eli Zaretskii2012-11-19
| | | | | | | | | | | | src/xdisp.c (start_hourglass) [HAVE_NTGUI]: Don't mix declaration of w32_note_current_window with code. (Backport from trunk.) src/w32.c (FILE_DEVICE_FILE_SYSTEM, METHOD_BUFFERED) (FILE_ANY_ACCESS, CTL_CODE, FSCTL_GET_REPARSE_POINT) [_MSC_VER]: Define for the MSVC compiler. src/w32term.h (EnumSystemLocalesW) [_MSC_VER]: Add a missing semi-colon. nt/inc/stdint.h (PTRDIFF_MIN) [!__GNUC__]: Define for MSVC.
* Prevent crashes on MS-Windows when w32-downcase-file-names is non-nil.Eli Zaretskii2012-11-18
| | | | | | | | | src/fileio.c (Fsubstitute_in_file_name, Ffile_name_directory) (Fexpand_file_name) [DOS_NT]: Pass encoded file name to dostounix_filename. Prevents crashes down the road, because dostounix_filename assumes it gets a unibyte string. Reported by Michel de Ruiter <michel@sentient.nl>, see http://lists.gnu.org/archive/html/help-emacs-windows/2012-11/msg00017.html
* Fix bug #12878 with compilation failure with Visual C++ 11.0.Eli Zaretskii2012-11-17
| | | | | | | | | | | src/w32select.c: Include w32common.h before w32term.h, so that windows.h gets included before w32term.h uses some of its features, see below. src/w32term.h (LOCALE_ENUMPROCA, LOCALE_ENUMPROCW) [_MSC_VER]: New typedefs. (EnumSystemLocalesA, EnumSystemLocalesW) [_MSC_VER]: New prototypes. (EnumSystemLocales) [_MSC_VER]: Define if undefined.