1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-08 04:30:45 -08:00
Commit graph

109294 commits

Author SHA1 Message Date
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
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
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
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
Glenn Morris
4cc63c8142 Auto-commit of generated files. 2012-12-17 06:17:34 -05:00
Kelly Dean
6ae57a6758 Fix some interactions of make-help-screen and other Help forms (Bug#13190).
* help-macro.el (make-help-screen): Instead of switch-to-buffer
use pop-to-buffer with NORECORD argument t.  As buffer name use
*Metahelp* with a leading space (Bug#13190).
2012-12-17 08:54:57 +01:00
Paul Eggert
17fdfc1530 * sysdep.c (emacs_abort): Bump backtrace size to 40.
Companion to the 2012-09-30 patch.  Suggested by Eli Zaretskii in
<http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00796.html>.
2012-12-16 14:53:28 -08:00
Paul Eggert
d2435ab9f3 * calc.texi (ISO 8601): Rename from ISO-8601,
as it's typically spelled without a hyphen.
2012-12-16 14:51:03 -08:00
Romain Francoise
7c3d167f48 Add support for preserving ACL entries of files.
* configure.ac (acl): New option.
	(HAVE_POSIX_ACL): Test for POSIX ACL support.  This is typically
	provided by libacl on GNU/Linux.

	* fileio.c (Ffile_acl, Fset_file_acl): New functions.
	(Fcopy_file): Change last arg to `preserve_extended_attributes'
	and copy ACL entries of file in addition to SELinux context if
	set.
	(syms_of_fileio): Add `file-acl' and `set-file-acl'.

	* Makefile.in (LIBACL_LIBS): New macro.
	(LIBES): Use it.

	* files.el (file-extended-attributes)
	(set-file-extended-attributes): New functions.
	(backup-buffer): Use them to handle both SELinux context and ACL
	entries.
	(backup-buffer-copy): Work with an alist of extended attributes,
	rather than an SELinux context.
	(basic-save-buffer-2): Ditto.

	* files.texi (File Attributes): Document ACL support and new
	`file-acl' function.
	(Changing Files): Mention argument name change of `copy-file' and
	document new function `set-file-acl'.
2012-12-16 19:22:27 +01:00
Glenn Morris
a5e9740d8e Auto-commit of loaddefs files. 2012-12-16 06:22:07 -05:00
Timo Myyrä
19b748ad44 * battery.el (battery-bsd-apm): New function. 2012-12-16 11:17:50 +08:00
Jay Belanger
70042c6467 * calc/calc.el (calc-standard-date-formats): Adjust one of the
standard date formats.
2012-12-15 20:52:11 -06:00
Jay Belanger
b9d8175e56 * doc/misc/calc.texi (ISO-8601): New section.
(Date Formatting Codes): Mention new codes.
  (Standard Date Formats): Mention new formats.
2012-12-15 20:07:30 -06:00
Paul Eggert
7d80ea2365 * fileio.c (internal_delete_file): Use bool for boolean. 2012-12-15 07:33:43 -08:00
Eli Zaretskii
07c40d4eaa Commit nt/ChangeLog from the changeset of last commit. 2012-12-15 15:42:33 +02:00
Eli Zaretskii
b07286179e Fix bug #13079 on MS-Windows with temp files not being deleted.
src/w32.h (_child_process): New members input_file and
 pending_deletion.
 (register_child): First argument is now pid_t.
 (record_infile, record_pending_deletion): New prototypes.
 src/w32proc.c (new_child): Initialize input_file and
 pending_deletion members of the child.
 (delete_child): Delete the child's temporary input file, if any,
 that is pending deletion.
 (register_child): First argument is now pid_t.
 (record_infile, record_pending_deletion): New functions.
 (reap_subprocess): Fix a typo in DebPrint string.
 (sys_spawnve, sys_kill): Use pid_t for PID arguments.
 src/fileio.c (internal_delete_file): Return an int again: non-zero
 if delete-file succeeds, zero otherwise.
 src/lisp.h (internal_delete_file): Adjust prototype.
 src/callproc.c (Fcall_process): Don't overwrite infile with result
 of DECODE_FILE.
 [WINDOWSNT] If BUFFER is an integer, i.e. we are launching an
 asynchronous subprocess, record the name of the input file name,
 if any.
 (delete_temp_file) [WINDOWSNT]: If internal_delete_file fails to
 delete the file, record it as pending deletion when the subprocess
 exits.

 nt/inc/ms-w32.h (sys_unlink): Provide prototype.
2012-12-15 15:38:21 +02:00
Juri Linkov
279f9b06fd * lisp/isearch.el (isearch-mode-map): Bind `C-x 8 RET' to
`isearch-insert-char-by-name'.
(with-isearch-suspended): New defmacro with body mostly from
`isearch-edit-string' except the part that sets
`isearch-new-string' and `isearch-new-message'.
(isearch-edit-string): Use new macro `with-isearch-suspended' with
body that sets `isearch-new-string' and `isearch-new-message'.
(isearch-insert-char-by-name): New command.
* lisp/international/mule-cmds.el (read-char-by-name): Let-bind
`enable-recursive-minibuffers' to t.
http://lists.gnu.org/archive/html/emacs-devel/2012-12/msg00234.html
2012-12-15 15:03:17 +02:00
Juri Linkov
8370def5c8 * lisp/isearch.el (isearch-delete-char, isearch-del-char): Doc fix.
Fixes: debbugs:13175
2012-12-15 14:19:04 +02:00
Juri Linkov
f25f57bf45 * doc/emacs/misc.texi (Recursive Edit): Add a link to "Query Replace".
Fixes: debbugs:13181
2012-12-15 14:10:12 +02:00
Christopher Schmidt
178fb95dc0 * lisp/dired-x.el (dired-guess-shell-command): Put colon at the end of the prompt.
Fixes: debbugs:13045
2012-12-15 14:05:04 +02:00
Eli Zaretskii
7be7da6c9f w32proc.c (reap_subprocess): Fix commentary. 2012-12-15 13:41:18 +02:00
Glenn Morris
b0a49335d4 Auto-commit of generated files. 2012-12-15 06:17:30 -05:00