1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-06 11:55:48 +00:00
Commit Graph

108308 Commits

Author SHA1 Message Date
Michael Albinus
f7eac6d887 * net/tramp-smb.el (tramp-smb-maybe-open-connection): Set
`tramp-chunksize' to 1.  This improves the performance.
(tramp-smb-wait-for-output): Add timeout to
`tramp-accept-process-output' calls.
2012-10-23 16:26:30 +02:00
Paul Eggert
c4132fd4f0 Fix outdated timestamp documentation in Elisp manual.
* doc/lispref/files.texi (File Attributes):
* doc/lispref/text.texi (Undo):
Time stamp resolution is now 1 picosecond, not 1 second.
* etc/NEWS: Document increased precision in undo list.

Fixes: debbugs:12706
2012-10-23 00:57:42 -07:00
Glenn Morris
8740abe19a ChangeLog fix 2012-10-23 00:52:18 -07:00
Glenn Morris
8d6510b95a Start updating cl.texi for cl-lib changes
* doc/misc/cl.texi: Include emacsver.texi.
Use Emacs version number rather than unchanging cl.el version number.
End all menu descriptions with a period.
Do not use @dfn{CL} for every instance of "CL".
(Overview): Remove no-runtime caveat, and note about foo* names.
(Usage): Use cl-lib rather than cl.
(Organization, Naming Conventions): Update for cl-lib.el.
(Installation): Remove long-irrelevant node.
(Program Structure, Predicates, Control Structure):
Start updating for cl-lib namespace.

* doc/misc/Makefile.in ($(buildinfodir)/cl$(INFO_EXT), cl.dvi, cl.pdf):
Depend on emacsver.texi.
2012-10-23 00:43:39 -07:00
Chong Yidong
49238e7f5c Make unused variable font-list-limit obsolete, and move it out of C.
* display.texi (Font Lookup): Remove font-list-limit.

* lisp/startup.el (command-line):
* lisp/cus-start.el: Don't refer to font-list-limit.

* lisp/faces.el (font-list-limit): Define as an obsolete variable.

* xfaces.c (Vfont_list_limit): Move unused variable to faces.el.
2012-10-23 10:39:13 +08:00
Chong Yidong
1fb3aa3fea * doc/lispref/keymaps.texi (Key Sequences): Avoid referring to Edit Macro mode.
* doc/emacs/kmacro.texi (Edit Keyboard Macro): Fix typo.

Fixes: debbugs:12529
2012-10-23 10:23:39 +08:00
Chong Yidong
608d9d7caf * lisp/newcomment.el (comment-normalize-vars): Doc fix.
Fixes: debbugs:12583
2012-10-23 10:17:36 +08:00
Stefan Monnier
4ff5b1b293 * lisp/subr.el (internal-temp-output-buffer-show): Rename from
temp-output-buffer-show, since previously compiled files expect this name.
2012-10-22 21:18:47 -04:00
Glenn Morris
ea1d4aaca0 image-type-from-file-name fix for bug#9045
* lisp/image.el (image-type-from-file-name): If multiple types match,
return the first one that is supported.
2012-10-22 20:46:11 -04:00
Glenn Morris
f961c7d82b * doc/lispref/os.texi (Recording Input): Tiny fix. 2012-10-22 17:57:14 -04:00
Glenn Morris
eda82a3153 * lisp/image.el (imagemagick-enabled-types): Doc fix. 2012-10-22 17:53:03 -04:00
Takafumi Arakaki
4f020becaf * lisp/progmodes/which-func.el (which-func-current): The hash-table may have
an explicit nil.

