1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-05 08:53:45 +00:00
Commit Graph

109321 Commits

Author SHA1 Message Date
Glenn Morris
a4b0cca119 Merge from emacs-24; up to 2012-12-01T13:25:13Z!cyd@gnu.org 2012-12-21 11:32:43 -08:00
Glenn Morris
160b385201 No need to mention generated files in ChangeLogs
(at least there should be no blank line separating this from the
actual change)
2012-12-21 11:16:15 -08:00
Glenn Morris
d72a27935e * doc/emacs/emacs-xtra.texi (copying): The FSF does not sell copies of this.
Simply include doclicense.
2012-12-21 11:08:32 -08:00
Glenn Morris
0b1af10630 May as well just include doclicense.texi in all doc/misc manuals 2012-12-21 11:01:24 -08:00
Glenn Morris
8ee7002855 Include a copy of GFDL, which @copying says is included 2012-12-21 10:55:16 -08:00
Glenn Morris
6bf430d146 Don't say "buying copies from the FSF" for manuals they do not publish
Ref "License Notices for Documentation" in maintain.info
2012-12-21 10:36:41 -08:00
Glenn Morris
08953d7f7a * doc/misc/erc.texi: No need to include gpl in this small manual. 2012-12-21 10:14:29 -08:00
Eli Zaretskii
bb085aed95 src/fileio.c (Finsert_file_contents): Doc fix. 2012-12-21 13:52:18 +02:00
Eli Zaretskii
7efa3fb357 Possibly fix bug #13086 with losing track of subprocesses on MS-Windows.
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>.
2012-12-21 13:21:35 +02:00
Michael Albinus
0e9c769371 * simple.el (process-file): Overwrite stderr file, if exists. 2012-12-21 09:10:26 +01:00
Chong Yidong
c1f02afadf * buffer.c (Fset_buffer_major_mode): Doc fix.
Fixes: debbugs:13231
2012-12-21 16:04:27 +08:00
Chong Yidong
07b9c0be50 * modes.texi (Auto Major Mode): Fix typo.
Fixes: debbugs:13230
2012-12-21 15:56:47 +08:00
Chong Yidong
34b4b7eb7e Make read-char-by-name signal an error for invalid input.
* international/mule-cmds.el (read-char-by-name): Signal an error
if the user does not supply a valid character.

* editfns.c (Finsert_char): Since read-char-by-name now signals an
error for invalid chars, don't check for a nil return value.

Fixes: debbugs:13177
2012-12-21 15:51:33 +08:00
Daiki Ueno
3eb0509259 * epg.el (epg-error): Set `error-message' property. 2012-12-21 16:35:02 +09:00
Daiki Ueno
c660916409 * epg.el (epg--start): Print GPG_AGENT_INFO in the debug buffer. 2012-12-21 16:21:35 +09:00
Chong Yidong
aa26f34509 * simple.el (transpose-subr-1): Preserve marker positions
by changing the insertion sequence.

Fixes: debbugs:13122
2012-12-21 13:42:59 +08:00
Kelly Dean
05c22d878f * simple.el (kill-region): Deactivate mark even for empty regions. (tiny change)
Fixes: debbugs:13169
2012-12-21 11:49:28 +08:00
Chong Yidong
f5733f8759 * help-fns.el (describe-variable): Make sure we get the right buffer name.
Suggested by Kelly Dean.

Fixes: debbugs:13105
2012-12-21 11:37:02 +08:00
Chong Yidong
594f37aae9 * sort.el (sort-subr): Doc fix.
Fixes: debbugs:13056
2012-12-21 11:17:57 +08:00
Chong Yidong
1b947faa1d * frames.texi (Mouse Commands): Fix description of the effect of mouse dragging.
Fixes: debbugs:13049
2012-12-21 11:04:38 +08:00
Chong Yidong
6e55f03e36 * customize.texi (Simple Types): Document key-sequence type.
Fixes: debbugs:13048
2012-12-21 10:56:18 +08:00
Michael Mauger
fab6916d0c * comint.el (comint-redirect-previous-input-string): New variable.
(comint-redirect-setup, comint-redirect-cleanup)
(comint-redirect-preoutput-filter): Use it.  Fixes redirection bug.
(comint-redirect-preoutput-filter): Fix verbose message.
2012-12-20 21:08:29 -05:00
Dmitry Antipov
1300288527 Avoid calls to CHAR_TO_BYTE if byte position is known.
* editfns.c (make_buffer_string_both): Use move_gap_both.
(Fbuffer_string): Use make_buffer_string_both.
* marker.c (buf_charpos_to_bytepos): Convert to eassert.
Adjust comment.
(buf_bytepos_to_charpos): Likewise.
(charpos_to_bytepos): Remove.
* fileio.c (Finsert_file_contents): Use move_gap_both.
* search.c (Freplace_match): Likewise.
* process.c (process_send_region): Likewise. Use convenient
names for byte positions.
* lisp.h (charpos_to_bytepos): Remove prototype.
* indent.c (scan_for_column): Use CHAR_TO_BYTE.
* insdel.c (move_gap): Likewise.
2012-12-20 20:09:05 +04:00
Paul Eggert
99e9311c31 * xdisp.c (redisplay_internal): Remove now-unused local. 2012-12-20 06:57:40 -08:00
Stefan Monnier
e02230bf34 * src/xdisp.c (select_frame_for_redisplay, ensure_selected_frame): Remove.
(redisplay_internal): Don't bother selecting the frame to get the
proper value of frame-local variables.
2012-12-20 09:03:34 -05:00
Michael Albinus
006faa4118 * ob.el (org-babel-temp-file): Fix setting of
`temporary-file-directory' on remote hosts.

