1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00
Commit graph

109258 commits

Author SHA1 Message Date
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
Eli Zaretskii
d3d14b40f3 Improve and correct commentary to w32proc-related data and functions. 2012-12-15 13:04:14 +02:00
Glenn Morris
a5f7444219 macroexp--warn-and-return message tweak (bug#13132)
* lisp/emacs-lisp/macroexp.el (macroexp--warn-and-return):
Try to include filename in non-bytecomp warning.
2012-12-14 16:27:39 -05:00
Paul Eggert
cccaebd24d Spelling fixes.
My favorite was that the word "dictionary" was misspelled.
Also, correct the title in the DeRemer & Pennello 1982 citation,
and add a URL.
2012-12-14 12:05:03 -08:00
Eli Zaretskii
7e90af2674 Fix compilation warnings in the Windows build.
src/editfns.c [HAVE_PWD_H]: Include grp.h.
 src/makefile.w32-in ($(BLD)/editfns.$(O)): Add $(NT_INC)/grp.h.
2012-12-14 21:43:12 +02:00
Paul Eggert
97976f9f3f Fix permissions bugs with setgid directories etc.
* configure.ac (BSD4_2): Remove; no longer needed.
* admin/CPP-DEFINES (BSD4_2): Remove.
* doc/lispintro/emacs-lisp-intro.texi (Files List):
directory-files-and-attributes now outputs t for attribute that's
now a placeholder.
* doc/lispref/files.texi (Testing Accessibility): Document GROUP arg
of file-ownership-preserved-p.
(File Attributes): Document that 9th element is now
just a placeholder.
* doc/lispref/os.texi (User Identification): Document new functions group-gid,
group-real-gid.
* etc/NEWS: Document changes to file-attributes,
file-ownership-preserved-p.
Mention new functions group-gid, group-real-gid.
* lisp/files.el (backup-buffer): Don't rely on 9th output of
file-attributes, as it's now a placeholder.  Instead, use the new
optional arg of file-ownership-preserved-p.
(file-ownership-preserved-p): New optional arg GROUP.
Fix mishandling of setuid directories that would cause this
function to return t when it should have returned nil.
Document what happens if the file does not exist, and when
it's not known whether the ownership will be preserved.
* lisp/net/tramp-sh.el (tramp-sh-handle-file-ownership-preserved-p):
Likewise.
(tramp-get-local-gid): Use group-gid for integer, as that's
faster and more reliable.
* src/dired.c (Ffile_attributes): Return t as the 9th attribute,
to mark it as a placeholder.  The old value was often wrong.
The only user of this attribute has been changed to use
file-ownership-preserved-p instead, with its new group arg.
* src/editfns.c (Fgroup_gid, Fgroup_real_gid): New functions.

Fixes: debbugs:13125
2012-12-14 10:59:00 -08:00
Stefan Monnier
ad966fe754 * src/xdisp.c (display_mode_lines): Keep selected_window and selected_frame
in sync.
2012-12-14 10:52:43 -05:00
Stefan Monnier
26ec1f49cb * src/xdisp.c (select_frame_for_redisplay): Keep selected_window and
selected_frame in sync.
2012-12-14 10:38:50 -05:00
Michael Albinus
f0bc0bf1eb * tramp.texi (External methods): Move `adb' method here. 2012-12-14 16:37:27 +01:00
Julien Danjou
016b2a42cd * progmodes/sql.el (sql-mode-postgres-font-lock-keywords): Update
keywords list, data type and PL/pgSQL.
2012-12-14 16:31:19 +01:00
Dave Abrahams
665e5e07a9 * lisp/vc/ediff-util.el (ediff-buffer-type): New function.
(ediff-clone-buffer-for-current-diff-comparison): Compute the buf-type
rather than taking it as as argument.
(ediff-inferior-compare-regions): Adjust calls accordingly.

Fixes: debbugs:11319
2012-12-14 10:22:24 -05:00
Ryan Crum
d72e9e922f * lisp/json.el: Add pretty-print option.
(json-encoding-separator, json-encoding-default-indentation)
(json--encoding-current-indentation, json-encoding-pretty-print)
(json-encoding-lisp-style-closings): New vars.
(json--with-indentation): New macro.
(json-encode-hash-table, json-encode-alist, json-encode-plist)
(json-encode-array): Use it to obey json-encoding-pretty-print.
(json-pretty-print-buffer, json-pretty-print): New commands.

Fixes: debbugs:12634
2012-12-14 09:57:37 -05:00
Eli Zaretskii
5c207910c4 Speed up most calls to 'stat' and 'lstat' on MS-Windows.
src/w32.c (stat_worker): If w32_stat_get_owner_group is zero, do not
 try to get accurate owner and group information from NT file
 security APIs.  This is to make most callers of 'stat' and
 'lstat', which don't need that information, much faster.
 src/dired.c (Ffile_attributes) [WINDOWSNT]: Set
 w32_stat_get_owner_group to a non-zero value, to request accurate
 owner and group information from 'lstat'.

 nt/inc/sys/stat.h: Declare w32_stat_get_owner_group.
2012-12-14 16:05:01 +02:00
Michael Albinus
b421decc52 Explain, why `tramp-*-file-name-p' is a defsubst. 2012-12-14 10:02:34 +01:00
Dmitry Gutov
bb808526ae * lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function):
Extract `ruby-syntax-propertize-expansions'.
(ruby-syntax-propertize-expansions): Only change syntax on
certain string delimiters, to punctuation.  This way the common
functions like forward-word and thing-at-point still work.
(ruby-match-expression-expansion): Improve readability.
(ruby-block-contains-point): New function.
(ruby-add-log-current-method): Handle several edge cases.

* test/automated/ruby-mode-tests.el
Rename one interpolation test; add three more.
(ruby-with-temp-buffer): New macro, use it where appropriate.
(ruby-add-log-current-method-examples): Use "_" for target point.
Add four tests for ruby-add-log-current-method.
2012-12-14 10:58:15 +04:00
Dmitry Gutov
dbb530d988 * lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function):
Extract `ruby-syntax-propertize-expansions'.
(ruby-syntax-propertize-expansions): Only change syntax on
certain string delimiters, to punctuation.  This way the common
functions like forward-word and thing-at-point still work.

