1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-01 08:17:38 +00:00
Commit Graph

109034 Commits

Author SHA1 Message Date
Katsumi Yamaoka
aa7e16fc84 lisp/gnus/ChangeLog: Fix typo 2012-12-05 10:29:31 +00:00
Katsumi Yamaoka
299a66e982 gmm-utils.el (gmm-called-interactively-p): Revert. This seems to causes Emacs to get stuck! 2012-12-05 10:27:16 +00:00
Michael Albinus
51b890acbf * net/tramp-adb.el (tramp-adb-sdk-dir, tramp-adb-prompt): Use
group `tramp'.  Add version.
2012-12-05 11:09:54 +01:00
Katsumi Yamaoka
ad6fe94df2 gmm-utils.el (gmm-called-interactively-p): New function.
gnus-art.el (article-unsplit-urls)
gnus-bookmark.el (gnus-bookmark-bmenu-list)
gnus-registry.el (gnus-registry-get-article-marks)
message.el (message-goto-body): Use it.
  (message-called-interactively-p): Remove.
2012-12-05 09:24:27 +00:00
Chong Yidong
a368019460 Improve url matching in ffap.el.
* ffap.el (ffap-url-regexp): Don't require matching at front of string.
(ffap-url-p): If only a substring matches, return that.
(ffap-url-at-point): Use the return value of ffap-url-p.
(ffap-read-file-or-url, ffap-read-file-or-url-internal)
(find-file-at-point, dired-at-point, dired-at-point-prompter)
(ffap-guess-file-name-at-point): Likewise.
(ffap-replace-file-component): Fix typo.

Fixes: debbugs:4952
2012-12-05 15:29:02 +08:00
Chong Yidong
04b14f2b27 Improve completion behavior of info-display-manual.
* lisp/info.el (info-display-manual): Add existing Info buffers, whose
files may not be in Info-directory-list, to the completion.
(info--manual-names): New helper function.
2012-12-05 14:14:11 +08:00
Katsumi Yamaoka
066f0e09bc gmm-util.el: Re-introduce gmm-flet using cl-letf 2012-12-05 02:26:15 +00:00
Glenn Morris
49596095d0 Add conflict detection/resolution to vc-hg (bug#10709)
* lisp/vc/vc-hg.el (vc-hg-resolve-when-done, vc-hg-find-file-hook):
New functions, for detecting and resolving conflicts.
2012-12-04 20:49:31 -05:00
Katsumi Yamaoka
f2484dffa2 gmm-utils.el (gmm-labels): Doc fix 2012-12-05 00:18:23 +00:00
Katsumi Yamaoka
1191913260 gmm-utils.el (gmm-flet): Remove.
gnus-sync.el (gnus-sync-lesync-call)
message.el (message-read-from-minibuffer): Don't use it.
2012-12-05 00:13:56 +00:00
Katsumi Yamaoka
b2b049bc37 gmm-utils.el (gmm-labels): Dox fix 2012-12-04 23:33:24 +00:00
Katsumi Yamaoka
68c2d59da4 gmm-utils.el (gmm-labels): Use cl-labels if available 2012-12-04 23:24:24 +00:00
Andreas Schwab
396376f1ae * callproc.c (Fcall_process): Fix specpdl nesting for asynchronous
processes.
2012-12-04 22:18:37 +01:00
Stefan Monnier
1155742138 * leim/quail/latin-ltx.el: Avoid deprecated chars for \langle and \rangle.
Remove \rightparengtr and \leftparengtr for lack of consensus.
Suggested by Mattias Engdegård <mattiase@bredband.net>.

Fixes: debbugs:12948
2012-12-04 16:17:30 -05:00
Jambunathan K
b85aec936c * lisp/hi-lock.el (hi-lock-auto-select-face): New user variable.
(hi-lock-auto-select-face-defaults): New buffer local variable.
(hi-lock-read-face-name): Honor `hi-lock-auto-select-face'.
(hi-lock-unface-buffer): Prompt user with useful defaults.
With prefix arg, unhighlight all hi-lock patterns in buffer.

