]> code.delx.au - gnu-emacs/log
gnu-emacs
11 years agoMerge from emacs-24; up to 2012-12-11T09:51:12Z!dmantipov@yandex.ru
Glenn Morris [Sat, 19 Jan 2013 20:38:13 +0000 (12:38 -0800)]
Merge from emacs-24; up to 2012-12-11T09:51:12Z!dmantipov@yandex.ru

11 years agoFix crashes with lots of overlays.
Eli Zaretskii [Sat, 19 Jan 2013 20:04:33 +0000 (22:04 +0200)]
Fix crashes with lots of overlays.

 src/editfns.c (get_pos_property): Use SAFE_ALLOCA_LISP, to avoid
 segfault when there are lots of overlays.
 src/buffer.c (sort_overlays): Use SAFE_NALLOCA, to avoid segfault
 when there are lots of overlays.  See
 http://lists.gnu.org/archive/html/emacs-devel/2013-01/msg00421.html
 for the details and a way to reproduce.

11 years ago* fileio.c: Use O_APPEND to append.
Paul Eggert [Sat, 19 Jan 2013 18:58:40 +0000 (10:58 -0800)]
* fileio.c: Use O_APPEND to append.

This corresponds better to the natural interpretation of "append",
and avoids the need to open the output file twice, or to invoke
lseek when APPEND is neither nil nor a number.
This relies on POSIX 1003.1-1988 or later, which is OK nowadays.
(Fwrite_region): Simplify.  Use O_APPEND instead of opening the
file possibly twice, and lseeking to its end; this avoids the
need to lseek on non-regular files.  Do not use O_EXCL and O_TRUNC
at the same time: the combination is never needed and apparently
it doesn't work with DOS_NT.

11 years ago* image-mode.el (image-next-file, image-previous-file): New commands.
Christian Wittern [Sat, 19 Jan 2013 15:22:38 +0000 (23:22 +0800)]
* image-mode.el (image-next-file, image-previous-file): New commands.
(image-mode-map): Bind them to n and p.
(image-mode--images-in-directory): New helper function.

Fixes: debbugs:8453
11 years agoFix size bug on DOS_NT introduced by CIFS workaround.
Paul Eggert [Sat, 19 Jan 2013 12:29:10 +0000 (04:29 -0800)]
Fix size bug on DOS_NT introduced by CIFS workaround.

* fileio.c (Fwrite_region): Use O_BINARY in checking code, too.

Fixes: debbugs:13149
11 years ago* fileio.c (Fwrite_region): Sync diagnostic to previous change.
Paul Eggert [Sat, 19 Jan 2013 12:17:20 +0000 (04:17 -0800)]
* fileio.c (Fwrite_region): Sync diagnostic to previous change.

11 years ago* image-mode.el (image-mode-fit-frame): Add a frame argument.
Chong Yidong [Sat, 19 Jan 2013 10:34:07 +0000 (18:34 +0800)]
* image-mode.el (image-mode-fit-frame): Add a frame argument.
Suggested by Drew Adams.  Handle window decorations;
save and restore the old window configuration.

Fixes: debbugs:7730
11 years agoAllow floating-point file offsets.
Paul Eggert [Sat, 19 Jan 2013 09:59:51 +0000 (01:59 -0800)]
Allow floating-point file offsets.

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.

11 years ago* emacs.c (Fkill_emacs): Set waiting_for_input to 0 to avoid aborting on Fsignal.
Chong Yidong [Sat, 19 Jan 2013 08:49:17 +0000 (16:49 +0800)]
* emacs.c (Fkill_emacs): Set waiting_for_input to 0 to avoid aborting on Fsignal.

Fixes: debbugs:13289
11 years agoMake 'fstat' on MS-Windows behave more like 'stat' and 'lstat'.
Eli Zaretskii [Sat, 19 Jan 2013 07:32:36 +0000 (09:32 +0200)]
Make 'fstat' on MS-Windows behave more like 'stat' and 'lstat'.

 src/w32.c (fstat): Return owner and group like 'stat' and 'lstat' do.

11 years agoMinor fix in acl_set_file.
Eli Zaretskii [Sat, 19 Jan 2013 07:13:19 +0000 (09:13 +0200)]
Minor fix in acl_set_file.

 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>.

11 years agoWork around bug in CIFS and vboxsf file systems.
Paul Eggert [Sat, 19 Jan 2013 04:44:34 +0000 (20:44 -0800)]
Work around bug in CIFS and vboxsf file systems.

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
11 years ago* fileio.c (Finsert_file_contents): Simplify new diagnostic
Paul Eggert [Sat, 19 Jan 2013 00:40:07 +0000 (16:40 -0800)]
* fileio.c (Finsert_file_contents): Simplify new diagnostic