Fixes: debbugs:12338
2012-10-22 09:29:28 -04:00
Stefan Monnier
c77d37e227 Rework the last delsel/electric fix.
* lisp/delsel.el (delete-selection-helper): Use a function instead of a hook.
(delete-selection-pre-hook): Use use-region-p.
(delete-selection-self-insert-function): Remove.
(self-insert-command): Obey self-insert-uses-region-functions.
(self-insert-iso): Revert to previous setting, since we don't actually
know what that command does.
(delete-selection-self-insert-hooks): Remove.
* lisp/electric.el (electric-pair-delete-selection-self-insert-function):
Rename to electric-pair-will-use-region, return a boolean.
(electric-pair-mode): Adjust accordingly.  Don't require delsel.
2012-10-22 08:43:54 -04:00
Simon Law
b1d39ccce4 * lisp/delsel.el (delete-selection-helper): New function, extracted from
delete-selection-pre-hook.
(delete-selection-pre-hook): Use it.
(delete-selection-self-insert-function): New function.
(delete-selection-self-insert-hooks): New hook.
(self-insert-command, self-insert-iso): Use it.
* lisp/electric.el (electric-pair-syntax): New function, extracted from
electric-pair-post-self-insert-function.
(electric-pair-post-self-insert-function): Use it.
(electric-pair-delete-selection-self-insert-function): New function.
(electric-pair-mode): Require delsel and setup
delete-selection-self-insert-hooks.

Fixes: debbugs:11520
2012-10-21 23:15:44 -04:00
Glenn Morris
4ee8774065 Refer to cl-lib rather than cl in lispref
* intro.texi (Lisp History):
* lists.texi (Sets And Lists): Refer to cl-lib rather than cl.
2012-10-21 19:22:27 -07:00
Glenn Morris
5fb904b0e4 * doc/lispref/tips.texi (Coding Conventions): Recommend cl-lib over cl. 2012-10-21 19:18:58 -07:00
Jan Djärv
ef44695952 * nsfont.m (nsfont_open, ns_glyph_metrics): Force integer advancement
for screen font.
(nsfont_draw): Turn off LCD-smoothing.

Fixes: debbugs:11484
2012-10-21 20:48:11 +02:00
Jan Djärv
5ec86886a7 * xterm.c (x_focus_changed): Check if daemonp when sending focus in
event.

Fixes: debbugs:12681
2012-10-21 16:53:28 +02:00
Paul Eggert
791ef5f8ea Spelling fixes. 2012-10-21 00:23:34 -07:00
Glenn Morris
ad483434e5 Put back old Emacs 22 icons, just don't install them
Some people prefer them to the newer icon

* Makefile.in (install-etc): Don't install emacs22 icons.

* etc/images/icons/hicolor/32x32/apps/emacs22.png:
* etc/images/icons/hicolor/16x16/apps/emacs22.png:
* etc/images/icons/hicolor/48x48/apps/emacs22.png:
* etc/images/icons/hicolor/24x24/apps/emacs22.png: Restore old icons.

* etc/images/icons/README: Restore info about emacs22 icons
2012-10-20 18:35:46 -07:00
Glenn Morris
8dc2a723eb In Makefile.in, use a make variable rather than a shell variable.
* Makefile.in (emacs_transform): New variable.
(install-etc): Prefer a make variable to a shell variable.
2012-10-20 18:27:09 -07:00
Glenn Morris
ee7a418df3 Recognize that cp51932.el and eucjp-ms.el are loaded during dumping
* src/lisp.mk (lisp): Add cp51932.el and eucjp-ms.el.

* lib-src/make-docfile.c (scan_lisp_file): Add cp51932.el and eucjp-ms.el.
2012-10-20 18:19:46 -07:00
Paul Eggert
4973679b3f Port to OpenBSD 5.1.
* frame.c (Fmouse_position, Fmouse_pixel_position):
* xdisp.c (produce_stretch_glyph):
Declare local vars only when they're needed.
This is clearer and avoids a warning on OpenBSD about unused vars.
* frame.h (FRAME_WINDOW_P): Always evaluate its argument.
This is safer, and avoids OpenBSD warnings about unused vars.
* keyboard.c (record_menu_key): Remove unnecessary decl.
(poll_timer): Define only if POLL_FOR_INPUT is defined.
* unexelf.c (ELFSIZE) [!ElfW]: Do not define if already defined,
as our definition clashes with OpenBSD's.
* xfaces.c (load_face_colors, check_lface_attrs)
(get_lface_attributes_no_remap, get_lface_attributes)
(lface_fully_specified_p, x_supports_face_attributes_p)
(tty_supports_face_attributes_p, face_fontset, realize_face)
(realize_x_face, realize_tty_face):
Declare parameters to be Lisp_Object[LFACE_VECTOR_SIZE], not
merely Lisp_Object *.  This is more informative and avoids
a warning on OpenBSD about accessing beyond an object's size.
2012-10-20 14:30:51 -07:00
Eli Zaretskii
83c85d8e2e Fix last changes in make-docfile.c.
lib-src/make-docfile.c (IS_SLASH, DEF_ELISP_FILE): New macros.
 (scan_lisp_file): Only pass a .el file if its basename matches a
 known file in its entirety.  Use IS_SLASH and DEF_ELISP_FILE.
