1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-31 09:20:54 -08:00
Commit graph

106995 commits

Author SHA1 Message Date
Chong Yidong
777fe95e05 Tweak proced docstring to trigger autoloading.
* lisp/proced.el (proced): Add substitution string to docstring to
trigger autoloading of the proced library on C-h f.

Fixes: debbugs:1768
2012-08-05 22:22:05 +08:00
Chong Yidong
b7ccbdc2e3 In Imenu, don't show defvars with no second argument.
* lisp/emacs-lisp/lisp-mode.el (lisp-imenu-generic-expression): Don't
show defvars which have no second argument.

* lisp/imenu.el (imenu-generic-expression): Move documentation here
from imenu--generic-function.
(imenu--generic-function): Refer to imenu-generic-expression.

Fixes: debbugs:8638
2012-08-05 22:14:54 +08:00
Lawrence Mitchell
d32e47aff6 * search.c (Freplace_match): Treat \? in the replacement text literally.
Fixes: debbugs:8161
2012-08-05 21:30:15 +08:00
Michael Albinus
68b0c113f6 * INSTALL: Explain, how to disable D-Bus at all. (Bug#12112) 2012-08-05 14:53:48 +02:00
Glenn Morris
685e57eaf3 Auto-commit of generated files. 2012-08-05 06:19:01 -04:00
Chong Yidong
35b6586e9d Manual fixes for frame-background-mode.
* doc/custom.texi (Face Customization): Move discussion of face
inheritance here, from Faces section.

* doc/display.texi (Faces): Document frame-background-mode.

* doc/lispref/display.texi (Defining Faces): Move documentation of
frame-background-mode to the Emacs manual (Bug#7774).
2012-08-05 17:24:55 +08:00
Chong Yidong
9e3b7800ff Mark last change as tiny. 2012-08-05 16:52:45 +08:00
Vegard Øye
d5c31f1ddd Add declares for viper-deflocalvar and viper-loop.
* lisp/emulation/viper-init.el (viper-deflocalvar): Add docstring and
indentation declaration.
(viper-loop): Add indentation declaration.

Fixes: debbugs:7025
2012-08-05 16:51:59 +08:00
Chong Yidong
f0422feb64 Improvements to local-variable reporting in `describe-variable'.
* lisp/help-fns.el (describe-variable): Add hyperlink for
directory-local variables files.  Improve buffer-local and
permanent-local reporting; suggested by MON KEY.

* lisp/help-mode.el (help-dir-local-var-def): New button type.

Fixes: debbugs:6644
2012-08-05 16:41:12 +08:00
Chong Yidong
e5d9c0d111 Docfix for kill-buffer-hook and others.
* lisp/files.el (kill-buffer-hook): Provide a defvar.

* src/term.c (Vsuspend_tty_functions, Vresume_tty_functions):
* src/frame.c (Vdelete_frame_functions):
* src/emacs.c (Vkill_emacs_hook): Doc fix.
2012-08-05 15:45:12 +08:00
Glenn Morris
a4f2deaaeb * lisp/eshell/esh-ext.el (eshell/addpath): Also update eshell-path-env.
Fixes: debbugs:12013
2012-08-04 22:24:50 -07:00
Ulrich Müller
32d9ba9ac2 * configure.ac: Disable paxctl if binaries don't have a PT_PAX_FLAGS header.
Fixes: debbugs:11979
2012-08-04 22:00:52 -07:00
Chong Yidong
615b0bf0b4 * wdired.el (wdired-mode, wdired-change-to-wdired-mode): Doc fixes. 2012-08-05 12:19:21 +08:00
Chong Yidong
d014c740b0 * fringe.el: Docstring and minor code improvements.
(fringe-styles): Add docstring.
(fringe--check-style): New function.
(set-fringe-mode, set-fringe-style): Use it.
(fringe-mode, set-fringe-style): Doc fixes.

Fixes: debbugs:6480
2012-08-05 11:52:02 +08:00
Chong Yidong
a9dd575408 * files.el (set-auto-mode): Fix invalid setq call. 2012-08-05 11:03:31 +08:00
Stefan Monnier
7c2dc8bd36 * lisp/isearch.el: Misc simplification; use defstruct.
(isearch-mode-map): Dense maps now work like sparse ones.
(isearch--state): New defstruct.
(isearch-string-state, isearch-message-state, isearch-point-state)
(isearch-success-state, isearch-forward-state)
(isearch-other-end-state, isearch-word-state, isearch-error-state)
(isearch-wrapped-state, isearch-barrier-state)
(isearch-case-fold-search-state, isearch-pop-fun-state): Remove,
replaced by defstruct's accessors.
(isearch--set-state): Rename from isearch-top-state and change
calling convention.
(isearch-push-state): Use new isearch--get-state.
(isearch-toggle-word): Disable regexp when enabling word.
(isearch-message-prefix): Remove unused arg _c-q-hack.
(isearch-message-suffix): Remove unused arg _ellipsis.
2012-08-04 18:31:04 -04:00
Glenn Morris
ce555168d9 TODO trivia 2012-08-04 11:07:50 -07:00
Eli Zaretskii
8da0576b32 Fix compilation --with-x-toolkit=no.
stc/xfns.c (x_set_menu_bar_lines): Fix compilation error in
 --with-x-toolkit=no builds by using FVAR.
 Reported by Carsten Mattner <carstenmattner@gmail.com>.
2012-08-04 17:36:36 +03:00
Chong Yidong
02676e5d3d Doc fixes and improvements for syntax tables.
* src/syntax.c (Fmodify_syntax_entry): Doc fix.

* doc/lispref/syntax.texi (Syntax Basics): Rearrange the text for clarity.
Fix description of syntax table inheritance.
(Syntax Table Functions): Don't refer to internal contents of
syntax table, since that is not explained yet.  Copyedits.
(Standard Syntax Tables): Node deleted.
(Syntax Table Internals): Misc clarifications.  Improve table
formatting.

* doc/lispref/keymaps.texi (Inheritance and Keymaps):
* doc/lispref/text.texi (Sticky Properties): Tweak index entry.
2012-08-04 22:33:00 +08:00
Eli Zaretskii
76151e2ce7 Fix bug #11959 with startup warnings on MS-Windows about ../site-lisp.
src/w32.c (init_environment): Change the default values of many
 environment variables in dflt_envvars[] to NULL, to avoid pushing
 them into environment when they were not already defined.  Remove
 the code that deletes site-lisp subdirectories from the default
 value of EMACSLOADPATH, as it is no longer needed.
 (check_windows_init_file): Now external, not static.  Use
 Vload_path as is, without adding anything, as this function is now
 called when Vload_path is already set up.
 src/w32.h (check_windows_init_file): Add prototype.
 src/emacs.c (init_cmdargs) [WINDOWSNT]: When running from the build
 directory, ignore the /*/i386/ tail in Vinvocation_directory, for
 compatibility with Posix platforms.
 (main): Move the call to check_windows_init_file to here from
 w32.c.
 (decode_env_path) [WINDOWSNT]: Expand the %emacs_dir%/ prefix, if
 any, in the DEFALT argument into the root of the Emacs build or
 installation tree, as appropriate.
 src/callproc.c (init_callproc_1): Call decode_env_path instead of
 doing its equivalent by hand.
 (init_callproc): Replace DOS_NT condition with MSDOS, thus letting
 the code that sets Vexec_path run on MS-Windows.
 src/lread.c (init_lread): Add comments to #ifdef's.

 nt/paths.h (PATH_LOADSEARCH, PATH_SITELOADSEARCH, PATH_EXEC)
 (PATH_DATA, PATH_DOC): Replace dummy directory names with
 directories relative to %emacs_dir%.
 (PATH_EXEC): Add lib-src/oo-spd/i386 and lib-src/oo/i386, to cater
 to the use case of running un-installed Emacs.
2012-08-04 17:17:10 +03:00
Glenn Morris
a09508f27e Auto-commit of generated files. 2012-08-04 06:17:29 -04:00
Eli Zaretskii
6b42bcfcfd Fix the MSDOS build as fallout of latest changes.
msdos/sedlibmk.inp (allocator.$(OBJEXT), careadlinkat.$(OBJEXT)): Fix
 editing out.
 msdos/sed2v2.inp (IS_DEVICE_SEP): Edit to match ':'.
 (IS_DIRECTORY_SEP, INTERNAL_TERMINAL): Fix Sed command syntax.
 (MSDOS): Define only if undefined, as MSDOS is a built-in macro,
 unless some std= switch to GCC is used.

 src/msdos.c (dos_set_window_size, IT_update_begin)
 (IT_frame_up_to_date, IT_set_frame_parameters): Use FVAR and WVAR
 instead of direct references.
2012-08-04 12:04:22 +03:00
Eli Zaretskii
97147da956 Fix Sed scripts and msdos.c as fallout of latest changes. 2012-08-04 11:58:33 +03:00
Andreas Schwab
97ad076930 * simple.el (list-processes): Doc fix. 2012-08-04 10:09:24 +02:00
Andreas Schwab
7fcc0070f0 * simple.el (list-processes--refresh): For a server use :host or
:local as the address.
2012-08-04 10:08:11 +02:00
Michal Nazarewicz
00340faf00 * lisp/mpc.el: Support password in host argument.
(mpc--proc-connect): Parse and use new password element.
Set mpc-proc variable instead of returning process.
(mpc-proc): Adjust accordingly.
2012-08-04 03:37:27 -04:00
Paul Eggert
185ee1468e Export DEFAULT_REHASH_* to GDB.
* lisp.h (DEFAULT_REHASH_THRESHOLD, DEFAULT_REHASH_SIZE):
Now constants, not macros.
2012-08-03 17:52:10 -07:00
Paul Eggert
1175def2d5 Comment why gc_aset can be triggered during GC. 2012-08-03 16:40:20 -07:00
Paul Eggert
98c6f1e36f Remove unnecessary casts involving pointers.
These casts are no longer needed now that we assume C89 or later,
since they involve casting to or from void *.
* alloc.c (make_pure_string, make_pure_c_string, pure_cons)
(make_pure_float, make_pure_vector):
* lisp.h (SAFE_ALLOCA, SAFE_ALLOCA_LISP):
* macros.c (Fstart_kbd_macro):
* menu.c (find_and_return_menu_selection):
* minibuf.c (read_minibuf_noninteractive):
* sysdep.c (closedir):
* xdisp.c (x_produce_glyphs):
* xfaces.c (compare_fonts_by_sort_order):
* xfns.c (x_real_positions, select_visual):
* xselect.c (x_stop_queuing_selection_requests)
(x_get_window_property, x_get_window_property_as_lisp_data):
* xterm.c (x_set_frame_alpha, x_find_modifier_meanings):
Remove unnecessary pointer casts.
* alloc.c (record_xmalloc): New function.
* lisp.h (record_xmalloc): New decl.
(SAFE_ALLOCA): Now takes just one arg -- the size -- and acts
more like a function.  This is because the pointer cast is not
needed.  All uses changed.
* print.c (print_string, print_error_message): Avoid length recalc.
2012-08-03 16:36:11 -07:00
Paul Eggert
8834c57aab Improve fix for macroexp crash with debugging.
* lisp.h (ASET) [ENABLE_CHECKING]: Pay attention to
ARRAY_MARK_FLAG when checking subscripts, because ASET is
not supposed to be invoked from the garbage collector.
See Andreas Schwab in <http://bugs.gnu.org/12118#25>.
(gc_aset): New function, which is like ASET but can be
used in the garbage collector.
(set_hash_key, set_hash_value, set_hash_next, set_hash_hash)
(set_hash_index): Use it instead of ASET.
2012-08-03 13:55:27 -07:00
Glenn Morris
ef834897aa configure.ac whitespace trivia
(Avoids some trailing whitespace in generated config.h.)
2012-08-03 16:34:35 -04:00
Juanma Barranquero
3fbc4b542c * nt/config.nt: Sync with autogen/config.in.
(DOS_NT, MSDOS): New macros.
(WRETCODE, wait3): Remove.

* nt/inc/ms-w32.h (DOS_NT): Remove; defined in config.nt.

* lib-src/makefile.w32-in (LOCAL_FLAGS): Remove WINDOWSNT and DOS_NT,
they are always defined in config.h.
2012-08-03 14:16:40 +02:00
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