and make it more consistent with other stat-failure diagnostics.

11 years agoPrune erroneous values in dired-get-marked-files
Leo Liu [Fri, 18 Jan 2013 18:35:44 +0000 (02:35 +0800)]
Prune erroneous values in dired-get-marked-files

Fixes: debbugs:13152
11 years ago* lisp/progmodes/js.el: Tweak autoload cookie for alias.
Leo Liu [Fri, 18 Jan 2013 18:22:18 +0000 (02:22 +0800)]
* lisp/progmodes/js.el: Tweak autoload cookie for alias.

11 years agoFix crash when inserting data from non-regular files. See
Dmitry Antipov [Fri, 18 Jan 2013 06:32:12 +0000 (10:32 +0400)]
Fix crash when inserting data from non-regular files.  See
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.

11 years agoClose a race when statting and reading files.
Paul Eggert [Fri, 18 Jan 2013 05:12:08 +0000 (21:12 -0800)]
Close a race when statting and reading files.

* 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.

11 years ago* doc/emacs/custom.texi (Directory Variables): Fix paren typo.
Glenn Morris [Fri, 18 Jan 2013 01:53:34 +0000 (20:53 -0500)]
* doc/emacs/custom.texi (Directory Variables): Fix paren typo.

11 years ago* autorevert.el (auto-revert-notify-watch-descriptor): Make it
Michael Albinus [Thu, 17 Jan 2013 19:12:40 +0000 (20:12 +0100)]
* autorevert.el (auto-revert-notify-watch-descriptor): Make it
buffer local, again.  This was lost with the fix on 2013-01-12.

11 years agoAuto-commit of generated files.
Glenn Morris [Thu, 17 Jan 2013 11:17:35 +0000 (06:17 -0500)]
Auto-commit of generated files.

11 years ago* eshell/esh-util.el (eshell-path-env): Make it buffer local, in
Jürgen Hötzel [Thu, 17 Jan 2013 10:01:33 +0000 (11:01 +0100)]
* eshell/esh-util.el (eshell-path-env): Make it buffer local, in
order to support several eshell buffers in parallel.

11 years ago* autorevert.el (auto-revert-use-notify): In the :set function, do
Michael Albinus [Thu, 17 Jan 2013 09:06:47 +0000 (10:06 +0100)]
* autorevert.el (auto-revert-use-notify): In the :set function, do
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'.

11 years ago* lisp.h (toplevel): Add comment about using Lisp_Save_Value
Dmitry Antipov [Thu, 17 Jan 2013 06:29:40 +0000 (10:29 +0400)]
* lisp.h (toplevel): Add comment about using Lisp_Save_Value
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.

11 years ago* buffer.h (NARROWED, BUF_NARROWED): Drop unused macros.
Dmitry Antipov [Thu, 17 Jan 2013 05:52:13 +0000 (09:52 +0400)]
* buffer.h (NARROWED, BUF_NARROWED): Drop unused macros.
(DECODE_POSITION, BUFFER_CHECK_INDIRECTION): Fix indentation.
* buffer.c (toplevel, syms_of_buffer): Drop old commented-out
debugging stubs.

11 years agoetags.el fix for bug#13412
Glenn Morris [Thu, 17 Jan 2013 02:07:25 +0000 (21:07 -0500)]
etags.el fix for bug#13412

* lisp/progmodes/etags.el (tags-table-check-computed-list):
Preserve point in tags buffer.

11 years ago* src/fns.c (Frandom): Doc fix.
Glenn Morris [Thu, 17 Jan 2013 02:05:16 +0000 (21:05 -0500)]
* src/fns.c (Frandom): Doc fix.

