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

109004 commits

Author SHA1 Message Date
Jan Djärv
005c8d1340 * gtkutil.c (my_log_handler): New function.
(xg_set_geometry): Set log handler to my_log_handler.

Fixes: debbugs:11177
2012-12-03 20:16:17 +01:00
Agustín Martín
475eea6f70 Fix my last Changelog entry. 2012-12-03 18:23:42 +01:00
Agustín Martín
214bd48163 ispell.el: Use expanded values of personal dictionary for process restart checks.
(ispell-internal-change-dictionary):
 Improve ispell process restart checks by using expanded values for ispell
  personal dictionary and for related restart check.

(ispell-start-process):
 * Remove apparently redundant code that seems better handled from
  (ispell-internal-change-dictionary)
 * No longer need to expand ispell personal dictionary, it is already
   expanded.

Fixes: debbugs:13019
2012-12-03 18:15:32 +01:00
Agustín Martín
329bfd64c2 ispell.el: Fix ispell personal dictionary name expansion.
textmodes/ispell.el (ispell-init-process, ispell-start-process): 
Make sure ispell personal dictionary name is expanded after initial
`default-directory' value (Bug#13019).
2012-12-03 17:08:23 +01:00
Dmitry Antipov
20edc1c9ed * lisp.h (modify_region): Rename to...
(modify_region_1): ...new prototype.
* textprop.c (modify_region): Now static.  Adjust users.
* insdel.c (modify_region): Rename to...
(modify_region_1): ...new function to work with current buffer.
Adjust comment and users.  Use true and false for boolean arg.
2012-12-03 18:13:06 +04:00
Dmitry Antipov
62c2e5ed3a * alloc.c (free_save_value): New function.
(safe_alloca_unwind): Use it.
* lisp.h (free_save_value): New prototype.
* editfns.c (save_excursion_save): Use Lisp_Misc_Save_Value.
Add comment.
(save_excursion_restore): Adjust to match saved data structure.
Use free_save_value to offload some work from GC.  Drop obsolete
#if 0 code.
2012-12-03 12:06:02 +04:00
Chong Yidong
1c960c45ac * lisp/url/url-misc.el (url-do-terminal-emulator): Use make-term
instead of terminal-emulator.
2012-12-03 14:23:06 +08:00
Jay Belanger
77a7493589 * lisp/calc/calc-forms.el (math-date-to-iso-dt): Fix weekday number. 2012-12-02 22:46:49 -06:00
Glenn Morris
c5bc2d1d05 Merge from emacs-24; up to 2012-11-23T06:23:28Z!cyd@gnu.org 2012-12-02 17:08:31 -08:00
Jay Belanger
1bf3989cd4 * lisp/calc/calc-forms.el (math-date-to-iso-dt): Fix typo. 2012-12-02 19:05:08 -06:00
Jay Belanger
682ceaf895 * lisp/calc/calc-forms.el (math-absolute-from-iso-dt)
(math-date-to-iso-dt, math-parse-iso-date-validate)
(math-iso-dt-to-date): New functions.
(math-fd-iso-dt, math-fd-isoyear, math-fd-isoweek)
(math-fd-isoweekday): New variables.
(calc-date-notation, math-parse-standard-date, math-format-date)
(math-format-date-part): Add support for more formatting codes.
2012-12-02 18:54:11 -06:00
Paul Eggert
2dd2e62273 Fix xpalloc confusion after memory is exhausted.
* alloc.c (xpalloc): Comment fix.
* charset.c (Fdefine_charset_internal): If xpalloc exhausts memory
and signals an error, do not clear charset_table_size, as
charset_table is still valid.
* doprnt.c (evxprintf): Clear *BUF after freeing it.
2012-12-02 15:11:42 -08:00
Dmitry Gutov
db47d5e975 * lisp/vc/vc.el (vc-delete-file, vc-rename-file): Default to the
current buffer's file name when called interactively.

Fixes: debbugs:12488
2012-12-03 01:12:31 +04:00
Paul Eggert
21e54a94d7 Use execve to avoid need to munge environ.
* callproc.c (Fcall_process):
* process.c (create_process):
Don't save and restore environ;	no longer needed.
* callproc.c (child_setup):
Use execve, not execvp, to preserve environ.

Fixes: debbugs:13054
2012-12-02 11:16:45 -08:00
Michael Albinus
328dac0d42 * tramp.texi (Top, Obtaining Tramp): Replace CVS by Git.
(External methods): Fix typo.
2012-12-02 16:33:17 +01:00
Andreas Schwab
061c322778 * gnus-sum.el (gnus-summary-mode-map): Bind gnus-summary-widget-forward
to TAB, not [tab].
(gnus-summary-article-map): Likewise.
2012-12-02 12:45:36 +01:00
Andreas Schwab
1e14f99eca * gnus-sync.el (gnus-sync-newsrc-offsets): Restore definition.
(gnus-sync-save): Use correct format for gnus-sync-newsrc-loader.
2012-12-02 11:55:08 +01:00
Chong Yidong
f02f19bd4e Lisp manual improvements for plists and symbol plists.
* doc/lispref/commands.texi (Using Interactive): Fix index entry.

* doc/lispref/customize.texi (Variable Definitions):
* doc/lispref/display.texi (Defining Faces):
* doc/lispref/sequences.texi (Char-Tables): Fix xref.

* doc/lispref/lists.texi (Property Lists): Move here from symbols.texi.
(Plist Access): Rename from Other Plists.

* doc/lispref/symbols.texi (Symbol Properties): New node.
(Symbol Plists): Make it a subsection under Symbol Properties.
(Standard Properties): New node.
2012-12-02 17:14:16 +08:00
Chong Yidong
547d686504 Document the conversion of kbd into a function.
* doc/emacs/custom.texi (Init Rebinding): kbd is now a function.

* doc/lispref/keymaps.texi (Key Sequences): kbd is now a function.

Fixes: debbugs:13052
2012-12-02 15:13:44 +08:00
Juri Linkov
010db6da65 * info.el (info-display-manual): Add completion.
Fixes: debbugs:10771
2012-12-02 14:41:22 +08:00
Juri Linkov
3faf494431 * info.el (info-display-manual): Don't clobber an existing Info buffer.
Fixes: debbugs:10770
2012-12-02 14:22:32 +08:00
Chong Yidong
89eb3b0ae7 Fix for bad test in ruby-mode-tests.el.
* automated/ruby-mode-tests.el (ruby-add-log-current-method-examples):
Don't use loop macro, to allow automated testing to work.
2012-12-02 14:06:32 +08:00
Kevin Ryde
1cbaa705e7 * lib-src/etags.c (Lisp_functions): Skip (defvar foo) declarations
unless the --declarations flag is enabled.
(Lisp_help): Update.
(skip_name): New function.

* doc/emacs/maintaining.texi (Tag Syntax): Mention (defvar foo) handling.

* doc/man/etags.1: Mention effect of --declarations in Lisp.

Fixes: debbugs:5600
2012-12-02 09:47:56 +08:00
Paul Eggert
3e5490f7a5 * xterm.c (x_draw_image_relief): Remove unused locals.
Fixes: debbugs:10500
2012-12-01 17:06:14 -06:00
Juanma Barranquero
ba12ad69f1 nt/config.nt: Sync with autogen/config.in. 2012-12-01 21:09:30 +01:00
Leo Liu
ff3d86d099 * lisp/files.el (dir-locals-read-from-file): Check file non-empty
before reading.

Fixes: debbugs:13038
2012-12-01 23:45:38 +08:00
Yuya Nishihara
cb5d51dc07 Fix use of buffer-file-truename in vc-find-file-hook (tiny change).
* lisp/vc/vc-hooks.el (vc-find-file-hook): Expand buffer-file-truename
before using it for comparison.

Fixes: debbugs:5297
2012-12-01 21:25:13 +08:00
Glenn Morris
b9cf4db5c9 Auto-commit of loaddefs files. 2012-12-01 07:17:48 -05:00
Eli Zaretskii
5d552c2ac3 Fix the MSDOS build.
msdos/sed1v2.inp: Dump emacs.exe and copy to b-emacs.exe before
 generating leim-list.el.
2012-12-01 13:50:05 +02:00
Glenn Morris
ae067123d3 Auto-commit of loaddefs files. 2012-12-01 06:20:45 -05:00
Glenn Morris
45d4966ba6 Auto-commit of generated files. 2012-12-01 06:17:32 -05:00
Jari Aalto
f38cd76e55 Add `add-log-current-defun-function's for CSS and HTML mode.
* textmodes/css-mode.el (css-current-defun-name): New function.
(css-mode): Use it.