* ob-eval.el (org-babel-shell-command-on-region): Use
`process-file' instead of `call-process-region'.  The latter one
does not work on remote hosts.
2012-12-20 14:15:43 +01:00
Michael Albinus
91b982a035 * progmodes/grep.el (rgrep): Escape command line. Sometimes, it
is too long for Tramp.  See discussion in
<http://thread.gmane.org/gmane.emacs.tramp/8233/focus=8244>.

* progmodes/compile.el (compilation-start): Remove line escape template.
2012-12-20 12:15:38 +01:00
Dmitry Antipov
1687fb14cd * textprop.c (set_text_properties_1): Do not allow NULL interval.
Rename 4th argument since it may be buffer or string.  Adjust comment.
* intervals.c (graft_intervals_info_buffer): Find an interval here.
2012-12-20 12:49:21 +04:00
Bastien Guerry
acc650b806 Fix typos. 2012-12-20 09:18:23 +01:00
Akinori MUSHA
018246572c * Makefile.in (install-arch-dep): Ignore chmod errors (tiny change)
Fixes: debbugs:13233
2012-12-19 23:56:56 -08:00
Dmitry Antipov
87523aedc8 * vc/ediff-ptch.el (ediff-map-patch-buffer): Use `point-min-marker'.
Adjust comment.
2012-12-20 09:05:41 +04:00
Michael Albinus
ed7367b19a * NEWS: Tramp implements file-acl' and set-file-acl'. 2012-12-19 22:32:56 +01:00
Michael Albinus
15ccf05eb5 * files.texi (Magic File Names): Add `file-acl',
`file-selinux-context', `set-file-acl' and
`set-file-selinux-context'.  Make the list consistent.
2012-12-19 22:25:58 +01:00
Tassilo Horn
ff3dda258d * themes/tsdh-dark-theme.el (tsdh-dark): Add customizations of
many new faces.
2012-12-19 21:40:50 +01:00
Jonas Bernoulli
ee3c0aeca4 * lisp/emacs-lisp/lisp-mnt.el (lm-section-end): Always end before the
following non-comment text.
(lm-header-multiline): Continuation lines need to be indented more than
the first line.
(lm-homepage): New function.
(lm-with-file): Don't be confused if narrowing is in effect.
* doc/lispref/tips.texi (Library Headers): New header keyword `Homepage'.
Make continuation lines syntax more precise.

Fixes: debbugs:13207
2012-12-19 14:51:40 -05:00
Stefan Monnier
f4d79bd021 * lisp/vc/diff-mode.el (diff-post-command-hook): Don't ignore changes at the
very beginning of a hunk (e.g. killing the first line).
2012-12-19 14:41:43 -05:00
Dmitry Antipov
a2f07cd282 * coding.c (Fdetect_coding_region): Do not check start and end with
CHECK_NUMBER_COERCE_MARKER since validate_region does that itself.
(code_convert_region): Likewise.
2012-12-19 19:52:48 +04:00
Paul Eggert
3f781c75ac Spelling fix. 2012-12-19 05:56:49 -08:00
Michael Albinus
3c532af617 * net/tramp-sh.el (tramp-sh-handle-file-acl): Delete empty lines
and text properties from returned ACL string.
(tramp-sh-handle-set-file-acl): Do not use additional parentheses
for "setfacl" command.
2012-12-19 14:01:16 +01:00
Eli Zaretskii
474d441e12 Follow symlinks in MS-Windows emulations of ACL functions.
src/w32.c (acl_get_file, acl_set_file): Run the file name through
 map_w32_filename, and resolve any symlinks in the file name, like
 Posix platforms do.
 (acl_set_file): Call revert_to_self, if any privileges were
 enabled.