11 years ago* lisp/emacs-lisp/trace.el (trace--read-args): Use a closure and an honest
Stefan Monnier [Wed, 16 Jan 2013 19:06:15 +0000 (14:06 -0500)]
* lisp/emacs-lisp/trace.el (trace--read-args): Use a closure and an honest
call to `eval' rather than a backquoted lambda.

11 years agoMerge from gnulib.
Paul Eggert [Wed, 16 Jan 2013 17:45:39 +0000 (09:45 -0800)]
Merge from gnulib.

11 years agoAuto-commit of loaddefs files.
Glenn Morris [Wed, 16 Jan 2013 12:21:01 +0000 (07:21 -0500)]
Auto-commit of loaddefs files.

11 years agoAuto-commit of generated files.
Glenn Morris [Wed, 16 Jan 2013 12:17:36 +0000 (07:17 -0500)]
Auto-commit of generated files.

11 years agoAuto-commit of generated files.
Glenn Morris [Wed, 16 Jan 2013 11:17:35 +0000 (06:17 -0500)]
Auto-commit of generated files.

11 years agoNEWS tweak
Glenn Morris [Wed, 16 Jan 2013 08:10:18 +0000 (00:10 -0800)]
NEWS tweak

11 years agoBackport configure.ac message tweak from trunk
Glenn Morris [Wed, 16 Jan 2013 08:08:34 +0000 (00:08 -0800)]
Backport configure.ac message tweak from trunk

11 years ago* configure.ac: Document that --enable-gcc-warnings emits errors.
Paul Eggert [Wed, 16 Jan 2013 06:04:58 +0000 (22:04 -0800)]
* configure.ac: Document that --enable-gcc-warnings emits errors.

Fixes: debbugs:13448
11 years ago* lisp/gnus/smiley.el (smiley-style): Make the file loadable in batch mode.
Glenn Morris [Wed, 16 Jan 2013 02:46:25 +0000 (21:46 -0500)]
* lisp/gnus/smiley.el (smiley-style): Make the file loadable in batch mode.
Not likely to be very useful, of course, but helps with automated testing.

11 years ago* doc/emacs/trouble.texi (Crashing): Not all addr2line have -p. (Bug#13445)
Glenn Morris [Wed, 16 Jan 2013 02:11:10 +0000 (21:11 -0500)]
* doc/emacs/trouble.texi (Crashing): Not all addr2line have -p.  (Bug#13445)

11 years agoDoc fixes related to "(declare (indent symbol))" (bug#13450)
Glenn Morris [Wed, 16 Jan 2013 02:03:06 +0000 (21:03 -0500)]
Doc fixes related to "(declare (indent symbol))" (bug#13450)

* doc/lispref/macros.texi (Indenting Macros):
Fix order of an indent symbol's arguments.

* lisp/emacs-lisp/lisp-mode.el (lisp-indent-function): Doc fix.

11 years ago* doc/emacs/custom.texi (Custom Themes): Fix typo.
Glenn Morris [Wed, 16 Jan 2013 01:47:40 +0000 (20:47 -0500)]
* doc/emacs/custom.texi (Custom Themes): Fix typo.

11 years ago* rmailmm.el (rmail-insert-mime-forwarded-message): Revert 2012-12-29 change
Glenn Morris [Wed, 16 Jan 2013 01:44:11 +0000 (20:44 -0500)]
* rmailmm.el (rmail-insert-mime-forwarded-message): Revert 2012-12-29 change
 Ref:
<http://lists.gnu.org/archive/html/emacs-devel/2013-01/msg00360.html>

(Do not merge to trunk)

11 years ago* Makefile.in (install-arch-indep): Put back a chmod
Glenn Morris [Wed, 16 Jan 2013 01:41:31 +0000 (20:41 -0500)]
* Makefile.in (install-arch-indep): Put back a chmod
that was removed 2012-05-19.  (Bug#13430)

11 years ago* src/alloc.c (free_save_value): Now static.
Paul Eggert [Tue, 15 Jan 2013 21:38:58 +0000 (13:38 -0800)]
* src/alloc.c (free_save_value): Now static.

11 years ago* make-docfile.c (write_globals): Make it a bit clearer.
Paul Eggert [Tue, 15 Jan 2013 21:26:01 +0000 (13:26 -0800)]
* make-docfile.c (write_globals): Make it a bit clearer.

This pacifies GCC 4.7.2 when Emacs is configured with
--enable-link-time-optimization and --enable-gcc-warnings.

Fixes: debbugs:13448
11 years ago* keymap.c (map_keymap_internal): Use format_save_value.
Dmitry Antipov [Tue, 15 Jan 2013 10:14:31 +0000 (14:14 +0400)]
* keymap.c (map_keymap_internal): Use format_save_value.
(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.

11 years ago* src/lisp.h (XSAVE_POINTER, XSAVE_INTEGER): Change to allow extraction
Dmitry Antipov [Tue, 15 Jan 2013 09:22:25 +0000 (13:22 +0400)]
* src/lisp.h (XSAVE_POINTER, XSAVE_INTEGER): Change to allow extraction
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.

11 years agoSome convenient bits to deal with Lisp_Save_Values.
Dmitry Antipov [Tue, 15 Jan 2013 08:38:07 +0000 (12:38 +0400)]
Some convenient bits to deal with Lisp_Save_Values.
* 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.

11 years ago* lisp/emacs-lisp/advice.el (ad-preactivate-advice): Adjust the cleanup to
Stefan Monnier [Tue, 15 Jan 2013 06:05:22 +0000 (01:05 -0500)]
* lisp/emacs-lisp/advice.el (ad-preactivate-advice): Adjust the cleanup to
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.

11 years ago* lisp/gnus/nnimap.el (nnimap-keepalive): Don't throw an error if there's no
Stefan Monnier [Tue, 15 Jan 2013 04:26:28 +0000 (23:26 -0500)]
* lisp/gnus/nnimap.el (nnimap-keepalive): Don't throw an error if there's no
more imap process running.

11 years ago* lisp/progmodes/which-func.el (which-function): Silence imenu errors.
Stefan Monnier [Tue, 15 Jan 2013 04:20:13 +0000 (23:20 -0500)]
* lisp/progmodes/which-func.el (which-function): Silence imenu errors.

Fixes: debbugs:13433
11 years ago* progmodes/sql.el: (sql-imenu-generic-expression):
Michael Mauger [Tue, 15 Jan 2013 03:21:56 +0000 (22:21 -0500)]
* progmodes/sql.el: (sql-imenu-generic-expression):
(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.

11 years ago* progmodes/sql.el (sql-output-to-send): Remove, unused.
Michael Mauger [Tue, 15 Jan 2013 02:35:45 +0000 (21:35 -0500)]
* progmodes/sql.el (sql-output-to-send): Remove, unused.
(sql-interactive-remove-continuation-prompt):
(sql-send-magic-terminator, sql-interactive-mode): Remove references.

11 years agognus-sum.el: gnus-sum: fix `gnus-summary-from-or-to-or-newsgroups' address comparison
Julien Danjou [Mon, 14 Jan 2013 22:09:16 +0000 (22:09 +0000)]
gnus-sum.el: gnus-sum: fix `gnus-summary-from-or-to-or-newsgroups' address comparison

11 years agoAvoid needless casts with XSAVE_POINTER.
Paul Eggert [Mon, 14 Jan 2013 17:46:14 +0000 (09:46 -0800)]
Avoid needless casts with XSAVE_POINTER.

* 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.

11 years agoSync window-point and point in calendar-redraw
Leo Liu [Mon, 14 Jan 2013 15:39:04 +0000 (23:39 +0800)]
Sync window-point and point in calendar-redraw

Fixes: debbugs:13420
11 years agoAuto-commit of loaddefs files.
Glenn Morris [Mon, 14 Jan 2013 11:20:54 +0000 (06:20 -0500)]
Auto-commit of loaddefs files.

11 years ago* lisp.h (toplevel): Fix typo in comment.
Dmitry Antipov [Mon, 14 Jan 2013 11:16:14 +0000 (15:16 +0400)]
* lisp.h (toplevel): Fix typo in comment.

11 years agoFix compilation with GC_MARK_STACK == GC_USE_GCPROS_AS_BEFORE.
Dmitry Antipov [Mon, 14 Jan 2013 11:07:50 +0000 (15:07 +0400)]
Fix compilation with GC_MARK_STACK == GC_USE_GCPROS_AS_BEFORE.
* eval.c (eval_sub): Protect `form' from being GCed before its
car and cdr becomes protected with the backtrace entry.