* textmodes/sgml-mode.el (html-current-defun-name): New function.
(html-mode): Use it.
2012-12-01 13:51:33 +08:00
Chong Yidong
9dffb5b693 Fix last change.
* emacs-lisp/lisp-mode.el (lisp-current-defun-name):
* progmodes/m4-mode.el (m4-current-defun-name):
* progmodes/perl-mode.el (perl-current-defun-name):
* textmodes/tex-mode.el (tex-current-defun-name):
* textmodes/texinfo.el (texinfo-current-defun-name): Use save-excursion.
2012-12-01 13:09:12 +08:00
Chong Yidong
ba03d0d932 Modularize add-log-current-defun.
Suggested by Jari Aalto.

* lisp/emacs-lisp/lisp-mode.el (lisp-current-defun-name): New.
(lisp-mode-variables): Use it.

* lisp/progmodes/cc-mode.el (c-common-init):
* lisp/progmodes/cperl-mode.el (cperl-mode): Set a value for
add-log-current-defun-function.

* lisp/progmodes/m4-mode.el (m4-current-defun-name): New function.
(m4-mode): Use it.

* lisp/progmodes/perl-mode.el (perl-current-defun-name): New.
(perl-mode): Use it.

* lisp/progmodes/scheme.el (scheme-mode-variables, dsssl-mode): Use
lisp-current-defun-name.