* test/automated/ruby-mode-tests.el
Rename one interpolation test; add three more.
2012-12-14 08:55:23 +04:00
Akinori MUSHA
fd1b1e2ed2 sieve-mode font-lock fix (tiny change)
* sieve-mode.el (sieve-font-lock-keywords): Keywords should be word delimited.

Fixes: debbugs:13173
2012-12-13 20:26:47 -08:00
Paul Eggert
4c95c9a594 * fileio.c (Finsert_file_contents): Don't put tail into head area,
as that confuses set-auto-coding, so insist on the head-read
returning the full 1024 bytes.  Let lseek compute the tail offset;
less work for us.  Do not ignore I/O errors when reading the tail.
2012-12-13 11:35:10 -08:00
Juanma Barranquero
ce0440ff96 lisp/emacs-lisp/edebug.el: Fix previous change.
(edebug-unload-function): Make sure that unload-feature finishes even when
aborting an ongoing edebug session.  Also, do not worry about edebug-mode,
unload-feature takes care of it.
2012-12-13 19:15:42 +01:00
Paul Eggert
893f52d895 * xdisp.c: Minor style fixes.
(init_iterator): Hoist assignment out of if-expression.
(markpos_of_region): Callers now test for sign, not for -1.
2012-12-13 08:55:28 -08:00
Andreas Schwab
f10331bfe9 * net/tls.el (tls-program): Update customize type. 2012-12-13 10:48:54 +01:00
Juanma Barranquero
5f3a3bb1f5 lisp/emacs-lisp/edebug.el: Fix bug#13163.
(edebug--require-cl-read): New function.
(edebug-setup-hook, cl-read-load-hooks): Use it.
(edebug-unload-function): New function.
2012-12-13 10:45:54 +01:00
Michael Albinus
6ce2146306 * net/tramp-adb.el (tramp-adb-file-name-p): Make it a defsubst.
Otherwise, there could be errors in autoloading.  (Bug#13151)
2012-12-13 09:42:25 +01:00
Jürgen Hötzel
d754b364fa * net/tramp-adb.el (tramp-adb-wait-for-output): Remove spurious " ^H"
sequences.
2012-12-13 09:38:16 +01:00
Dmitry Antipov
40d1e43460 Minor redisplay optimization when the region length is zero.
* xdisp.c (markpos_of_region): New function.
(init_iterator): Do not highlight the region of zero length.
(redisplay_window): Check whether the region is of non-zero length.
(try_cursor_movement): Allow if the region length is zero.
(try_window_reusing_current_matrix, try_window_id): Likewise.
2012-12-13 12:04:40 +04:00
Glenn Morris
ba30c70fa0 * doc/misc/cl.texi (Modify Macros, Obsolete Macros): Now letf == cl-letf.
* etc/NEWS: Related edit.
2012-12-12 21:33:36 -08:00
Glenn Morris
727f973937 Merge from emacs-24; up to 2012-11-30T04:44:52Z!cyd@gnu.org 2012-12-12 21:29:15 -08:00
Glenn Morris
bfe6ffb652 Add wisent manual to build process
* doc/misc/wisent.texi: Small edits.  Set copyright to FSF, update license to
GFDL 1.3+.

* doc/misc/Makefile.in (INFO_TARGETS, DVI_TARGETS, PDF_TARGETS): Add wisent.
(wisent, $(buildinfodir)/wisent$(INFO_EXT), wisent.dvi, wisent.pdf):
New targets.

* doc/misc/makefile.w32-in (INFO_TARGETS, DVI_TARGETS, clean): Add wisent.
($(infodir)/wisent$(INFO_EXT), wisent.dvi): New targets.

* info/dir: wisent.
2012-12-12 20:47:14 -08:00
Eric M. Ludlam
9e7abd17a3 Import wisent manual from CEDET trunk
Ref
http://lists.gnu.org/archive/html/emacs-devel/2012-11/msg00419.html
and preceding discussion

Imported from
bzr://cedet.bzr.sourceforge.net/bzrroot/cedet/code/trunk
doc/texi/semantic/wisent.texi

bzr log shows (very) tiny change from authors with assignments:
David Engster <dengste@eml.cc>

and from:
emacsman@users.sourceforge.net
2012-12-12 20:44:07 -08:00
Glenn Morris
98c94021a1 Add bovine manual to build process
* doc/misc/bovine.texi: Small edits.  Set copyright to FSF, update license to
GFDL 1.3+, remove empty index.

* doc/misc/Makefile.in (INFO_TARGETS, DVI_TARGETS, PDF_TARGETS): Add bovine.
(bovine, $(buildinfodir)/bovine$(INFO_EXT), bovine.dvi, bovine.pdf):
New targets.

* doc/misc/makefile.w32-in (INFO_TARGETS, DVI_TARGETS, clean): Add bovine.
($(infodir)/bovine$(INFO_EXT), bovine.dvi): New targets.

* info/dir: Add bovine.
2012-12-12 20:25:50 -08:00
Eric M. Ludlam
cfa49c1e33 Import bovine manual from CEDET trunk
Ref
http://lists.gnu.org/archive/html/emacs-devel/2012-11/msg00419.html
and preceding discussion

Imported from
bzr://cedet.bzr.sourceforge.net/bzrroot/cedet/code/trunk
doc/texi/semantic/bovine.texi
2012-12-12 20:19:48 -08:00
Paul Eggert
d20704efe6 * fileio.c (Fcopy_file): Make fstat failure as serious as open failure.
fstat shouldn't fail, and if it does fail copy-file should not proceed.
Remove unnecessary S_ISLNK test, as (contra the comments) this
function can't copy symlinks.  Improve quality of error message
when attempting to copy files that are neither regular files nor
directories.
2012-12-12 18:17:49 -08:00
Stefan Monnier
eb8006c61f * lisp/emacs-lisp/cl.el (letf): Make it an alias of cl-letf.
(cl--symbol-function): Remove (now that funbound is like nil).
2012-12-12 20:46:47 -05:00
Juanma Barranquero
de8cbebe11 nt/config.nt: Sync with autogen/config.in.
(HAVE_INOTIFY, HAVE_SYS_INOTIFY_H): New macros.
2012-12-13 02:18:28 +01:00
Katsumi Yamaoka
dd40b94746 gnus-start.el (gnus-before-resume-hook): Add :version 2012-12-13 00:52:17 +00:00
Glenn Morris
4c74b1e465 * lisp/button.el (button--area-button-p): Fix typo (defun is not defalias). 2012-12-12 17:39:29 -05:00
Katsumi Yamaoka
202c16d5f5 gnus.el (gnus-other-frame-resume-function): Add :version 2012-12-12 22:29:54 +00:00