11 years agoMake Lisp_Save_Value more versatile storage for up to four objects.
Dmitry Antipov [Mon, 14 Jan 2013 09:55:21 +0000 (13:55 +0400)]
Make Lisp_Save_Value more versatile storage for up to four objects.
* lisp.h (toplevel): Enumeration to describe types of saved objects.
(struct Lisp_Save_Value): New layout.  Adjust comments.
(XSAVE_POINTER): New macro.
(XSAVE_INTEGER): Likewise.
(allocate_misc): Add prototype.
(free_misc): Likewise.
* alloc.c (allocate_misc): Now global.
(free_misc): Likewise.  Adjust comment.
(make_save_value): Use new Lisp_Save_Value layout.  Adjust comment.
(free_save_value): Likewise.
(mark_object): Likewise.
* editfns.c (save_excursion_save): Pack everything within
Lisp_Save_Value and so avoid xmalloc.
(save_excursion_restore): Adjust to match new layout.  Use free_misc
because we do not allocate extra memory any more.  Add eassert.
* print.c (print_object): New code to print Lisp_Save_Value.  Do not
rely on valid_lisp_object_p if !GC_MARK_STACK.  Adjust comments.
* dired.c, fileio.c, font.c, ftfont.c, gtkutil.c, keymap.c,
* lread.c, nsmenu.m, nsterm.h, xfns.c, xmenu.c, xselect.c:
Use XSAVE_POINTER and XSAVE_INTEGER where appropriate.

11 years agoRemove compilation-error-regexp-alist-alist (presumed) extraneous backslash
Glenn Morris [Mon, 14 Jan 2013 01:09:38 +0000 (17:09 -0800)]
Remove compilation-error-regexp-alist-alist (presumed) extraneous backslash

11 years agoFix interpretation of gnu line.col1-col2 error message format
Glenn Morris [Mon, 14 Jan 2013 01:08:13 +0000 (17:08 -0800)]
Fix interpretation of gnu line.col1-col2 error message format

* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist):
* test/automated/compile-tests.el (compile-tests--test-regexps-data):
Fix interpretation of gnu line.col1-col2 format.

Fixes: debbugs:13335
11 years agoDelete merge marker.
Romain Francoise [Sun, 13 Jan 2013 21:26:10 +0000 (22:26 +0100)]
Delete merge marker.

11 years agoMerge from emacs-24; up to 2012-12-10T20:27:33Z!eggert@cs.ucla.edu
Glenn Morris [Sun, 13 Jan 2013 20:03:01 +0000 (12:03 -0800)]
Merge from emacs-24; up to 2012-12-10T20:27:33Z!eggert@cs.ucla.edu

11 years agoChangeLog whitespace trivia
Glenn Morris [Sun, 13 Jan 2013 19:58:02 +0000 (11:58 -0800)]
ChangeLog whitespace trivia

11 years agoNEWS placeholder for scroll-bar-adjust-thumb-portion
Glenn Morris [Sun, 13 Jan 2013 19:55:51 +0000 (11:55 -0800)]
NEWS placeholder for scroll-bar-adjust-thumb-portion

11 years agoDoc fix.
Richard M. Stallman [Sun, 13 Jan 2013 19:48:04 +0000 (14:48 -0500)]
Doc fix.

11 years agoFix bug that f in Rmail, in some situations, would insert entire Rmail file.
Richard M. Stallman [Sun, 13 Jan 2013 19:46:27 +0000 (14:46 -0500)]
Fix bug that f in Rmail, in some situations, would insert entire Rmail file.

11 years agoFix spelling error.
Jan Djärv [Sun, 13 Jan 2013 19:36:05 +0000 (20:36 +0100)]
Fix spelling error.

11 years agoAvoid warnings from cus-start.el regarding scroll-bar-adjust-thumb-portion.
Eli Zaretskii [Sun, 13 Jan 2013 17:47:45 +0000 (19:47 +0200)]
Avoid warnings from cus-start.el regarding scroll-bar-adjust-thumb-portion.

 lisp/cus-start.el (all): Avoid warnings about
 scroll-bar-adjust-thumb-portion on platforms where it is not
 defined.

11 years ago* nsfont.m (LCD_SMOOTHING_MARGIN): New define.
Jan Djärv [Sun, 13 Jan 2013 14:29:22 +0000 (15:29 +0100)]
* nsfont.m (LCD_SMOOTHING_MARGIN): New define.
(nsfont_draw): Remove disabling of LCD smoothing.
(ns_glyph_metrics): Add LCD_SMOOTHING_MARGIN to bearings to fix
Bug#11484 with LCD smooting on.

11 years agoMerge Org 7.9.3d (commit e8f5b0ad).
Bastien Guerry [Sun, 13 Jan 2013 10:33:16 +0000 (11:33 +0100)]
Merge Org 7.9.3d (commit e8f5b0ad).

11 years agoChangeLog fix (no need to merge to trunk)
Glenn Morris [Sat, 12 Jan 2013 19:31:25 +0000 (11:31 -0800)]
ChangeLog fix (no need to merge to trunk)

11 years agoAdd tiny change.
Jan Djärv [Fri, 11 Jan 2013 05:10:11 +0000 (06:10 +0100)]
Add tiny change.

11 years agoMake scroll-bar-adjust-thumb-portion customizable, adjust documentation.
Jan Djärv [Fri, 11 Jan 2013 05:09:30 +0000 (06:09 +0100)]
Make scroll-bar-adjust-thumb-portion customizable, adjust documentation.

* lisp/cus-start.el (all): Add scroll-bar-adjust-thumb-portion.

* src/xterm.c (syms_of_xterm): Adjust documentation for
scroll-bar-adjust-thumb-portion.

11 years agoIntroduce scroll-bar-adjust-thumb-portion.
Jan Djärv [Fri, 11 Jan 2013 04:57:45 +0000 (05:57 +0100)]
Introduce scroll-bar-adjust-thumb-portion.

* xterm.c (scroll-bar-adjust-thumb-portion): New variable to
determine whether scroll bar thumb size should be adjusted or
not. Use variable for MOTIF.

* gtkutil.c (scroll-bar-adjust-thumb-portion): Use variable for
GTK.

11 years ago* nsterm.m (keyDown:): Set processingCompose to NO if an emacs key
Jan Djärv [Sun, 13 Jan 2013 12:08:31 +0000 (13:08 +0100)]
* nsterm.m (keyDown:): Set processingCompose to NO if an emacs key
event is generated.
(doCommandBySelector:): Set processingCompose to NO.

