1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-23 07:19:15 +00:00
Commit Graph

106963 Commits

Author SHA1 Message Date
Eli Zaretskii
18949c2f13 Fix whitespace-display-mappings.
lisp/whitespace.el (whitespace-display-mappings): Use Unicode
 codepoints, instead of emacs-mule codepoints.  See
 http://lists.gnu.org/archive/html/help-gnu-emacs/2012-07/msg00366.html
 for the details.
2012-08-03 14:51:11 +03:00
Eli Zaretskii
6dad71783c Support symlinks on latest versions of MS-Windows.
src/w32.c: Include winioctl.h and aclapi.h.
 (is_symlink, chase_symlinks, enable_privilege, restore_privilege)
 (revert_to_self): Forward declarations of static functions.
 <static BOOL g_b_init_get_security_info>:
 <g_b_init_create_symbolic_link>: New static flags.
 (globals_of_w32): Initialize them to zero.
 (GetSecurityInfo_Proc, CreateSymbolicLink_Proc): New typedefs.
 (map_w32_filename): Improve commentary.  Simplify switch.
 (SYMBOLIC_LINK_FLAG_DIRECTORY): Define if not defined in system
 headers (most versions of MinGW w32api don't).
 (get_security_info, create_symbolic_link)
 (get_file_security_desc_by_handle, is_symlink, chase_symlinks):
 New functions.
 (sys_access, sys_chmod): Call 'chase_symlinks' to resolve symlinks
 in the argument file name.
 (sys_access): Call unc_volume_file_attributes only if
 GetFileAttributes fails with network-related error codes.
 (sys_rename): Diagnose renaming of a symlink when the user doesn't
 have the required privileges.
 (get_file_security_desc_by_name): Renamed from
 get_file_security_desc.
 (stat_worker): New function, with most of the guts of 'stat', and
 with addition of handling of symlinks and support for 'lstat'.  If
 possible, get file's attributes and security information by
 handle, not by name.  Produce S_IFLNK bit for symlinks, when
 called from 'lstat'.
 (stat, lstat): New functions, call 'stat_worker'.
 (symlink, readlink, careadlinkat): Rewritten to create and resolve
 symlinks when the underlying filesystem supports them.

 lib/src/ntlib.c (lstat): New function, calls 'stat'.

 nt/inc/sys/stat.h (S_IFLNK): Define.
 (S_ISLNK): A non-trivial definition.
 (lstat): Prototype instead of a macro that redirects to 'stat'.

 lisp/files.el (file-truename): Don't skip symlink-chasing part on
 windows-nt.  Incorporate the resolution of 8+3 short aliases on
 Windows into the loop that recursively chases symlinks.  Compare
 directory and its parent case-insensitively on MS-Windows and
 MS-DOS.

 etc/NEWS: Announce the symlink support on MS-Windows.
2012-08-03 13:23:30 +03:00
Glenn Morris
0948632492 Auto-commit of generated files. 2012-08-03 06:17:23 -04:00
Eli Zaretskii
fddc1855e2 Adapt lib/makefile.w32-in to latest gnulib imports.
lib/makefile.w32-in (GNULIBOBJS): Add $(BLD)/stat-time.$(O),
 $(BLD)/timespec.$(O), and $(BLD)/u64.$(O).
 (SHA512_H): Don't mention u64.h twice.
 ($(BLD)/stat-time.$(O), ($(BLD)/timespec.$(O), ($(BLD)/u64.$(O)):
 New targets.
2012-08-03 13:02:48 +03:00
Eli Zaretskii
bff2a4b8f2 Fix a typo in top-level ChangeLog. 2012-08-03 12:00:42 +03:00
Chong Yidong
f85f636ab6 Add NEWS entry for last change. 2012-08-03 16:30:48 +08:00
Chong Yidong
6200f3c413 * menu-bar.el (menu-bar-tools-menu): Remove PCL-CVS. 2012-08-03 16:25:42 +08:00
Chong Yidong
385b01989f * sort.el (sort-regexp-fields): Doc fix. 2012-08-03 16:15:24 +08:00
Tassilo Horn
b9e74744d6 * textmodes/reftex.el (reftex-compile-variables): Make keyvals
labels regex position point at the expected place.
2012-08-03 08:47:32 +02:00
MON KEY
41013cb444 Doc fixes for imap.el.
* net/imap.el (imap-interactive-login, imap-authenticate)
(imap-mailbox-lsub, imap-mailbox-list)
(imap-mailbox-status-asynch, imap-mailbox-acl-delete)
(imap-fetch, imap-message-flag-permanent-p, imap-envelope-from)
(imap-parse-response): Doc fix.
2012-08-03 10:49:51 +08:00
João Távora
0ffee6167f Workaround for latex-forward-sexp slowness.
* textmodes/tex-mode.el (latex-forward-sexp): Terminate the loop if
sexp scanning does not move point.

Fixes: debbugs:5734
2012-08-03 10:29:59 +08:00
Paul Eggert
f35ef0edee Merge from gnulib.
2012-08-02 stat-time, timespec, u64: support naive out-of-dir builds
2012-08-02 17:42:11 -07:00
Paul Eggert
79ea6c20c4 Fix macroexp crash on Windows with debugging.
* lisp.h (ASET) [ENABLE_CHECKING]: Ignore ARRAY_MARK_FLAG when
checking subscripts; problem introduced with the recent
"ASET (a, i, v)" rather than "AREF (a, i) = v" patch.
(ARRAY_MARK_FLAG): Now a macro as well as a constant,
since it's used in non-static inline functions now.

Fixes: debbugs:12118
2012-08-02 13:59:49 -07:00
Tassilo Horn
a01bbb8412 fixup ChangeLog 2012-08-02 21:04:53 +02:00
Tassilo Horn
983741d87c * textmodes/reftex-vars.el (reftex-label-alist): Docfix. 2012-08-02 20:54:36 +02:00
Tassilo Horn
cfcc9cc88e * textmodes/reftex-vars.el (reftex-default-label-alist-entries):
Add listings, minted, and ctable packages.
(reftex-label-alist-builtin): Move listings, minted, and ctable
entries before LaTeX.
2012-08-02 20:24:11 +02:00
Bastien Guerry
66ec244299 Fix typo in docstring. Bug #12122. 2012-08-02 18:54:42 +02:00
Paul Eggert
a8333d0357 * lisp.h (VALMASK) [!USE_LSB_TAG]: Now a macro
as well as a constant, since it's used in non-static inline functions now.
2012-08-02 03:49:19 -07:00
YAMAMOTO Mitsuharu
d784422152 * lib/Makefile.am (DEFAULT_INCLUDES): Add -I$(top_srcdir)/lib for out-of-tree build. 2012-08-02 19:39:47 +09:00
Glenn Morris
7cd2ed2c6d Auto-commit of generated files. 2012-08-02 06:17:32 -04:00
Paul Eggert
c0ce93fddb * xfaces.c (face_for_overlay_string): Remove unused local. 2012-08-02 02:33:13 -07:00
Paul Eggert
56adbe62a5 * xfaces.c: Don't assume buffer size fits in 'int'. 2012-08-02 02:20:01 -07:00
Paul Eggert
c71f515666 * xfaces.c (face_at_buffer_position): Remove unused local. 2012-08-02 01:47:07 -07:00
Chong Yidong
f47188fe02 lisp/emacs-lisp/rx.el: Remove dead URL from commentary. 2012-08-02 16:12:36 +08:00
Paul Eggert
f162bcc31c Use C99-style 'extern inline' if available.
* lib-src/profile.c (SYSTIME_INLINE): Define.
* nt/config.nt: Sync with autogen/config.in.
(_GL_INLINE, _GL_EXTERN_INLINE, _GL_INLINE_HEADER_BEGIN)
(_GL_INLINE_HEADER_END): New macros.
* src/buffer.h (BUFFER_INLINE):
* src/category.h (CATEGORY_INLINE):
* src/character.h (CHARACTER_INLINE):
* src/charset.h (CHARSET_INLINE):
* src/composite.h (COMPOSITE_INLINE):
* src/dispextern.h (DISPEXTERN_INLINE):
* src/lisp.h (LISP_INLINE):
* src/systime.h (SYSTIME_INLINE):
New macro, replacing 'static inline' in this header.
* src/buffer.h, src/category.h, src/character.h, src/charset.h:
* src/composite.h, src/dispextern.h, lisp.h, systime.h:
Use INLINE_HEADER_BEGIN, INLINE_HEADER_END.
* src/alloc.c (LISP_INLINE):
* src/buffer.c (BUFFER_INLINE):
* src/category.c (CATEGORY_INLINE):
* src/character.c (CHARACTER_INLINE):
* src/charset.c (CHARSET_INLINE):
* src/composite.c (COMPOSITE_INLINE):
* src/dispnew.c (DISPEXTERN_INLINE):
* src/sysdep.c (SYSTIME_INLINE):
Define to EXTERN_INLINE, so that the corresponding functions
are compiled into code.
* src/conf_post.h (INLINE, EXTERN_INLINE, INLINE_HEADER_BEGIN)
(INLINE_HEADER_END): New macros.
* src/lisp.h (PSEUDOVECTOR_FLAG): Now a macro as well as a constant,
since it's used in non-static inline functions now.
2012-08-02 00:31:34 -07:00
Glenn Morris
8922df07b2 Misc updates for CPP-DEFINES 2012-08-01 23:47:17 -07:00
Glenn Morris
6edd2f3de3 Comment 2012-08-01 23:43:13 -07:00
Glenn Morris
d66b744dc3 * src/s/: Remove empty directory.
* make-dist: Remove src/s.
2012-08-01 23:21:48 -07:00
Glenn Morris
837b365b2a Move NT-specific include file to the NT include directory
* nt/inc/ms-w32.h: Move here from ../src/s.
* nt/config.nt (config_opsysfile): Change to <ms-w32.h>.

* s/ms-w32.h: Move to ../nt/inc.
* src/makefile.w32-in (TAGS, TAGS-gmake, MS_W32_H):
Update for new ms-w32.h location.

* lib-src/makefile.w32-in (MS_W32_H): Update for new ms-w32.h location.

* lib/makefile.w32-in (MS_W32_H): Update for new ms-w32.h location.

* lisp/emacs-lisp/authors.el (authors-renamed-files-alist): Add ms-w32.h.
2012-08-01 23:19:48 -07:00
Glenn Morris
2a194dcceb Remove files that no longer exist 2012-08-01 23:17:21 -07:00
Paul Eggert
a0d4efe9c3 Merge from gnulib, for extern-inline.
2012-08-01 extern-inline: new module
2012-08-01 stat-time, timespec, u64, utimens: use extern-inline
* lib/stat-time.c, lib/utimespec.c, lib/u64.c, m4/extern-inline.m4:
New files.  The new .c files are for instantiating extern inline
functions.

Fixes: debbugs:12116
2012-08-01 21:46:10 -07:00
Paul Eggert
13294f9517 Port to Solaris 8.
Without this change, 'configure' fails because the recently-added
wait3 prototype in config.h messes up later 'configure' tests.
Fix this problem by droping wait3 and WRETCODE, as they're
no longer needed on hosts that are current porting targets.
* configure.ac (wait3, WRETCODE): Remove, fixing a FIXME.
All uses changed to waitpid and WEXITSTATUS.
* src/syswait.h (WRETCODE): Remove, consistently with ../configure.ac.
2012-08-01 21:14:48 -07:00
Glenn Morris
90df0db330 * src/nsterm.m (ns_exec_path, ns_load_path): Use SEPCHAR
(rather than hard-coding the path separator).
2012-08-01 21:06:38 -07:00
Paul Eggert
3f750e43e8 Avoid needless autoheader after autogen.sh.
* src/stamp-h.in: Remove from bzr repository; no longer needed there.
* .bzrignore: Add it.
* autogen.sh: Create it.
2012-08-01 18:59:19 -07:00
Paul Eggert
e098de975f Obsolete alias inactivate-current-input-method-function.
* lisp/international/mule-cmds.el: Create
inactivate-current-input-method-function as an obsolete alias for
deactivate-current-input-method-function.  See Katsumi Yamaoka in
<http://bugs.gnu.org/10150#46>.
2012-08-01 18:36:14 -07:00
Jay Belanger
1dcac243ee calc.texi (Simplification modes, Conversions)
(Operating on Selections, Basic Simplifications)
(Algebraic Simplifications):  Mention "basic" simplifications.
(Algebraic Entry): Remove mention of default simplifications.
2012-08-01 18:42:29 -05:00
Paul Eggert
4939150cb4 Use "ASET (a, i, v)" rather than "AREF (a, i) = v".
This how ASET and AREF are supposed to work, and makes
it easier to think about future improvements.  See
<http://lists.gnu.org/archive/html/emacs-devel/2012-08/msg00026.html>.
* charset.h (set_charset_attr): New function.
All lvalue-style uses of CHARSET_DECODER etc. changed to use it.
* lisp.h (ASET): Rewrite so as not to use AREF in an lvalue style.
(aref_addr): New function.  All uses of &AREF(...) changed.
(set_hash_key, set_hash_value, set_hash_next, set_hash_hash)
(set_hash_index): New functions.  All lvalue-style uses of
HASH_KEY etc. changed.
* keyboard.c (set_prop): New function.  All lvalue-style uses
of PROP changed.
2012-08-01 13:51:44 -07:00
Alp Aker
947b2afddc * nsterm.m (ns_set_vertical_scroll_bar, ns_redeem_scroll_bar)
(EmacsWindow-accessibilityAttributeValue, EmacsScroller-initFrame:)
  (EmacsScroller-dealloc):  Adjust to use WVAR.  (Bug#12114)
* nsfns.m (ns_set_name_as_filename): Likewise.
* nsmenu.m (ns_update_menubar): Likewise.
* nsselect.m (symbol_to_nsstring): Adjust to use SVAR.
2012-08-01 16:15:30 -04:00
Jay Belanger
8e7046c395 calc.texi (Simplification modes): Mention "basic" simplification.
(The Calc Mode Line): Mention the mode line display for Basic
simplification mode.
(Simplify Formulas): Refer to 'algebraic' rather than 'default'
simplifications.
(Basic Simplifications): Rename from "Limited Simplifications"
Replace "limited" by "basic" throughout.
(Algebraic Simplifications):  Indicate that the algebraic
simplifications are done by default.
(Unsafe Simplifications):  Mention `m E'.
(Simplification of Units): Mention `m U'.
(Trigonometric/Hyperbolic Functions, Reducing and Mapping,
Kinds of Declarations, Functions for Declarations):  Mention
"algebraic simplifications" instead of `a s'.
2012-08-01 13:24:13 -05:00
Glenn Morris
0f6cabdbbb * lwlib/Makefile.in (config_h): Add conf_post.h. 2012-08-01 13:55:15 -04:00
Glenn Morris
de7de8723f Update lib-src config.h dependencies
* lib-src/Makefile.in (config_h): New variable.
Use throughout in place of ../src/config.h.
2012-08-01 13:54:06 -04:00
Eli Zaretskii
75e3caf91e More fixes in .gdbinit. 2012-08-01 19:31:59 +03:00
Eli Zaretskii
288479f65c Fix typo in src/ChangeLog. 2012-08-01 19:30:13 +03:00
Eli Zaretskii
2008beae39 Fix .gdbinit for latest INTERNAL_FIELD uses.
src/.gdbinit (xcar, xcdr, xlist, xwindow, nextcons, xprintsym):
 Adapt to latest changes in field names of the corresponding Lisp
 objects.
2012-08-01 19:28:58 +03:00
Glenn Morris
6497404995 ChangeLog fix 2012-08-01 08:43:36 -07:00
Eli Zaretskii
4f5d0325f3 Fix fallout from 2012-08-01T05:11:36Z!dmantipov@yandex.ru that introduced WVAR.
src/xdisp.c (try_window_id): Use WVAR in IF_DEBUG code.
2012-08-01 18:39:21 +03:00
Jay Belanger
a0f95636d5 calc-mode.el (calc-set-simplify-mode): Use cond' instead of nested if's. 2012-08-01 10:36:37 -05:00
Glenn Morris
bb2e3a6e4f Alphabetic order is proving tricky today 2012-08-01 08:33:09 -07:00
Glenn Morris
aac1c9ac83 Alphabetical order 2012-08-01 08:25:43 -07:00
Glenn Morris
2e415bb75f Fix typo in previous 2012-08-01 08:24:23 -07:00