Fixes: debbugs:11095
2012-12-04 16:13:47 -05:00
Paul Eggert
47a6e6df2b Include <config.h> uniformly in oldXMenu sources.
* Activate.c, AddPane.c, AddSel.c, ChgPane.c, ChgSel.c, Create.c:
* InsPane.c, InsSel.c, Internal.c, XMakeAssoc.c:
Do not include <config.h>, since XMenuInt.h does that now.
* XLookAssoc.c, XMenuInt.h: Include <config.h>.
This avoids a build failure when configuring on Fedora 17
--with-x-toolkit=no, reported by Dmitry Andropov in
<http://lists.gnu.org/archive/html/emacs-devel/2012-12/msg00078.html>.
2012-12-04 12:42:29 -08:00
Michael Albinus
aefa2ead35 * NEWS: Mention new Tramp method "adb". 2012-12-04 18:07:09 +01:00
Stefan Monnier
8515507f1f * lisp/obsolete/terminal.el, lisp/obsolete/longlines.el: Add obsolecence info. 2012-12-04 12:04:01 -05:00
Michael Albinus
61b835dfb9 * tramp.texi (History): Mention ADB.
(Inline methods): Add `adb' method.
2012-12-04 17:59:24 +01:00
Michael Albinus
72cebfb7b1 * Makefile.in (TRAMP_SRC):
* makefile.w32-in (TRAMP_SRC): Add tramp-adb.el.
2012-12-04 17:56:04 +01:00
Juergen Hoetzel
0ec3f7ead1 * net/tramp-adb.el: New package. 2012-12-04 17:53:01 +01:00
Dmitry Antipov
350f51adac * lisp.h (Mouse_HLInfo): Remove set-but-unused mouse_face_image_state
member.  Adjust users.  Convert mouse_face_past_end, mouse_face_defer
and mouse_face_hidden members to a bitfields.
* frame.h (struct frame): Remove set-but-not-used space_width member.
(FRAME_SPACE_WIDTH): Remove.
* nsterm.m, w32term.c, xterm.c: Adjust users.
* termchar.h (struct tty_display_info): Remove set-but-unused se_is_so
member.  Adjust users.  Convert term_initted, delete_in_insert_mode,
costs_set, insert_mode, standout_mode, cursor_hidden and flow_control
members to a bitfields.
2012-12-04 19:15:30 +04:00
Katsumi Yamaoka
46a2cc4470 gmm-utils.el (gmm-flet, gmm-labels): New macros.
gnus-sync.el (gnus-sync-lesync-call)
message.el (message-read-from-minibuffer): Use gmm-flet.
gnus-score.el (gnus-score-decode-text-parts): Use gmm-labels.
gnus-util.el (gnus-macroexpand-all): Remove.
2012-12-04 08:22:12 +00:00
Chong Yidong
ce3e7725b4 Obsolete terminal.el.
* terminal.el: Move to obsolete/.
2012-12-04 11:04:31 +08:00
Chong Yidong
770de7cf72 Obsolete longlines.el.
* longlines.el: Move to obsolete/.

* lisp/org/org-bibtex.el (org-bibtex-ask): Use visual-line-mode instead of
longlines-mode.

* lisp/vc/ediff-diff.el (ediff-extract-diffs, ediff-extract-diffs3):
Remove code referring to longlines mode.
2012-12-04 10:47:43 +08:00
Juri Linkov
c38a186c2e * lisp/sort.el (delete-duplicate-lines): New command.
Fixes: debbugs:13032
2012-12-04 01:49:08 +02:00
Katsumi Yamaoka
9320b007d5 gnus-sync.el (gnus-sync-newsrc-offsets): Add :version 2012-12-03 22:08:37 +00:00
Paul Eggert
bb5f74ee84 Don't let call-process be a zombie factory.
Fixing this bug required some cleanup of the signal-handling code.
As a side effect, this change also fixes a longstanding rare race
condition whereby Emacs could mistakenly kill unrelated processes,
and it fixes a bug where a second C-g does not kill a recalcitrant
synchronous process in GNU/Linux and similar platforms.
The patch should also fix the last vestiges of Bug#9488,
a bug which has mostly been fixed on the trunk by other changes.
* callproc.c, process.h (synch_process_alive, synch_process_death)
(synch_process_termsig, sync_process_retcode):
Remove.  All uses removed, to simplify analysis and so that
less consing is done inside critical sections.
* callproc.c (call_process_exited): Remove.  All uses replaced
with !synch_process_pid.
* callproc.c (synch_process_pid, synch_process_fd): New static vars.
These take the role of what used to be in unwind-protect arg.
All uses changed.
(block_child_signal, unblock_child_signal):
New functions, to avoid races that could kill innocent-victim processes.
(call_process_kill, call_process_cleanup, Fcall_process): Use them.
(call_process_kill): Record killed processes as deleted, so that
zombies do not clutter up the system.  Do this inside a critical
section, to avoid a race that would allow the clutter.
(call_process_cleanup): Fix code so that the second C-g works again
on common platforms such as GNU/Linux.
(Fcall_process): Create the child process in a critical section,
to fix a race condition.  If creating an asynchronous process,
record it as deleted so that zombies do not clutter up the system.
Do unwind-protect for WINDOWSNT too, as that's simpler in the
light of these changes.  Omit unnecessary call to emacs_close
before failure, as the unwind-protect code does that.
* callproc.c (call_process_cleanup):
* w32proc.c (waitpid): Simplify now that synch_process_alive is gone.
* process.c (record_deleted_pid): New function, containing
code refactored out of Fdelete_process.
(Fdelete_process): Use it.
(process_status_retrieved): Remove.  All callers changed to use
child_status_change.
(record_child_status_change): Remove, folding its contents into ...
(handle_child_signal): ... this signal handler.  Now, this
function is purely a handler for SIGCHLD, and is not called after
a synchronous waitpid returns; the synchronous code is moved to
wait_for_termination.  There is no need to worry about reaping
more than one child now.
* sysdep.c (get_child_status, child_status_changed): New functions.
(wait_for_termination): Now takes int * status and bool
interruptible arguments, too.  Do not record child status change;
that's now the caller's responsibility.  All callers changed.
Reimplement in terms of get_child_status.
(wait_for_termination_1, interruptible_wait_for_termination):
Remove.  All callers changed to use wait_for_termination.
* syswait.h: Include <stdbool.h>, for bool.
(record_child_status_change, interruptible_wait_for_termination):
Remove decls.
(record_deleted_pid, child_status_changed): New decls.
(wait_for_termination): Adjust to API changes noted above.

Fixes: debbugs:12980
2012-12-03 13:42:12 -08:00
Paul Eggert
bc9dbce6ee * bytecode.c, lisp.h (Qbytecode): Remove.
No longer needed after 2012-11-20 interactive-p changes.
2012-12-03 13:07:47 -08:00
Eli Zaretskii
3cf3c60796 Fix bug #13055 with cursor positioning inside scroll-margin.
src/xdisp.c (redisplay_window): If the cursor is visible, but inside
 the scroll margin, move point outside the margin.
2012-12-03 22:48:12 +02:00
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