* lisp/textmodes/tex-mode.el (tex-current-defun-name): New.
(tex-common-initialization): Use it.

* lisp/textmodes/texinfo.el (texinfo-current-defun-name): New.
(texinfo-mode): Use it.

* lisp/vc/add-log.el (add-log-current-defun-function): Doc fix.
(add-log-current-defun): Move mode-specific code to other files.
(add-log-lisp-like-modes, add-log-c-like-modes)
(add-log-tex-like-modes): Variables deleted.

Fixes: debbugs:2224
2012-12-01 12:57:07 +08:00
Chong Yidong
92eadba57f Convert several major modes to setq-local.
* emacs-lisp/lisp-mode.el (lisp-mode-variables, lisp-mode):
* progmodes/autoconf.el (autoconf-mode):
* progmodes/js.el (js-mode):
* progmodes/make-mode.el (makefile-mode, makefile-makepp-mode)
(makefile-bsdmake-mode, makefile-imake-mode, makefile-browse):
* progmodes/perl-mode.el (perl-mode):
* progmodes/sh-script.el (sh-mode, sh-set-shell):
* textmodes/css-mode.el (css-mode):
* textmodes/sgml-mode.el (html-mode, sgml-mode)
(sgml-tags-invisible, sgml-guess-indent):
* textmodes/tex-mode.el (tex-common-initialization)
(latex-complete-bibtex-keys, tex-shell, tex-main-file)
(doctex-mode, plain-tex-mode, latex-mode):
* textmodes/texinfo.el (texinfo-mode): Use setq-local.
2012-12-01 12:09:55 +08:00
YAMAMOTO Mitsuharu
75b4f59c27 Fix drawing of relief rects on X and W32.
* xterm.c (x_draw_relief_rect, x_draw_image_relief): Fix relief
display for sliced images.

* w32term.c (w32_draw_relief_rect, x_draw_image_relief): Likewise.