11 years ago* nsfont.m (ns_findfonts): Add block/unblock_input calls.
Jan Djärv [Sun, 13 Jan 2013 12:05:17 +0000 (13:05 +0100)]
* nsfont.m (ns_findfonts): Add block/unblock_input calls.
Remove check for fkeys count > zero, block/unblock fixes the real bug.
(nsfont_list_family): Add block/unblock_input calls.
(nsfont_open): Move block_input earlier.  Add unblock_input before early
return.
(nsfont_draw): Add block/unblock_input calls.

11 years ago* lisp/jit-lock.el (jit-lock-debug-mode): New minor mode.
Stefan Monnier [Sun, 13 Jan 2013 01:23:48 +0000 (20:23 -0500)]
* lisp/jit-lock.el (jit-lock-debug-mode): New minor mode.
(jit-lock--debug-fontifying): New var.
(jit-lock--debug-fontify): New function.
* lisp/subr.el (condition-case-unless-debug): Don't prevent catching the
error, just let the debbugger run.
* lisp/emacs-lisp/timer.el (timer-event-handler): Don't prevent debugging
timer code and don't drop errors silently.

11 years agoRemove <>, since makes contents invisible on http://ftp.gnu.org
Glenn Morris [Sun, 13 Jan 2013 00:51:49 +0000 (16:51 -0800)]
Remove <>, since makes contents invisible on http://ftp.gnu.org

11 years ago* autorevert.el (auto-revert-notify-handler): Use `file-equal-p'.
Michael Albinus [Sat, 12 Jan 2013 19:24:27 +0000 (20:24 +0100)]
* autorevert.el (auto-revert-notify-handler): Use `file-equal-p'.

