1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-29 11:02:01 +00:00
Commit Graph

108660 Commits

Author SHA1 Message Date
Leo Liu
ff3d86d099 * lisp/files.el (dir-locals-read-from-file): Check file non-empty
before reading.

Fixes: debbugs:13038
2012-12-01 23:45:38 +08:00
Glenn Morris
b9cf4db5c9 Auto-commit of loaddefs files. 2012-12-01 07:17:48 -05:00
Eli Zaretskii
5d552c2ac3 Fix the MSDOS build.
msdos/sed1v2.inp: Dump emacs.exe and copy to b-emacs.exe before
 generating leim-list.el.
2012-12-01 13:50:05 +02:00
Chong Yidong
a24580314d * fileio.c (Vauto_save_list_file_name): Minor doc fix. 2012-12-01 09:49:48 +08:00
Glenn Morris
f4f3b439bc * doc/misc/rcirc.texi (Notices): Fix typo. 2012-11-30 18:50:49 -05:00
Fabrice Popineau
c7b36b9550 Fix compilation problems with 64-bit MSVC compiler.
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.
2012-11-30 17:14:22 +02:00
Glenn Morris
6247eff516 Fix for jka-compr-compression-info-list not including version extension
* lisp/jka-cmpr-hook.el (jka-compr-get-compression-info):
Remove any version extension before checking filename. 
(jka-compr-compression-info-list): Belated :version bump.

Fixes: debbugs:13006
2012-11-28 00:37:38 -08:00
Chong Yidong
8ecba97da2 * simple.el (transient-mark-mode): Doc fix.
Fixes: debbugs:11523
2012-11-28 15:16:45 +08:00
Chong Yidong
a5bf43bab8 Buffer Menu doc fixes.
* buff-menu.el (Buffer-menu-delete-backwards, Buffer-menu-mode)
(buffer-menu): Doc fix.

Fixes: debbugs:12294
2012-11-28 15:12:56 +08:00
Glenn Morris
a9de9f0c05 * src/data.c (Fboundp): Doc fix re lexical-binding. 2012-11-27 15:45:30 -05:00
Glenn Morris
14d2734642 * src/data.c (Fsymbol_value): Doc fix re lexical-binding. 2012-11-27 15:41:52 -05:00
Roland Winkler
34755291c1 diary-header-line-format: Use keybinding of diary-show-all-entries in the diary buffer 2012-11-27 09:40:49 -06:00
Michael Albinus
c2f5b60af5 * net/tramp-sh.el (tramp-perl-encode): Use "read STDIN" instead of
"<STDIN>".  This is binary safe.
2012-11-27 15:55:25 +01:00
Stefan Monnier
369f945d0b * lisp/textmodes/table.el (table-insert): Don't use `symbol-name' on
lexically scoped variables.