2012-12-18 21:05:56 +02:00
Michael Albinus
e0d01ef3f8 * net/tramp.el (tramp-error-with-buffer): Give a hint to use
`tramp-cleanup-this-connection', when the process has died.
(Bug#13151)
2012-12-18 14:37:06 +01:00
Glenn Morris
a1d25d028b Simply refer to main file semantic.texi for copying conditions
(rather than stating a slightly different set of conditions).
This is consistent with eg doc/emacs/*.texi.
2012-12-18 00:32:46 -08:00
Juanma Barranquero
8725c07695 src/makefile.w32-in: Update depencencies. 2012-12-17 21:59:04 +01:00
Juanma Barranquero
ab1ce02438 nt/config.nt: Sync with autogen/config.in.
(BSD4_2): Remove.
2012-12-17 21:58:12 +01:00
Stefan Monnier
2387610d2b * lisp/icomplete.el (icomplete-completions): Also use … to truncate prefix. 2012-12-17 14:43:55 -05:00
Stefan Monnier
1e101a4be4 * src/xdisp.c (select_frame_for_redisplay): Use select_window_1 to
propagate redisplay's scrolling (if any) to the right window.
(redisplay_internal): Use ensure_selected_frame.
(display_mode_lines): Complete last fix.
* src/window.c (select_window_1): New func, extracted from select_window.
(select_window): Use it.
* src/window.h (select_window_1): Declare.
2012-12-17 14:17:06 -05:00
Eli Zaretskii
66447e07c1 Support Posix ACL APIs on MS-Windows.
src/w32.c: Include sddl.h and sys/acl.h.
 (SDDL_REVISION_1): Define if not already defined.
 (g_b_init_get_security_descriptor_dacl)
 (g_b_init_convert_sd_to_sddl, g_b_init_convert_sddl_to_sd)
 (g_b_init_is_valid_security_descriptor)
 (g_b_init_set_file_security): New static flags.
 (globals_of_w32): Initialize them to zero.
 (SetFileSecurity_Name): New string constant.
 (SetFileSecurity_Proc, GetSecurityDescriptorDacl_Proc)
 (ConvertStringSecurityDescriptorToSecurityDescriptor_Proc)
 (ConvertSecurityDescriptorToStringSecurityDescriptor_Proc)
 (IsValidSecurityDescriptor_Proc): New typedefs.
 (get_file_security, get_security_descriptor_owner)
 (get_security_descriptor_group): Set errno to ENOTSUP.
 (set_file_security, get_security_descriptor_dacl)
 (is_valid_security_descriptor, convert_sd_to_sddl)
 (convert_sddl_to_sd, acl_valid, acl_to_text, acl_from_text)
 (acl_free, acl_get_file, acl_set_file): New functions.
 src/fileio.c (Fcopy_file) [WINDOWSNT]: Support copying ACLs.

 nt/inc/sys/acl.h: New file.
 nt/inc/ms-w32.h (ENOTSUP): Define if undefined.
 nt/config.nt (HAVE_POSIX_ACL): Define.

 doc/lispref/files.texi (File Attributes, Changing Files): Update to include
 MS-Windows support for ACLs.
2012-12-17 21:14:34 +02:00
Paul Eggert
207a7ef053 Don't reraise SIGCHLD, as that can now lose.
With the 2012-12-03 fix for Bug#12980 in place, an old workaround
for some of that bug's symptoms can now cause Emacs to abort.
Remove the workaround.
* process.c (wait_reading_process_output): Don't reraise SIGCHLD.
The bug that caused SIGCHLD to get lost has been fixed, and the
workaround for it can now cause Emacs to abort.

Fixes: debbugs:13192
2012-12-17 09:51:25 -08:00
Kevin Ryde
191562422a * lisp/files.el (auto-save-file-name-p): Use \` and \'.
Fixes: debbugs:13186
2012-12-17 10:51:49 -05:00
Michael Albinus
53b6a8b113 Add support for preserving ACL entries of files.
* net/tramp.el (tramp-file-name-for-operation): Add `file-acl' and
`set-file-acl' handlers.

* net/tramp-adb.el (tramp-adb-handle-copy-file): Handle
PRESERVE-EXTENDED-ATTRIBUTES.

* net/tramp-compat.el (tramp-compat-copy-file): Handle
PRESERVE-EXTENDED-ATTRIBUTES.

* net/tramp-gvfs.el (tramp-gvfs-file-name-handler-alist): Add
`file-acl' and `set-file-acl' handlers.
(tramp-gvfs-handle-copy-file): Handle
PRESERVE-EXTENDED-ATTRIBUTES.
(tramp-gvfs-handle-file-acl, tramp-gvfs-handle-set-file-acl): New
defuns.

* net/tramp-sh.el (tramp-sh-file-name-handler-alist): Add
`file-acl' and `set-file-acl' handlers.
(tramp-remote-acl-p, tramp-sh-handle-file-acl)
(tramp-sh-handle-set-file-acl): New defuns.
(tramp-sh-handle-copy-file, tramp-do-copy-or-rename-file): Handle
PRESERVE-EXTENDED-ATTRIBUTES.

* net/tramp-smb.el (tramp-smb-file-name-handler-alist): Add
`file-acl' and `set-file-acl' handlers.
(tramp-smb-handle-copy-file): Handle PRESERVE-EXTENDED-ATTRIBUTES.
2012-12-17 15:38:07 +01:00