2012-10-20 17:26:10 +02:00
Eli Zaretskii
71aa63da78 Fix a typo in lib-src/ChangeLog. 2012-10-20 16:56:09 +02:00
Andreas Schwab
cab4f71ebd * make-docfile.c (scan_lisp_file): Add bounds checking. 2012-10-20 15:28:42 +02:00
Eli Zaretskii
c95a426663 Add comments with instructions for creating new Lisp data types. 2012-10-20 15:20:44 +02:00
Chong Yidong
c664f46329 * lread.c (Fload): Doc fix.
Fixes: debbugs:12592
2012-10-20 20:50:49 +08:00
Chong Yidong
4c5d08a868 Fix *vc-diff* buffer's behavior for empty diffs.
* vc/vc.el (vc-diff-internal): Set up Diff mode even if there are
no changes to show.

Fixes: debbugs:12586
2012-10-20 20:04:45 +08:00
Chong Yidong
045ef72904 Fix for Eshell's for loop.
* eshell/esh-cmd.el (eshell-rewrite-for-command): Copy the body
list explicitly.

Fixes: debbugs:12571
2012-10-20 19:54:24 +08:00
Chong Yidong
3503c79892 Fix last ChangeLog entry. 2012-10-20 19:35:05 +08:00
Arne Jørgensen
79e1997aa8 * progmodes/flymake.el (flymake-create-temp-inplace): Use file-truename.
Patch from:
http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00444.html
2012-10-20 19:34:06 +08:00
Eli Zaretskii
2068905bb7 Fix bug #12395 with doc strings silently omitted from DOC on MS-Windows.
lib-src/make-docfile.c (scan_lisp_file): Barf if called with a .el file
 other than one of a small list of supported un-compiled files.
 lib-src/makefile.w32-in (lisp1, lisp2): Name .elc files wherever they
 exist.

 lisp/loadup.el: Update comment about uncompiled Lisp files.
