Merge remote-tracking branch 'savannah/master' into master-android-1
This commit is contained in:
commit
326437e6c8
2 changed files with 17 additions and 7 deletions
|
@ -301,7 +301,7 @@ and /* */ comments. SOFT works the same as in
|
|||
(delete-region (line-beginning-position) (point))
|
||||
(insert "//" whitespaces)))
|
||||
|
||||
;; Line starts with /* or /**
|
||||
;; Line starts with /* or /**.
|
||||
((save-excursion
|
||||
(beginning-of-line)
|
||||
(looking-at (rx "/*" (group (? "*") (* " ")))))
|
||||
|
@ -310,14 +310,24 @@ and /* */ comments. SOFT works the same as in
|
|||
(delete-region (line-beginning-position) (point))
|
||||
(insert " *" (make-string whitespace-and-star-len ?\s))))
|
||||
|
||||
;; Line starts with *
|
||||
;; Line starts with *.
|
||||
((save-excursion
|
||||
(beginning-of-line)
|
||||
(looking-at (rx (group (* " ") (or "*" "|") (* " ")))))
|
||||
(let ((prefix (match-string 1)))
|
||||
(if soft (insert-and-inherit ?\n) (newline 1))
|
||||
(delete-region (line-beginning-position) (point))
|
||||
(insert prefix)))))
|
||||
(insert prefix)))
|
||||
|
||||
;; Line starts with whitespaces or no space. This is basically the
|
||||
;; default case since (rx (* " ")) matches anything.
|
||||
((save-excursion
|
||||
(beginning-of-line)
|
||||
(looking-at (rx (* " "))))
|
||||
(let ((whitespaces (match-string 0)))
|
||||
(if soft (insert-and-inherit ?\n) (newline 1))
|
||||
(delete-region (line-beginning-position) (point))
|
||||
(insert whitespaces)))))
|
||||
|
||||
;;; Statement indent
|
||||
|
||||
|
|
|
@ -2037,10 +2037,10 @@ init_signals (void)
|
|||
main_thread_id = pthread_self ();
|
||||
#endif
|
||||
|
||||
/* Don't alter signal handlers if dumping. On some machines,
|
||||
changing signal handlers sets static data that would make signals
|
||||
fail to work right when the dumped Emacs is run. */
|
||||
if (will_dump_p ())
|
||||
/* Don't alter signal handlers if dumping with unexec. On some
|
||||
machines, changing signal handlers sets static data that would make
|
||||
signals fail to work right when the dumped Emacs is run. */
|
||||
if (will_dump_with_unexec_p ())
|
||||
return;
|
||||
|
||||
sigfillset (&process_fatal_action.sa_mask);
|
||||
|
|
Loading…
Add table
Reference in a new issue