Fixes: debbugs:10500
2012-12-01 10:38:11 +08:00
Kirk Kelsey
3ddbf80375 * vc-hg.el (vc-hg-next-revision): Ensure use of default "tip" output format
Fixes: debbugs:6968
2012-11-30 21:10:53 -05:00
Chong Yidong
5781e949ae Improve the descriptive message in `recover-session'.
* lisp/files.el (recover-session): Improve the descriptive message,
and use substitute-command-keys.
2012-12-01 10:09:45 +08:00
Kim F. Storm
f0b6ae635d * startup.el (fancy-startup-tail): Add a clickable link. 2012-12-01 10:08:30 +08:00
Chong Yidong
a24580314d * fileio.c (Vauto_save_list_file_name): Minor doc fix. 2012-12-01 09:49:48 +08:00
Chong Yidong
c01bf73e79 * startup.el (fancy-startup-tail): Improve the message about auto-save files.
Fixes: debbugs:2176
2012-12-01 09:49:29 +08:00
Glenn Morris
a940045887 ido.el fix for bug#13036
* lisp/ido.el (ido-file-internal): Handle other-window, other-frame for dired.
2012-11-30 20:27:56 -05:00
Kevin Ryde
00054d2199 * lib-src/etags.c (Perl_functions): Support "use constant".
* doc/emacs/maintaining.texi (Tag Syntax): Mention Perl's "use constant".

Fixes: debbugs:5055
2012-12-01 09:22:28 +08:00
Glenn Morris
f4f3b439bc * doc/misc/rcirc.texi (Notices): Fix typo. 2012-11-30 18:50:49 -05:00
Paul Eggert
f64898abf4 Merge from gnulib for 'inline'.
2012-11-29 snippet/warn-on-use: no 'static inline'
2012-11-29 ftruncate, fts, lstat, openat, raise: no 'static inline'
2012-11-29 arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
2012-11-29 fflush, stat: no 'static inline'
2012-11-29 stdio: better 'inline'
2012-11-29 sys_stat: no 'static inline'
2012-11-29 unistd: better 'inline'
2012-11-29 c-strtod, memcoll, readutmp: no 'static inline'
2012-11-29 extern-inline: no 'static inline'
2012-11-29 sys_socket: better 'inline'
* lib/stdio.c, lib/unistd.c: New files, from gnulib.
* build-aux/snippet/warn-on-use.h, lib/gnulib.mk, lib/lstat.c:
* lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c, lib/stat.c:
* lib/stdio.in.h, lib/sys_stat.in.h, lib/unistd.in.h, m4/c-strtod.m4:
* m4/extern-inline.m4, m4/gnulib-comp.m4, m4/lstat.m4, m4/md5.m4:
* m4/sha1.m4, m4/sha256.m4, m4/sha512.m4, m4/stat.m4, m4/stdio_h.m4:
* m4/sys_socket_h.m4, m4/sys_stat_h.m4, m4/unistd_h.m4:
Update from gnulib.

Fixes: debbugs:13040
2012-11-30 10:25:59 -08:00
Juanma Barranquero
f8aff4c6b8 src/doc.c: Fix bug#13034.
(Fdocumentation): Re-add handling of function-documentation,
accidentally removed in 2012-11-09T04:10:16Z!monnier@iro.umontreal.ca.
2012-11-30 18:27:41 +01:00
Glenn Morris
fb3bf6ced4 Defcustom :version fixes
* lisp/icomplete.el (icomplete-separator): Fix :version.

* lisp/erc/erc.el (erc-accidental-paste-threshold-seconds): Add :version.
2012-11-30 09:09:55 -08:00
Fabrice Popineau
c7b36b9550 Fix compilation problems with 64-bit MSVC compiler.
src/w32fns.c: Remove prototype of atof.
 (syspage_mask): Declared DWORD_PTR, for compatibility with 64-bit
 builds.
 (file_dialog_callback): Declared UINT_PTR.
 src/w32common.h (syspage_mask): Declare DWORD_PTR, for compatibility
 with 64-bit builds.
 src/w32.c (FILE_DEVICE_FILE_SYSTEM, METHOD_BUFFERED)
 (FILE_ANY_ACCESS, CTL_CODE) [_MSC_VER]: Define only if not already
 defined.
2012-11-30 17:14:22 +02:00
Eli Zaretskii
f43ce1c197 Fix commentary to buffer_shared_and_changed. 2012-11-30 11:23:15 +02:00
Chong Yidong
276479fd70 In Shell mode, reapply ansi colorization if the mode is re-enabled.
* shell.el (shell-apply-ansi-color, shell-reapply-ansi-color): New functions.
(shell-mode): Use them to reapply ansi colorization if Shell mode is re-enabled.
2012-11-30 16:24:53 +08:00