2012-10-20 12:01:19 +02:00
Jay Belanger
4c9e95500f calc/calc-units.el (math-extract-units): Properly extract powers of units. 2012-10-19 23:14:32 -05:00
Daniel Colascione
1a6e7e3807 Unbreak starting an X11 frame from a non-X11 Emacs daemon 2012-10-19 19:42:02 -08:00
Paul Eggert
f0a8017501 Undo faccessat change. 2012-10-19 12:25:18 -07:00
Stefan Monnier
8e8083185c * lisp/minibuffer.el (minibuffer-force-complete): Make the next completion use
the same completion-field (bug@12221).
2012-10-19 14:59:36 -04:00
Paul Eggert
2c43889e84 New files from gnulib.
Fixes: debbugs:12632
2012-10-19 10:14:00 -07:00
Paul Eggert
e752e0b0a2 Use faccessat, not access, when checking file permissions.
* .bzrignore: Add lib/fcntl.h.
* configure.ac (euidaccess): Remove check; gnulib does this for us now.
(gl_FCNTL_O_FLAGS): Define a dummy version.
* lib/at-func.c, lib/euidaccess.c, lib/faccessat.c, lib/fcntl.in.h:
* lib/getgroups.c, lib/group-member.c, lib/root-uid.h:
* lib/xalloc-oversized.h, m4/euidaccess.m4, m4/faccessat.m4:
* m4/fcntl_h.m4, m4/getgroups.m4, m4/group-member.m4:
New files, from gnulib.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* admin/merge-gnulib (GNULIB_MODULES): Add faccessat.
(GNULIB_TOOL_FLAGS): Avoid at-internal, fchdir, malloc-posix,
openat-die, openat-h, save-cwd.  Do not avoid fcntl-h.
Omit gnulib's m4/fcntl-o.m4.
* nt/inc/ms-w32.h (AT_FDCWD, AT_EACCESS): New symbols.
(access): Remove.
(faccessat): New macro.
* src/Makefile.in (LIB_EACCESS): New macro.
(LIBES): Use it.
* src/callproc.c (init_callproc):
* src/charset.c (init_charset):
* src/fileio.c (check_existing, check_executable):
* src/lread.c (openp, load_path_check):
* src/process.c (allocate_pty):
* src/xrdb.c (file_p):
Use faccessat, not access or euidaccess.  Use symbolic names
instead of integers for the flags, as they're portable now.
* src/charset.c, src/xrdb.c: Include <fcntl.h>, for the new flags used.
* src/fileio.c (Ffile_readable_p):
Use faccessat, not stat + open + close.
(file_directory_p): New function, which uses 'stat' on most places
but 'access' (for efficiency) if WINDOWSNT.
* src/fileio.c (Ffile_directory_p, Fset_file_times):
* src/xrdb.c (file_p): Use file_directory_p.
* src/lisp.h (file_directory_p): New decl.
* src/lread.c (openp): When opening a file, use fstat rather than
stat, as that avoids a permissions race.  When not opening a file,
use file_directory_p rather than stat.
* src/process.c, src/sysdep.c, src/term.c: All uses of '#ifdef O_NONBLOCK'
changed to '#if O_NONBLOCK', to accommodate gnulib O_* tyle.
* src/w32.c (sys_faccessat): Rename from sys_access and switch to
faccessat's API.  All uses changed.

Fixes: debbugs:12632
2012-10-19 09:52:02 -07:00
Kenichi Handa
6ec83f926d src/ChangeLog: Fix changers name. 2012-10-19 22:02:52 +09:00
Kenichi Handa
a0d7415fb6 font.c (Ffont_at): Fix previous change. 2012-10-19 21:59:42 +09:00
Eli Zaretskii
c052c554b4 Increase the value of BASE_PURESIZE to avoid pure space overflow.
src/puresize.h (BASE_PURESIZE): Bump the base value to 1700000.  See
 http://lists.gnu.org/archive/html/emacs-devel/2012-10/msg00593.html
 for the reasons.
2012-10-19 12:05:09 +02:00
Martin Rudalics
fb0104dabe In debug record height of debugger window also when debugger will be back (Bug#8789).
* emacs-lisp/debug.el (debug): Record height of debugger window
also when debugger will be back (Bug#8789).
2012-10-19 11:28:50 +02:00
Eli Zaretskii
d282492862 Decrease NSTATICS to 0x800. 2012-10-19 08:43:12 +02:00
Stefan Monnier
f60d391f5f * src/fns.c (Fnreverse): Include the problem element when signalling an error.
Fixes: debbugs:12677
2012-10-18 20:54:35 -04:00
Chong Yidong
8c27235ead Fix how gdb-mi calls display-buffer to avoid switching frames.
* lisp/progmodes/gdb-mi.el (gdb-display-buffer-other-frame-action):
Convert to defcustom.
(gdb-get-source-file): Don't bind pop-up-windows.

* lisp/progmodes/gud.el (gud-display-line): Don't specially re-use
other frames for the gdb-mi case.

Fixes: debbugs:12648
2012-10-19 03:46:18 +08:00
Jan Djärv
1a9327d5cd * nsterm.m (ns_select): Check writefds before call to
FD_ISSET.

Fixes: debbugs:12668
2012-10-18 20:54:37 +02:00
Eli Zaretskii
afb8aa2482 Fix wording of error message in staticpro. 2012-10-18 20:21:55 +02:00
Daniel Colascione
14145a1e84 Increase NSTATICS; tell the user when we run out of static slots. 2012-10-18 09:00:08 -08:00
Stefan Monnier
393e94faab * lisp/erc/erc-backend.el: Require `erc' instead of autoloading its macros.
Fixes: debbugs:12669
2012-10-18 11:51:28 -04:00