11 years ago* autorevert.el (auto-revert-notify-watch-descriptor): Give it
Michael Albinus [Sat, 12 Jan 2013 13:30:00 +0000 (14:30 +0100)]
* autorevert.el (auto-revert-notify-watch-descriptor): Give it
`permanent-local' property.

11 years agoFix filtering of file notification events in autorevert.el.
Eli Zaretskii [Sat, 12 Jan 2013 11:25:39 +0000 (13:25 +0200)]
Fix filtering of file notification events in autorevert.el.

 lisp/autorevert.el (auto-revert-notify-handler): Fix filtering of
 file notification by ACTION. For filtering by file name, compare
 only the non-directory part of the file name.

11 years agoAuto-commit of generated files.
Glenn Morris [Sat, 12 Jan 2013 11:17:37 +0000 (06:17 -0500)]
Auto-commit of generated files.

11 years ago* indent.c (Fvertical_motion): Remove now-incorrect GCPROs
Paul Eggert [Sat, 12 Jan 2013 06:15:12 +0000 (22:15 -0800)]
* indent.c (Fvertical_motion): Remove now-incorrect GCPROs

for old_charpos and old_bytepos.

11 years agoEnable conservative stack scanning for all architectures.
Paul Eggert [Sat, 12 Jan 2013 05:21:06 +0000 (21:21 -0800)]
Enable conservative stack scanning for all architectures.

Suggested by Stefan Monnier in
<http://lists.gnu.org/archive/html/emacs-devel/2013-01/msg00183.html>.
* configure.ac (GC_MARK_STACK): Remove.

11 years ago* lisp/autorevert.el: Use cl-lib instead of cl.
Stefan Monnier [Sat, 12 Jan 2013 04:17:08 +0000 (23:17 -0500)]
* lisp/autorevert.el: Use cl-lib instead of cl.

11 years ago* lisp/vc/vc-bzr.el (vc-bzr--sanitize-header): New function.
Stefan Monnier [Sat, 12 Jan 2013 03:15:14 +0000 (22:15 -0500)]
* lisp/vc/vc-bzr.el (vc-bzr--sanitize-header): New function.
(vc-bzr-checkin): Use it.
* lisp/vc/log-edit.el (log-edit-extract-headers): Don't presume FUNCTION
will preserve match-data.

Fixes: debbugs:13307
11 years agoRemove obsolete comment about NON_SAVING_SETJMP.
Paul Eggert [Sat, 12 Jan 2013 01:47:07 +0000 (17:47 -0800)]
Remove obsolete comment about NON_SAVING_SETJMP.

11 years agoFix bug with set-time-zone-rule and LOCALTIME_CACHE.
Paul Eggert [Sat, 12 Jan 2013 01:15:06 +0000 (17:15 -0800)]
Fix bug with set-time-zone-rule and LOCALTIME_CACHE.

* editfns.c (set_time_zone_rule) [LOCALTIME_CACHE]:
Clear tzvalbuf_in_environ if this workaround is in effect.
Problem and fix reported by Kazuhiro Ito.

Fixes: debbugs:13415
11 years ago* lib/getopt_.h: Remove trailing CRs that crept in.
Paul Eggert [Fri, 11 Jan 2013 23:28:04 +0000 (15:28 -0800)]
* lib/getopt_.h: Remove trailing CRs that crept in.

11 years ago* lisp/progmodes/js.el: Fix multiline declarations's indentation.
Felix H. Dahlke [Fri, 11 Jan 2013 23:24:52 +0000 (18:24 -0500)]
* lisp/progmodes/js.el: Fix multiline declarations's indentation.
(js--declaration-keyword-re): New var.
(js--multi-line-declaration-indentation): New function.
(js--proper-indentation): Use it.

Fixes: debbugs:8576
11 years agoDisambiguate function and variable references in docstrings.
Aaron S. Hawley [Fri, 11 Jan 2013 23:08:55 +0000 (18:08 -0500)]
Disambiguate function and variable references in docstrings.
* lisp/comint.el (comint-history-isearch-message): Fix ambiguous doc
 string cross-reference(s).

* lisp/ffap.el (ffap-string-at-point-region, ffap-next)
(ffap-string-at-point, ffap-string-around)
(ffap-copy-string-as-kill, ffap-highlight-overlay)
(ffap-literally): Fix ambiguous doc string cross-reference(s).

* lisp/font-lock.el (font-lock-keywords-alist)
(font-lock-removed-keywords-alist): Fix ambiguous doc string
        cross-reference(s).

* lisp/help-mode.el (help-xref-symbol-regexp): Add "call" as a hint for
a cross-reference to a function.

* lisp/info.el (Info-find-emacs-command-nodes): Fix ambiguous doc
 string cross-reference(s).

* lisp/isearch.el (isearch-message-function, isearch-fail-pos): Fix
 ambiguous doc string cross-reference(s).

* lisp/misearch.el (multi-isearch-next-buffer-function): Fix ambiguous
 doc string cross-reference(s).

* lisp/newcomment.el (comment-box): Fix ambiguous doc string
 cross-reference(s).

* lisp/printing.el (pr-txt-printer-alist, pr-ps-printer-alist)
(pr-setting-database): Fix ambiguous doc string
 cross-reference(s).

* lisp/ps-print.el (ps-even-or-odd-pages, ps-spool-buffer-with-faces)
(ps-n-up-filling-database): Fix ambiguous doc string
 cross-reference(s).

* lisp/server.el (server-buffer, server-log): Fix ambiguous doc string
 cross-reference(s).

* lisp/simple.el (newline, delete-backward-char, delete-forward-char)
(minibuffer-history-isearch-message, kill-line, track-eol)
(temporary-goal-column): Fix ambiguous doc string
 cross-reference(s).

* lisp/whitespace.el (whitespace-point)
(whitespace-font-lock-refontify, whitespace-bob-marker)
(whitespace-eob-marker): Fix ambiguous doc string
 cross-reference(s).

* lisp/calc/calc.el (calc-highlight-selections-with-faces)
 (calc-dispatch): Fix ambiguous doc string cross-reference(s).

* lisp/emacs-lisp/edebug.el (edebug-read, edebug-eval-defun): Fix
 ambiguous doc string cross-reference(s).

* lisp/gnus/gnus-start.el (gnus-check-new-newsgroups): Fix ambiguous doc string
 cross-reference(s).

* lisp/gnus/gnus-sum.el (gnus-summary-newsgroup-prefix): Fix ambiguous doc string
 cross-reference(s).

* lisp/international/mule.el (add-to-coding-system-list): Fix ambiguous
 doc string cross-reference(s).

* lisp/progmodes/cc-fonts.el (c-font-lock-keywords-3)
(c++-font-lock-keywords-3, objc-font-lock-keywords-3)
(java-font-lock-keywords-3, idl-font-lock-keywords-3)
(pike-font-lock-keywords-3): Fix ambiguous doc string
 cross-reference(s).

* lisp/progmodes/compile.el (compile): Fix ambiguous doc string
 cross-reference(s).

* lisp/progmodes/etags.el (tags-table-files)
(tags-table-files-function, tags-included-tables-function): Fix
 ambiguous doc string cross-reference(s).

* lisp/progmodes/gdb-mi.el (gdb, gdb-setup-windows)
(gdb-restore-windows): Fix ambiguous doc string
 cross-reference(s).

* lisp/textmodes/flyspell.el (flyspell-mark-duplications-flag)
(flyspell-default-deplacement-commands): Fix ambiguous doc string
 cross-reference(s).

* lisp/textmodes/ispell.el (ispell-accept-output): Fix ambiguous doc
 string cross-reference(s).

* lisp/textmodes/sgml-mode.el (html-tag-help): Fix ambiguous doc string
 cross-reference(s).

* lisp/vc/compare-w.el (compare-ignore-whitespace)
(compare-ignore-case, compare-windows-dehighlight): Fix ambiguous
 doc string cross-reference(s).

* lisp/vc/diff.el (diff): Fix ambiguous doc string cross-reference(s).

* src/insdel.c (Fcombine_after_change_execute, syms_of_insdel): Fix
 ambiguous doc string cross-reference(s).

* src/keyboard.c (Fcommand_execute, syms_of_keyboard): Fix ambiguous
 doc string cross-reference(s).

* src/window.c (Fwindow_point, syms_of_window): Fix ambiguous doc
 string cross-reference(s).

Fixes: debbugs:12686
11 years ago*** empty log message ***
Stefan Monnier [Fri, 11 Jan 2013 23:03:04 +0000 (18:03 -0500)]
*** empty log message ***

11 years agoFix a scoping error.
Michael Albinus [Fri, 11 Jan 2013 22:54:42 +0000 (23:54 +0100)]
Fix a scoping error.

11 years ago* autorevert.el (top): Require 'cl in order to pacify byte compiler.
Michael Albinus [Fri, 11 Jan 2013 22:36:32 +0000 (23:36 +0100)]
* autorevert.el (top): Require 'cl in order to pacify byte compiler.
(auto-revert-notify-rm-watch): Ignore errors.
(auto-revert-notify-add-watch): Ignore errors.  Use '(modify) for
inotify, and '(size last-write-time) for w32notify.  Set
buffer-local `auto-revert-use-notify' to nil when adding a file
watch fails - this is a fallback to the file modification check.
(auto-revert-notify-event-p, auto-revert-notify-event-descriptor)
(auto-revert-notify-event-action)
(auto-revert-notify-event-file-name): New defuns.
(auto-revert-notify-handler): Use them.  Implement first
plausibility checks.
(auto-revert-handler): Handle also `auto-revert-tail-mode'.

11 years agocolor.el: fix color-rgb-to-hsv computing
Julien Danjou [Fri, 11 Jan 2013 15:04:24 +0000 (15:04 +0000)]
color.el: fix color-rgb-to-hsv computing

11 years agoAvoid unnecessary byte position calculation for the gap movement.
Dmitry Antipov [Fri, 11 Jan 2013 13:25:10 +0000 (17:25 +0400)]
Avoid unnecessary byte position calculation for the gap movement.
Since all users of move_gap do CHAR_TO_BYTE for other purposes
anyway, all of them should use move_gap_both instead.
* lisp.h (move_gap): Remove prototype.
* insdel.c (move_gap): Remove.
(move_gap_both): Add eassert.
* editfns.c (Ftranspose_regions): Tweak to use move_gap_both.
* xml.c (parse_region): Likewise.

11 years agoUse point-max-marker and point-min-marker here and there.
Dmitry Antipov [Fri, 11 Jan 2013 10:40:54 +0000 (14:40 +0400)]
Use point-max-marker and point-min-marker here and there.
* lisp/emacs-lisp/ert.el (ert-run-test): Use point-max-marker.
* lisp/erc/erc-dcc.el (erc-dcc-chat-setup): Likewise.
* lisp/gnus/gnus-async.el (gnus-async-article-callback): Likewise.
* lisp/erc/erc-dcc.el (erc-dcc-send-file): Use point-min-marker.
* lisp/gnus/gnus-art.el (gnus-mime-display-security): Use point-min-marker
and point-max-marker.

11 years agoFix last commit in autorevert.el.
Eli Zaretskii [Fri, 11 Jan 2013 09:45:54 +0000 (11:45 +0200)]
Fix last commit in autorevert.el.

 lisp/autorevert.el (auto-revert-notify-rm-watch)
 (auto-revert-notify-add-watch): Fix typos in w32notify function
 names.

11 years agoMS-Windows followup to bugfix #13387.
Eli Zaretskii [Fri, 11 Jan 2013 09:33:54 +0000 (11:33 +0200)]
MS-Windows followup to bugfix #13387.

 nt/inc/unistd.h (O_IGNORE_CTTY): Define, as it is unconditionally
 used in term.c.

11 years agolib/getopt_.h: Regenerate.
Eli Zaretskii [Fri, 11 Jan 2013 09:20:41 +0000 (11:20 +0200)]
lib/getopt_.h: Regenerate.

11 years agolisp/gnus/mml-smime.el: Add mml-smime-encrypt-to-self
Uwe Brauer [Fri, 11 Jan 2013 03:06:13 +0000 (03:06 +0000)]
lisp/gnus/mml-smime.el: Add mml-smime-encrypt-to-self

* mml-smime.el (mml-smime-encrypt-to-self): New user option analogous
to mml2015-encrypt-to-self.
(mml-smime-epg-encrypt): Respect mml-smime-encrypt-to-self.