- 19 Jan, 2013 10 commits
-
-
Christian Wittern authored
(image-mode-map): Bind them to n and p. (image-mode--images-in-directory): New helper function. Fixes: debbugs:8453
-
Paul Eggert authored
* fileio.c (Fwrite_region): Use O_BINARY in checking code, too. Fixes: debbugs:13149
-
Paul Eggert authored
-
Chong Yidong authored
Suggested by Drew Adams. Handle window decorations; save and restore the old window configuration. Fixes: debbugs:7730
-
Paul Eggert authored
Problem reported by Vitalie Spinu in <http://lists.gnu.org/archive/html/emacs-devel/2013-01/msg00411.html>. * doc/lispref/files.texi (Reading from Files, Writing to Files): Say that file offsets can be numbers, not just integers. * src/fileio.c (emacs_lseek): Remove. (file_offset): New function. (Finsert_file_contents, Fwrite_region): Use it.
-
Chong Yidong authored
Fixes: debbugs:13289
-
Eli Zaretskii authored
src/w32.c (fstat): Return owner and group like 'stat' and 'lstat' do.
-
Eli Zaretskii authored
src/w32.c (acl_set_file): Treat ERROR_ACCESS_DENIED from set_file_security as failure due to insufficient privileges. Reported by Fabrice Popineau <fabrice.popineau@supelec.fr>.
-
Paul Eggert authored
The bug was observed on Ubuntu operating inside a virtual machine, editing files mounted via CIFS or vboxsf from the MS Windows 7 host. The workaround introduces a race condition on non-buggy hosts, but it's an unlikely race and anyway there's a nearly identical nearby race that can't be fixed. * fileio.c (valid_timestamp_file_system, timestamp_file_system): New static vars. (Fwrite_region): Test for file system time stamp bug. (init_fileio): New function. * lisp.h (init_fileio): Declare it. * emacs.c (main): Call it. Fixes: debbugs:13149
-
Paul Eggert authored
and make it more consistent with other stat-failure diagnostics.
-
- 18 Jan, 2013 3 commits
-
-
Leo Liu authored
-
Dmitry Antipov authored
http://lists.gnu.org/archive/html/emacs-devel/2013-01/msg00406.html for the error description produced by valgrind. * fileio.c (read_non_regular): Rename to read_contents. Free Lisp_Save_Value object used to pass parameters. (read_non_regular_quit): Rename to read_contents_quit. (Finsert_file_contents): Redesign internal file reading loop to adjust gap and end positions after each read and so help make_gap to work properly. Do not signal an I/O error too early and so do not leave not yet decoded characters in a buffer, which was the reason of redisplay crash. Use list2 to build return value. Adjust comments.
-
Paul Eggert authored
* fileio.c (Finsert_file_contents): Use open+fstat, not stat+open. This avoids a race if the file is renamed between stat and open. This race is not the problem originally noted in Bug#13149; see <http://bugs.gnu.org/13149#73> and later messages in the thread.
-
- 17 Jan, 2013 6 commits
-
-
Michael Albinus authored
buffer local, again. This was lost with the fix on 2013-01-12.
-
Glenn Morris authored
-
Jürgen Hötzel authored
order to support several eshell buffers in parallel.
-
Michael Albinus authored
not modify `kill-buffer-hook'. (auto-revert-notify-rm-watch): Remove `auto-revert-notify-rm-watch' from `kill-buffer-hook'. (auto-revert-notify-add-watch): Do not call `auto-revert-notify-rm-watch', but add it to a buffer local `kill-buffer-hook'.
-
Dmitry Antipov authored
objects, related functions and macros. (make_save_value): Adjust prototype. (make_save_pointer): New prototype. (SAFE_NALLOCA): Fix indentation. Use make_save_pointer. (SAFE_ALLOCA_LISP): Adjust make_save_value usage. * alloc.c (format_save_value): Rename to make_save_value. (make_save_pointer): New function. (record_xmalloc): Use make_save_pointer. * dired.c, editfns.c, fileio.c, font.c, gtkutil.c, lread.c: * nsmenu.m, nsterm.m, xfns.c, xmenu.c, xselect.c, keymap.c: Change users of make_save_value to make_save_pointer. Likewise for format_save_value and make_save_value.
-
Dmitry Antipov authored
(DECODE_POSITION, BUFFER_CHECK_INDIRECTION): Fix indentation. * buffer.c (toplevel, syms_of_buffer): Drop old commented-out debugging stubs.
-
- 16 Jan, 2013 5 commits
-
-
Stefan Monnier authored
call to `eval' rather than a backquoted lambda.
-
Paul Eggert authored
-
Glenn Morris authored
-
Paul Eggert authored
Fixes: debbugs:13448
-
Glenn Morris authored
Not likely to be very useful, of course, but helps with automated testing.
-
- 15 Jan, 2013 10 commits
-
-
Paul Eggert authored
-
Paul Eggert authored
This pacifies GCC 4.7.2 when Emacs is configured with --enable-link-time-optimization and --enable-gcc-warnings. Fixes: debbugs:13448
-
Dmitry Antipov authored
(map_keymap_char_table_item): Adjust accordingly. * fileio.c (non_regular_fd, non_regular_inserted) (non_regular_nbytes): Remove. (Finsert_file_contents): Convert trytry to ptrdiff_t. Use format_save_value to pass parameters to read_non_regular. (read_non_regular): Use XSAVE_ macros to extract parameters. Adjust comment. * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Use format_save_value. (pop_down_menu) [!USE_X_TOOLKIT && !USE_GTK]: Adjust user.
-
Dmitry Antipov authored
from any Lisp_Save_Value slot. Add type checking. * src/alloc.c, src/dired.c, src/editfns.c, src/fileio.c, src/ftfont.c: * src/gtkutil.c, src/keymap.c, src/lread.c, src/nsterm.h, src/nsmenu.c: * src/xfns.c, src/xmenu.c, src/xselect.c: All users changed. * admin/coccinelle/xsave.cocci: Semantic patch to adjust users of XSAVE_POINTER and XSAVE_INTEGER macros.
-
Dmitry Antipov authored
* lisp.h (XSAVE_OBJECT): New macro to extract saved objects. (allocate_misc): Remove prototype. (format_save_value): New prototype. * alloc.c (allocate_misc): Revert back to static. (format_save_value): New function to build Lisp_Save_Value object with the specified internal structure. (make_save_value): Reimplement using format_save_value. * editfns.c (save_excursion_save): Use format_save_value. (save_excursion_restore): Use XSAVE_OBJECT.
-
Stefan Monnier authored
the use of nadvice.el. * lisp/emacs-lisp/nadvice.el (advice--tweak): Make it possible for `tweak' to return an explicit nil. (advice--remove-function): Change accordingly. * test/automated/advice-tests.el: Split up. Add advice-test-preactivate.
-
Stefan Monnier authored
more imap process running.
-
Stefan Monnier authored
Fixes: debbugs:13433
-
Michael Mauger authored
(sql-mode-font-lock-object-name): Match schema qualified names. (sql-connect): Use string keys. (sql-product-interactive): Wait for interpreter prompt. (sql-comint-oracle): Set process coding based on NLS_LANG.
-
Michael Mauger authored
(sql-interactive-remove-continuation-prompt): (sql-send-magic-terminator, sql-interactive-mode): Remove references.
-
- 14 Jan, 2013 6 commits
-
-
Julien Danjou authored
-
Paul Eggert authored
* alloc.c (mark_object) [GC_MARK_STACK]: * dired.c (directory_files_internal_unwind): * fileio.c (do_auto_save_unwind): * gtkutil.c (pop_down_dialog): * keymap.c (map_keymap_char_table_item): * lread.c (load_unwind): * nsmenu.m (pop_down_menu): * print.c (print_object) [GC_MARK_STACK]: * xfns.c (clean_up_file_dialog): * xmenu.c (cleanup_widget_value_tree): Omit casts between XSAVE_POINTER and a pointer type.
-
Leo Liu authored
Fixes: debbugs:13420
-
Glenn Morris authored
-
Dmitry Antipov authored
-
Dmitry Antipov authored
* eval.c (eval_sub): Protect `form' from being GCed before its car and cdr becomes protected with the backtrace entry.
-