Fixes: debbugs:13005
2012-11-26 21:06:19 -05:00
Glenn Morris
999e745ef7 vc-hooks.el workaround for bug#11490
* vc/vc-hooks.el (vc-mistrust-permissions): Default to t, to avoid data-loss.
2012-11-26 18:50:12 -05:00
Fabián Ezequiel Gallina
98f99594f7 * progmodes/python.el:
(python-indent-guess-indent-offset): If indentation is guessed
make python-indent-offset variable buffer local.
2012-11-26 20:31:06 -03:00
Fabián Ezequiel Gallina
207cb73c18 Fix Imenu regression.
* progmodes/python.el:
(python-nav-beginning-of-defun): Fix forward movement when
statement(s) separates point from defun.
(python-imenu-prev-index-position): New function.
2012-11-26 18:45:58 -03:00
Eli Zaretskii
3fa1e84d43 Don't crash if internal-char-font is called on non-GUI frames.
src/fontset.c (Finternal_char_font): Return nil on non-GUI frames.
 (Bug#11964)
2012-11-26 19:46:35 +02:00
Eli Zaretskii
865f7d8fa9 Fix last commit's log entry.
Fixes: debbugs:12989
2012-11-26 19:12:44 +02:00
Eli Zaretskii
33a488e4e6 Partial fix for bug #12989 with buffer-file-type annoyances.
lisp/subr.el (buffer-file-type): Declare with defvar-local.  Doc fix.
 lisp/dos-w32.el (find-file-not-found-set-buffer-file-coding-system):
 Don't set buffer-file-type.  Return nil.
2012-11-26 19:09:04 +02:00
Glenn Morris
502071919d * lisp/hippie-exp.el (hippie-expand-try-functions-list): Re-autoload it.
Fixes: debbugs:12982
2012-11-25 17:41:00 -08:00
Eli Zaretskii
2147c6ab51 Fix bug #11964 with crashes inside internal-char-font on non-GUI frames.
lips/descr-text.el (describe-char-padded-string): Call
 internal-char-font only on GUI frames.
2012-11-25 18:28:38 +02:00
Glenn Morris
0d35edba15 Auto-commit of loaddefs files. 2012-11-25 07:23:32 -05:00
Glenn Morris
ea9c9011a2 Auto-commit of generated files. 2012-11-25 07:19:00 -05:00
Andreas Schwab
58b1ae1e17 * buff-menu.el (Buffer-menu-buffer+size-width): Fix customize type
and obsoletion message.
2012-11-25 00:07:13 +01:00
Stefan Monnier
35a1051652 * lisp/emacs-lisp/cl-macs.el (cl--transform-lambda): Add back `declare' in
the constructs to keep outside of the `cl-block'.

Fixes: debbugs:12977
2012-11-24 16:34:28 -05:00
Eli Zaretskii
50a60e0257 Fix the MS-Windows build broken by absence of the *.manifest files.
make-dist (nt): Adjust to changes in names of the *.manifest files.
2012-11-24 18:58:28 +02:00
Chong Yidong
ea0d348b1c Bump version to 24.2.90.
Regenerate AUTHORS and ldefs-boot.el.
2012-11-24 23:31:31 +08:00
Chong Yidong
1e1bbf410d Minor update to make-tarball.txt. 2012-11-24 23:24:40 +08:00
Paul Eggert
d454751173 Revert recent change for Bug#8855.
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.
2012-11-24 00:24:11 -08:00
Chong Yidong
0c5ef13335 Fix follow-mouse clicks on undraggable mode/header lines.
* mouse.el (mouse-drag-line): Even if the line is not draggable,
keep reading until we get the up-event anyway, in order to process
the up-event for mouse-1-click-follows-link.

Fixes: debbugs:12971
2012-11-24 16:15:00 +08:00
Eli Zaretskii
22294a56e8 Fix assertion violations when clicking on Info bread-crumbs.
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.
2012-11-24 09:25:52 +02:00
Eli Zaretskii
259719a65d Fix ChangeLog entries for the last commit. 2012-11-24 08:24:13 +02:00
Paul Eggert
6d4e8f62e9 Fix a race condition with glib (Bug#8855).
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'.
2012-11-23 14:20:31 -08:00
Stefan Monnier
002c019c34 * lisp/emacs-lisp/bytecomp.el (byte-compile-file): Setup default value for
lexical-binding.

Fixes: debbugs:12938
2012-11-23 16:49:13 -05:00
Wolfgang Jenkner
977f932513 lisp/image-mode.el (image-transform-check-size): Use assertions only
for images of type imagemagick.

Otherwise no error, image-transform-fit-to-{width,height} is
silently ignored, as before.  Doc fix.
2012-11-23 18:41:01 +01:00
Martin Rudalics
0d4bb04f1a Correct and reword recent changes to window.texi.
* windows.texi (Basic Windows): Fix typo.
(Windows and Frames): Fix example.  Move description of
window-in-direction here.
(Recombining Windows): Fix example.
(Buffers and Windows): Fix description of
replace-buffer-in-windows.
(Switching Buffers): Reword.
(Display Action Functions): Minor adjustments.
(Choosing Window Options): Minor fixes.
(Window History): Minor rewording.
(Dedicated Windows): Correct and reword part describing how
dedicatedness affects functions removing buffers or windows.
* buffers.texi (The Buffer List): Fix description of
bury-buffer.
2012-11-23 15:39:07 +01:00
Chong Yidong
90d99fdf02 * modes.texi (%-Constructs): Fix statement about mode construct padding.
Fixes: debbugs:12866
2012-11-23 16:32:43 +08:00
Eli Zaretskii
24becea4a7 Fix cursor display when several display strings follow each other.
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.
2012-11-23 10:27:05 +02:00
Juri Linkov
61a2a12285 * lisp/dired.el (dired-mark): Add optional arg `interactive'.
Check for `use-region-p' if `interactive' is non-nil.
(dired-unmark, dired-flag-file-deletion): Add optional arg
`interactive'.  Call `dired-mark' with the arg `interactive'.

Fixes: debbugs:10624
2012-11-23 09:59:43 +02:00
Chong Yidong
bccffa8374 * faces.el (color-defined-p): Doc fix.
Fixes: debbugs:12853
2012-11-23 15:56:27 +08:00
Eli Zaretskii
8654a41b44 Fix pgx in .gdbinit when CHECK_LISP_OBJECT_TYPE is defined.
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).
2012-11-23 09:54:33 +02:00
Juri Linkov
cc4c01bd96 * lisp/wdired.el: Revert 2012-10-17 change partly and replace it with
Patch by Christopher Schmidt <christopher@ch.ristopher.com>.
(wdired-finish-edit): Add marks for new file names to
`wdired-old-marks'.  Restore marks using `dired-mark-remembered'
after `revert-buffer'.
(wdired-do-renames): Remove calls to `dired-remove-file',
`dired-add-file', `dired-add-entry'.

Fixes: debbugs:11795
2012-11-23 09:28:37 +02:00
Alan Mackenzie
dc310ed0ab Bump CC Mode's version number to 5.32.4. 2012-11-21 20:47:09 +00:00
Alan Mackenzie
b03aabdac5 Fix bugs in the CC Mode state cache. Enhance a debugging mechanism. 2012-11-21 20:41:03 +00:00
Eli Zaretskii
cb5867b1f8 Fix bug #12930 with vertical-motion through a display string.
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.
2012-11-21 21:28:14 +02:00
Stefan Monnier
365fc14aa4 * doc/lispref/debugging.texi (Profiling): Make it more clear
that --enable-profiling is about profiling the C code.
2012-11-21 09:14:42 -05:00
Glenn Morris
0e69443dde Auto-commit of generated files. 2012-11-21 07:17:28 -05:00
Glenn Morris
b6729a180f Add a bit more about profiling to the lispref
* doc/lispref/debugging.texi (Profiling):
Add some basic information about the profile report buffer.
(Debugging): Mention profiling in the introduction.
2012-11-20 20:52:03 -05:00
Glenn Morris
38a2f91778 * doc/lispref/debugging.texi (Profiling) [!tex]: Mention --enable-profiling. 2012-11-20 20:32:09 -05:00