aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2012-11-23 20:13:53 +0200
committerEli Zaretskii2012-11-23 20:13:53 +0200
commit3f8879751b8dc5e007dd8e8acdea7c7e605a2612 (patch)
treeca1408d5863bb7cdcbd4869d141dbe7a7cb6f7b3
parenta414bed56d8fed3e1c55341025d707b139c2ce41 (diff)
parent277c8f21a139fb6727fad7fc856f31eaf183fd1e (diff)
downloademacs-3f8879751b8dc5e007dd8e8acdea7c7e605a2612.tar.gz
emacs-3f8879751b8dc5e007dd8e8acdea7c7e605a2612.zip
Merge from trunk.
-rw-r--r--autogen/config.in6
-rwxr-xr-xautogen/configure5
-rw-r--r--lisp/erc/ChangeLog5
-rw-r--r--lisp/erc/erc-backend.el70
-rw-r--r--nt/ChangeLog6
-rw-r--r--nt/config.nt15
-rw-r--r--src/ChangeLog16
-rw-r--r--src/frame.h3
-rw-r--r--src/nsterm.h3
-rw-r--r--src/w32menu.c13
-rw-r--r--src/w32term.h16
-rw-r--r--src/xterm.h14
12 files changed, 71 insertions, 101 deletions
diff --git a/autogen/config.in b/autogen/config.in
index 9f530cc57d3..c0fb1f34bf4 100644
--- a/autogen/config.in
+++ b/autogen/config.in
@@ -253,9 +253,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
253/* Define to 1 if you have the `clock_settime' function. */ 253/* Define to 1 if you have the `clock_settime' function. */
254#undef HAVE_CLOCK_SETTIME 254#undef HAVE_CLOCK_SETTIME
255 255
256/* Define to 1 if you have the `closedir' function. */
257#undef HAVE_CLOSEDIR
258
259/* Define to 1 if you have the <coff.h> header file. */ 256/* Define to 1 if you have the <coff.h> header file. */
260#undef HAVE_COFF_H 257#undef HAVE_COFF_H
261 258
@@ -339,9 +336,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
339/* Define to 1 if you have the `difftime' function. */ 336/* Define to 1 if you have the `difftime' function. */
340#undef HAVE_DIFFTIME 337#undef HAVE_DIFFTIME
341 338
342/* Define to 1 if you have the <dirent.h> header file. */
343#undef HAVE_DIRENT_H
344
345/* Define to 1 if you have the 'dup2' function. */ 339/* Define to 1 if you have the 'dup2' function. */
346#undef HAVE_DUP2 340#undef HAVE_DUP2
347 341
diff --git a/autogen/configure b/autogen/configure
index 0558955911f..fbb2efbc860 100755
--- a/autogen/configure
+++ b/autogen/configure
@@ -3214,7 +3214,6 @@ as_fn_append ac_header_list " sys/resource.h"
3214as_fn_append ac_header_list " sys/utsname.h" 3214as_fn_append ac_header_list " sys/utsname.h"
3215as_fn_append ac_header_list " pwd.h" 3215as_fn_append ac_header_list " pwd.h"
3216as_fn_append ac_header_list " utmp.h" 3216as_fn_append ac_header_list " utmp.h"
3217as_fn_append ac_header_list " dirent.h"
3218as_fn_append ac_header_list " util.h" 3217as_fn_append ac_header_list " util.h"
3219as_fn_append ac_header_list " sys/socket.h" 3218as_fn_append ac_header_list " sys/socket.h"
3220as_fn_append ac_header_list " stdlib.h" 3219as_fn_append ac_header_list " stdlib.h"
@@ -8809,8 +8808,6 @@ done
8809 8808
8810 8809
8811 8810
8812
8813
8814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5 8811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
8815$as_echo_n "checking if personality LINUX32 can be set... " >&6; } 8812$as_echo_n "checking if personality LINUX32 can be set... " >&6; }
8816cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -13474,7 +13471,7 @@ esac
13474 13471
13475 13472
13476for ac_func in gethostname \ 13473for ac_func in gethostname \
13477closedir getrusage get_current_dir_name \ 13474getrusage get_current_dir_name \
13478lrand48 \ 13475lrand48 \
13479select getpagesize setlocale \ 13476select getpagesize setlocale \
13480utimes getrlimit setrlimit shutdown getaddrinfo \ 13477utimes getrlimit setrlimit shutdown getaddrinfo \
diff --git a/lisp/erc/ChangeLog b/lisp/erc/ChangeLog
index ca7edd1aa88..3f9824545cf 100644
--- a/lisp/erc/ChangeLog
+++ b/lisp/erc/ChangeLog
@@ -1,3 +1,8 @@
12012-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * erc-backend.el: Fix last change that missed calls to `second'
4 (bug#12970).
5
12012-11-19 Stefan Monnier <monnier@iro.umontreal.ca> 62012-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 Use cl-lib instead of cl, and interactive-p => called-interactively-p. 8 Use cl-lib instead of cl, and interactive-p => called-interactively-p.
diff --git a/lisp/erc/erc-backend.el b/lisp/erc/erc-backend.el
index a3d0ebe121f..9b28916623b 100644
--- a/lisp/erc/erc-backend.el
+++ b/lisp/erc/erc-backend.el
@@ -1556,17 +1556,17 @@ A server may send more than one 005 message."
1556(define-erc-response-handler (252) 1556(define-erc-response-handler (252)
1557 "Display the number of IRC operators online." nil 1557 "Display the number of IRC operators online." nil
1558 (erc-display-message parsed 'notice 'active 's252 1558 (erc-display-message parsed 'notice 'active 's252
1559 ?i (second (erc-response.command-args parsed)))) 1559 ?i (cadr (erc-response.command-args parsed))))
1560 1560
1561(define-erc-response-handler (253) 1561(define-erc-response-handler (253)
1562 "Display the number of unknown connections." nil 1562 "Display the number of unknown connections." nil
1563 (erc-display-message parsed 'notice 'active 's253 1563 (erc-display-message parsed 'notice 'active 's253
1564 ?i (second (erc-response.command-args parsed)))) 1564 ?i (cadr (erc-response.command-args parsed))))
1565 1565
1566(define-erc-response-handler (254) 1566(define-erc-response-handler (254)
1567 "Display the number of channels formed." nil 1567 "Display the number of channels formed." nil
1568 (erc-display-message parsed 'notice 'active 's254 1568 (erc-display-message parsed 'notice 'active 's254
1569 ?i (second (erc-response.command-args parsed)))) 1569 ?i (cadr (erc-response.command-args parsed))))
1570 1570
1571(define-erc-response-handler (250 251 255 256 257 258 259 265 266 377 378) 1571(define-erc-response-handler (250 251 255 256 257 258 259 265 266 377 378)
1572 "Generic display of server messages as notices. 1572 "Generic display of server messages as notices.
@@ -1590,13 +1590,13 @@ See `erc-display-server-message'." nil
1590(define-erc-response-handler (301) 1590(define-erc-response-handler (301)
1591 "AWAY notice." nil 1591 "AWAY notice." nil
1592 (erc-display-message parsed 'notice 'active 's301 1592 (erc-display-message parsed 'notice 'active 's301
1593 ?n (second (erc-response.command-args parsed)) 1593 ?n (cadr (erc-response.command-args parsed))
1594 ?r (erc-response.contents parsed))) 1594 ?r (erc-response.contents parsed)))
1595 1595
1596(define-erc-response-handler (303) 1596(define-erc-response-handler (303)
1597 "ISON reply" nil 1597 "ISON reply" nil
1598 (erc-display-message parsed 'notice 'active 's303 1598 (erc-display-message parsed 'notice 'active 's303
1599 ?n (second (erc-response.command-args parsed)))) 1599 ?n (cadr (erc-response.command-args parsed))))
1600 1600
1601(define-erc-response-handler (305) 1601(define-erc-response-handler (305)
1602 "Return from AWAYness." nil 1602 "Return from AWAYness." nil
@@ -1643,7 +1643,7 @@ See `erc-display-server-message'." nil
1643 "IRC Operator response in WHOIS." nil 1643 "IRC Operator response in WHOIS." nil
1644 (erc-display-message 1644 (erc-display-message
1645 parsed 'notice 'active 's313 1645 parsed 'notice 'active 's313
1646 ?n (second (erc-response.command-args parsed)))) 1646 ?n (cadr (erc-response.command-args parsed))))
1647 1647
1648(define-erc-response-handler (315 318 323 369) 1648(define-erc-response-handler (315 318 323 369)
1649 ;; 315 - End of WHO 1649 ;; 315 - End of WHO
@@ -1674,14 +1674,14 @@ See `erc-display-server-message'." nil
1674 "Channel names in WHOIS response." nil 1674 "Channel names in WHOIS response." nil
1675 (erc-display-message 1675 (erc-display-message
1676 parsed 'notice 'active 's319 1676 parsed 'notice 'active 's319
1677 ?n (second (erc-response.command-args parsed)) 1677 ?n (cadr (erc-response.command-args parsed))
1678 ?c (erc-response.contents parsed))) 1678 ?c (erc-response.contents parsed)))
1679 1679
1680(define-erc-response-handler (320) 1680(define-erc-response-handler (320)
1681 "Identified user in WHOIS." nil 1681 "Identified user in WHOIS." nil
1682 (erc-display-message 1682 (erc-display-message
1683 parsed 'notice 'active 's320 1683 parsed 'notice 'active 's320
1684 ?n (second (erc-response.command-args parsed)))) 1684 ?n (cadr (erc-response.command-args parsed))))
1685 1685
1686(define-erc-response-handler (321) 1686(define-erc-response-handler (321)
1687 "LIST header." nil 1687 "LIST header." nil
@@ -1713,7 +1713,7 @@ See `erc-display-server-message'." nil
1713 1713
1714(define-erc-response-handler (324) 1714(define-erc-response-handler (324)
1715 "Channel or nick modes." nil 1715 "Channel or nick modes." nil
1716 (let ((channel (second (erc-response.command-args parsed))) 1716 (let ((channel (cadr (erc-response.command-args parsed)))
1717 (modes (mapconcat 'identity (cddr (erc-response.command-args parsed)) 1717 (modes (mapconcat 'identity (cddr (erc-response.command-args parsed))
1718 " "))) 1718 " ")))
1719 (erc-set-modes channel modes) 1719 (erc-set-modes channel modes)
@@ -1723,14 +1723,14 @@ See `erc-display-server-message'." nil
1723 1723
1724(define-erc-response-handler (328) 1724(define-erc-response-handler (328)
1725 "Channel URL (on freenode network)." nil 1725 "Channel URL (on freenode network)." nil
1726 (let ((channel (second (erc-response.command-args parsed))) 1726 (let ((channel (cadr (erc-response.command-args parsed)))
1727 (url (erc-response.contents parsed))) 1727 (url (erc-response.contents parsed)))
1728 (erc-display-message parsed 'notice (erc-get-buffer channel proc) 1728 (erc-display-message parsed 'notice (erc-get-buffer channel proc)
1729 's328 ?c channel ?u url))) 1729 's328 ?c channel ?u url)))
1730 1730
1731(define-erc-response-handler (329) 1731(define-erc-response-handler (329)
1732 "Channel creation date." nil 1732 "Channel creation date." nil
1733 (let ((channel (second (erc-response.command-args parsed))) 1733 (let ((channel (cadr (erc-response.command-args parsed)))
1734 (time (erc-string-to-emacs-time 1734 (time (erc-string-to-emacs-time
1735 (nth 2 (erc-response.command-args parsed))))) 1735 (nth 2 (erc-response.command-args parsed)))))
1736 (erc-display-message 1736 (erc-display-message
@@ -1748,7 +1748,7 @@ See `erc-display-server-message'." nil
1748 ;; authaccount == (aref parsed 4) 1748 ;; authaccount == (aref parsed 4)
1749 ;; authmsg == (aref parsed 5) 1749 ;; authmsg == (aref parsed 5)
1750 ;; The guesses below are, well, just that. -- Lawrence 2004/05/10 1750 ;; The guesses below are, well, just that. -- Lawrence 2004/05/10
1751 (let ((nick (second (erc-response.command-args parsed))) 1751 (let ((nick (cadr (erc-response.command-args parsed)))
1752 (authaccount (nth 2 (erc-response.command-args parsed))) 1752 (authaccount (nth 2 (erc-response.command-args parsed)))
1753 (authmsg (erc-response.contents parsed))) 1753 (authmsg (erc-response.contents parsed)))
1754 (erc-display-message parsed 'notice 'active 's330 1754 (erc-display-message parsed 'notice 'active 's330
@@ -1756,14 +1756,14 @@ See `erc-display-server-message'." nil
1756 1756
1757(define-erc-response-handler (331) 1757(define-erc-response-handler (331)
1758 "No topic set for channel." nil 1758 "No topic set for channel." nil
1759 (let ((channel (second (erc-response.command-args parsed))) 1759 (let ((channel (cadr (erc-response.command-args parsed)))
1760 (topic (erc-response.contents parsed))) 1760 (topic (erc-response.contents parsed)))
1761 (erc-display-message parsed 'notice (erc-get-buffer channel proc) 1761 (erc-display-message parsed 'notice (erc-get-buffer channel proc)
1762 's331 ?c channel))) 1762 's331 ?c channel)))
1763 1763
1764(define-erc-response-handler (332) 1764(define-erc-response-handler (332)
1765 "TOPIC notice." nil 1765 "TOPIC notice." nil
1766 (let ((channel (second (erc-response.command-args parsed))) 1766 (let ((channel (cadr (erc-response.command-args parsed)))
1767 (topic (erc-response.contents parsed))) 1767 (topic (erc-response.contents parsed)))
1768 (erc-update-channel-topic channel topic) 1768 (erc-update-channel-topic channel topic)
1769 (erc-display-message parsed 'notice (erc-get-buffer channel proc) 1769 (erc-display-message parsed 'notice (erc-get-buffer channel proc)
@@ -1816,7 +1816,7 @@ See `erc-display-server-message'." nil
1816 1816
1817(define-erc-response-handler (366) 1817(define-erc-response-handler (366)
1818 "End of NAMES." nil 1818 "End of NAMES." nil
1819 (erc-with-buffer ((second (erc-response.command-args parsed)) proc) 1819 (erc-with-buffer ((cadr (erc-response.command-args parsed)) proc)
1820 (erc-channel-end-receiving-names))) 1820 (erc-channel-end-receiving-names)))
1821 1821
1822(define-erc-response-handler (367) 1822(define-erc-response-handler (367)
@@ -1836,7 +1836,7 @@ See `erc-display-server-message'." nil
1836 1836
1837(define-erc-response-handler (368) 1837(define-erc-response-handler (368)
1838 "End of channel ban list." nil 1838 "End of channel ban list." nil
1839 (let ((channel (second (erc-response.command-args parsed)))) 1839 (let ((channel (cadr (erc-response.command-args parsed))))
1840 (erc-display-message parsed 'notice 'active 's368 1840 (erc-display-message parsed 'notice 'active 's368
1841 ?c channel))) 1841 ?c channel)))
1842 1842
@@ -1854,12 +1854,12 @@ See `erc-display-server-message'." nil
1854 "Server's time string." nil 1854 "Server's time string." nil
1855 (erc-display-message 1855 (erc-display-message
1856 parsed 'notice 'active 1856 parsed 'notice 'active
1857 's391 ?s (second (erc-response.command-args parsed)) 1857 's391 ?s (cadr (erc-response.command-args parsed))
1858 ?t (nth 2 (erc-response.command-args parsed)))) 1858 ?t (nth 2 (erc-response.command-args parsed))))
1859 1859
1860(define-erc-response-handler (401) 1860(define-erc-response-handler (401)
1861 "No such nick/channel." nil 1861 "No such nick/channel." nil
1862 (let ((nick/channel (second (erc-response.command-args parsed)))) 1862 (let ((nick/channel (cadr (erc-response.command-args parsed))))
1863 (when erc-whowas-on-nosuchnick 1863 (when erc-whowas-on-nosuchnick
1864 (erc-log (format "cmd: WHOWAS: %s" nick/channel)) 1864 (erc-log (format "cmd: WHOWAS: %s" nick/channel))
1865 (erc-server-send (format "WHOWAS %s 1" nick/channel))) 1865 (erc-server-send (format "WHOWAS %s 1" nick/channel)))
@@ -1869,23 +1869,23 @@ See `erc-display-server-message'." nil
1869(define-erc-response-handler (403) 1869(define-erc-response-handler (403)
1870 "No such channel." nil 1870 "No such channel." nil
1871 (erc-display-message parsed '(notice error) 'active 1871 (erc-display-message parsed '(notice error) 'active
1872 's403 ?c (second (erc-response.command-args parsed)))) 1872 's403 ?c (cadr (erc-response.command-args parsed))))
1873 1873
1874(define-erc-response-handler (404) 1874(define-erc-response-handler (404)
1875 "Cannot send to channel." nil 1875 "Cannot send to channel." nil
1876 (erc-display-message parsed '(notice error) 'active 1876 (erc-display-message parsed '(notice error) 'active
1877 's404 ?c (second (erc-response.command-args parsed)))) 1877 's404 ?c (cadr (erc-response.command-args parsed))))
1878 1878
1879 1879
1880(define-erc-response-handler (405) 1880(define-erc-response-handler (405)
1881 "Can't join that many channels." nil 1881 "Can't join that many channels." nil
1882 (erc-display-message parsed '(notice error) 'active 1882 (erc-display-message parsed '(notice error) 'active
1883 's405 ?c (second (erc-response.command-args parsed)))) 1883 's405 ?c (cadr (erc-response.command-args parsed))))
1884 1884
1885(define-erc-response-handler (406) 1885(define-erc-response-handler (406)
1886 "No such nick." nil 1886 "No such nick." nil
1887 (erc-display-message parsed '(notice error) 'active 1887 (erc-display-message parsed '(notice error) 'active
1888 's406 ?n (second (erc-response.command-args parsed)))) 1888 's406 ?n (cadr (erc-response.command-args parsed))))
1889 1889
1890(define-erc-response-handler (412) 1890(define-erc-response-handler (412)
1891 "No text to send." nil 1891 "No text to send." nil
@@ -1894,33 +1894,33 @@ See `erc-display-server-message'." nil
1894(define-erc-response-handler (421) 1894(define-erc-response-handler (421)
1895 "Unknown command." nil 1895 "Unknown command." nil
1896 (erc-display-message parsed '(notice error) 'active 's421 1896 (erc-display-message parsed '(notice error) 'active 's421
1897 ?c (second (erc-response.command-args parsed)))) 1897 ?c (cadr (erc-response.command-args parsed))))
1898 1898
1899(define-erc-response-handler (432) 1899(define-erc-response-handler (432)
1900 "Bad nick." nil 1900 "Bad nick." nil
1901 (erc-display-message parsed '(notice error) 'active 's432 1901 (erc-display-message parsed '(notice error) 'active 's432
1902 ?n (second (erc-response.command-args parsed)))) 1902 ?n (cadr (erc-response.command-args parsed))))
1903 1903
1904(define-erc-response-handler (433) 1904(define-erc-response-handler (433)
1905 "Login-time \"nick in use\"." nil 1905 "Login-time \"nick in use\"." nil
1906 (erc-nickname-in-use (second (erc-response.command-args parsed)) 1906 (erc-nickname-in-use (cadr (erc-response.command-args parsed))
1907 "already in use")) 1907 "already in use"))
1908 1908
1909(define-erc-response-handler (437) 1909(define-erc-response-handler (437)
1910 "Nick temporarily unavailable (on IRCnet)." nil 1910 "Nick temporarily unavailable (on IRCnet)." nil
1911 (let ((nick/channel (second (erc-response.command-args parsed)))) 1911 (let ((nick/channel (cadr (erc-response.command-args parsed))))
1912 (unless (erc-channel-p nick/channel) 1912 (unless (erc-channel-p nick/channel)
1913 (erc-nickname-in-use nick/channel "temporarily unavailable")))) 1913 (erc-nickname-in-use nick/channel "temporarily unavailable"))))
1914 1914
1915(define-erc-response-handler (442) 1915(define-erc-response-handler (442)
1916 "Not on channel." nil 1916 "Not on channel." nil
1917 (erc-display-message parsed '(notice error) 'active 's442 1917 (erc-display-message parsed '(notice error) 'active 's442
1918 ?c (second (erc-response.command-args parsed)))) 1918 ?c (cadr (erc-response.command-args parsed))))
1919 1919
1920(define-erc-response-handler (461) 1920(define-erc-response-handler (461)
1921 "Not enough parameters for command." nil 1921 "Not enough parameters for command." nil
1922 (erc-display-message parsed '(notice error) 'active 's461 1922 (erc-display-message parsed '(notice error) 'active 's461
1923 ?c (second (erc-response.command-args parsed)) 1923 ?c (cadr (erc-response.command-args parsed))
1924 ?m (erc-response.contents parsed))) 1924 ?m (erc-response.contents parsed)))
1925 1925
1926(define-erc-response-handler (465) 1926(define-erc-response-handler (465)
@@ -1936,37 +1936,37 @@ See `erc-display-server-message'." nil
1936 (erc-display-message parsed '(notice error) nil 1936 (erc-display-message parsed '(notice error) nil
1937 (intern (format "s%s" 1937 (intern (format "s%s"
1938 (erc-response.command parsed))) 1938 (erc-response.command parsed)))
1939 ?c (second (erc-response.command-args parsed)))) 1939 ?c (cadr (erc-response.command-args parsed))))
1940 1940
1941(define-erc-response-handler (475) 1941(define-erc-response-handler (475)
1942 "Channel key needed." nil 1942 "Channel key needed." nil
1943 (erc-display-message parsed '(notice error) nil 's475 1943 (erc-display-message parsed '(notice error) nil 's475
1944 ?c (second (erc-response.command-args parsed))) 1944 ?c (cadr (erc-response.command-args parsed)))
1945 (when erc-prompt-for-channel-key 1945 (when erc-prompt-for-channel-key
1946 (let ((channel (second (erc-response.command-args parsed))) 1946 (let ((channel (cadr (erc-response.command-args parsed)))
1947 (key (read-from-minibuffer 1947 (key (read-from-minibuffer
1948 (format "Channel %s is mode +k. Enter key (RET to cancel): " 1948 (format "Channel %s is mode +k. Enter key (RET to cancel): "
1949 (second (erc-response.command-args parsed)))))) 1949 (cadr (erc-response.command-args parsed))))))
1950 (when (and key (> (length key) 0)) 1950 (when (and key (> (length key) 0))
1951 (erc-cmd-JOIN channel key))))) 1951 (erc-cmd-JOIN channel key)))))
1952 1952
1953(define-erc-response-handler (477) 1953(define-erc-response-handler (477)
1954 "Channel doesn't support modes." nil 1954 "Channel doesn't support modes." nil
1955 (let ((channel (second (erc-response.command-args parsed))) 1955 (let ((channel (cadr (erc-response.command-args parsed)))
1956 (message (erc-response.contents parsed))) 1956 (message (erc-response.contents parsed)))
1957 (erc-display-message parsed 'notice (erc-get-buffer channel proc) 1957 (erc-display-message parsed 'notice (erc-get-buffer channel proc)
1958 (format "%s: %s" channel message)))) 1958 (format "%s: %s" channel message))))
1959 1959
1960(define-erc-response-handler (482) 1960(define-erc-response-handler (482)
1961 "You need to be a channel operator to do that." nil 1961 "You need to be a channel operator to do that." nil
1962 (let ((channel (second (erc-response.command-args parsed))) 1962 (let ((channel (cadr (erc-response.command-args parsed)))
1963 (message (erc-response.contents parsed))) 1963 (message (erc-response.contents parsed)))
1964 (erc-display-message parsed '(error notice) 'active 's482 1964 (erc-display-message parsed '(error notice) 'active 's482
1965 ?c channel ?m message))) 1965 ?c channel ?m message)))
1966 1966
1967(define-erc-response-handler (671) 1967(define-erc-response-handler (671)
1968 "Secure connection response in WHOIS." nil 1968 "Secure connection response in WHOIS." nil
1969 (let ((nick (second (erc-response.command-args parsed))) 1969 (let ((nick (cadr (erc-response.command-args parsed)))
1970 (securemsg (erc-response.contents parsed))) 1970 (securemsg (erc-response.contents parsed)))
1971 (erc-display-message parsed 'notice 'active 's671 1971 (erc-display-message parsed 'notice 'active 's671
1972 ?n nick ?a securemsg))) 1972 ?n nick ?a securemsg)))
diff --git a/nt/ChangeLog b/nt/ChangeLog
index ae6cb231614..0e66f723a2c 100644
--- a/nt/ChangeLog
+++ b/nt/ChangeLog
@@ -1,3 +1,9 @@
12012-11-23 Juanma Barranquero <lekktu@gmail.com>
2
3 * config.nt: Sync with autogen/config.in.
4 (BROKEN_GETWD, HAVE_CLOSEDIR, HAVE_DIRENT_H, HAVE_FCNTL_H, HAVE_GETWD):
5 Remove.
6
12012-11-23 Eli Zaretskii <eliz@gnu.org> 72012-11-23 Eli Zaretskii <eliz@gnu.org>
2 8
3 * gmake.defs (SWITCHCHAR): Define to // under MSYS, / otherwise. 9 * gmake.defs (SWITCHCHAR): Define to // under MSYS, / otherwise.
diff --git a/nt/config.nt b/nt/config.nt
index 1adcbca89be..ba63d2c4833 100644
--- a/nt/config.nt
+++ b/nt/config.nt
@@ -54,9 +54,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
54/* Define to the number of bits in type 'wint_t'. */ 54/* Define to the number of bits in type 'wint_t'. */
55#undef BITSIZEOF_WINT_T 55#undef BITSIZEOF_WINT_T
56 56
57/* Define if getwd should not be used. */
58#undef BROKEN_GETWD
59
60/* Define if get_current_dir_name should not be used. */ 57/* Define if get_current_dir_name should not be used. */
61#undef BROKEN_GET_CURRENT_DIR_NAME 58#undef BROKEN_GET_CURRENT_DIR_NAME
62 59
@@ -262,9 +259,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
262/* Define to 1 if you have the `clock_settime' function. */ 259/* Define to 1 if you have the `clock_settime' function. */
263#undef HAVE_CLOCK_SETTIME 260#undef HAVE_CLOCK_SETTIME
264 261
265/* Define to 1 if you have the `closedir' function. */
266#define HAVE_CLOSEDIR 1
267
268/* Define to 1 if you have the <coff.h> header file. */ 262/* Define to 1 if you have the <coff.h> header file. */
269#undef HAVE_COFF_H 263#undef HAVE_COFF_H
270 264
@@ -348,9 +342,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
348/* Define to 1 if you have the `difftime' function. */ 342/* Define to 1 if you have the `difftime' function. */
349#undef HAVE_DIFFTIME 343#undef HAVE_DIFFTIME
350 344
351/* Define to 1 if you have the <dirent.h> header file. */
352#undef HAVE_DIRENT_H
353
354/* Define to 1 if you have the 'dup2' function. */ 345/* Define to 1 if you have the 'dup2' function. */
355#define HAVE_DUP2 1 346#define HAVE_DUP2 1
356 347
@@ -375,9 +366,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
375/* Define to 1 if you have the `faccessat' function. */ 366/* Define to 1 if you have the `faccessat' function. */
376#undef HAVE_FACCESSAT 367#undef HAVE_FACCESSAT
377 368
378/* Define to 1 if you have the <fcntl.h> header file. */
379#undef HAVE_FCNTL_H
380
381/* Define to 1 if you have the `fork' function. */ 369/* Define to 1 if you have the `fork' function. */
382#undef HAVE_FORK 370#undef HAVE_FORK
383 371
@@ -459,9 +447,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
459/* Define to 1 if you have the `gettimeofday' function. */ 447/* Define to 1 if you have the `gettimeofday' function. */
460#define HAVE_GETTIMEOFDAY 1 448#define HAVE_GETTIMEOFDAY 1
461 449
462/* Define to 1 if you have the `getwd' function. */
463#undef HAVE_GETWD
464
465/* Define to 1 if you have the `get_current_dir_name' function. */ 450/* Define to 1 if you have the `get_current_dir_name' function. */
466#undef HAVE_GET_CURRENT_DIR_NAME 451#undef HAVE_GET_CURRENT_DIR_NAME
467 452
diff --git a/src/ChangeLog b/src/ChangeLog
index 45df517eff5..e5669da5196 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,19 @@
12012-11-23 Dmitry Antipov <dmantipov@yandex.ru>
2
3 * frame.h (struct frame): Remove display_preempted member
4 since all users are dead long ago.
5 * nsterm.h (struct x_output): Use the only dummy member.
6 * w32menu.c (pending_menu_activation): Remove since not
7 really used.
8 (set_frame_menubar): Adjust user.
9 * w32term.h (struct x_output): Drop outdated #if 0 code.
10 (struct w32_output): Use bitfields for explicit_parent,
11 asked_for_visible and menubar_active members. Drop
12 unused pending_menu_activation member.
13 * xterm.h (struct x_output): Drop outdated #if 0 code.
14 Use bitfields for explicit_parent, asked_for_visible,
15 has_been_visible and net_wm_state_hidden_seen members.
16
12012-11-23 Eli Zaretskii <eliz@gnu.org> 172012-11-23 Eli Zaretskii <eliz@gnu.org>
2 18
3 * makefile.w32-in (globals.h, gl-stamp): Use $(SWITCHCHAR) instead 19 * makefile.w32-in (globals.h, gl-stamp): Use $(SWITCHCHAR) instead
diff --git a/src/frame.h b/src/frame.h
index 87c4fcb0555..5ebfc2f7ec3 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -357,9 +357,6 @@ struct frame
357 unsigned int external_menu_bar : 1; 357 unsigned int external_menu_bar : 1;
358#endif 358#endif
359 359
360 /* Nonzero if last attempt at redisplay on this frame was preempted. */
361 unsigned display_preempted : 1;
362
363 /* visible is nonzero if the frame is currently displayed; we check 360 /* visible is nonzero if the frame is currently displayed; we check
364 it to see if we should bother updating the frame's contents. 361 it to see if we should bother updating the frame's contents.
365 DON'T SET IT DIRECTLY; instead, use FRAME_SET_VISIBLE. 362 DON'T SET IT DIRECTLY; instead, use FRAME_SET_VISIBLE.
diff --git a/src/nsterm.h b/src/nsterm.h
index 2e868b86caf..005701ed415 100644
--- a/src/nsterm.h
+++ b/src/nsterm.h
@@ -630,8 +630,7 @@ struct ns_output
630/* this dummy decl needed to support TTYs */ 630/* this dummy decl needed to support TTYs */
631struct x_output 631struct x_output
632{ 632{
633 unsigned long background_pixel; 633 int unused;
634 unsigned long foreground_pixel;
635}; 634};
636 635
637 636
diff --git a/src/w32menu.c b/src/w32menu.c
index 36bf9574fdc..84fb1bdc71e 100644
--- a/src/w32menu.c
+++ b/src/w32menu.c
@@ -114,17 +114,6 @@ static int fill_in_menu (HMENU, widget_value *);
114 114
115void w32_free_menu_strings (HWND); 115void w32_free_menu_strings (HWND);
116 116
117
118
119/* This is set nonzero after the user activates the menu bar, and set
120 to zero again after the menu bars are redisplayed by prepare_menu_bar.
121 While it is nonzero, all calls to set_frame_menubar go deep.
122
123 I don't understand why this is needed, but it does seem to be
124 needed on Motif, according to Marcus Daniels <marcus@sysc.pdx.edu>. */
125
126int pending_menu_activation;
127
128#ifdef HAVE_MENUS 117#ifdef HAVE_MENUS
129 118
130DEFUN ("x-popup-dialog", Fx_popup_dialog, Sx_popup_dialog, 2, 3, 0, 119DEFUN ("x-popup-dialog", Fx_popup_dialog, Sx_popup_dialog, 2, 3, 0,
@@ -389,8 +378,6 @@ set_frame_menubar (FRAME_PTR f, bool first_time, bool deep_p)
389 378
390 if (! menubar_widget) 379 if (! menubar_widget)
391 deep_p = 1; 380 deep_p = 1;
392 else if (pending_menu_activation && !deep_p)
393 deep_p = 1;
394 381
395 if (deep_p) 382 if (deep_p)
396 { 383 {
diff --git a/src/w32term.h b/src/w32term.h
index ce709c1231d..28d4ca6c490 100644
--- a/src/w32term.h
+++ b/src/w32term.h
@@ -251,16 +251,10 @@ extern Lisp_Object x_get_focus_frame (struct frame *);
251 diffs between X and w32 code. */ 251 diffs between X and w32 code. */
252struct x_output 252struct x_output
253{ 253{
254#if 0 /* These are also defined in struct frame. Use that instead. */
255 PIX_TYPE background_pixel;
256 PIX_TYPE foreground_pixel;
257#endif
258
259 /* Keep track of focus. May be EXPLICIT if we received a FocusIn for this 254 /* Keep track of focus. May be EXPLICIT if we received a FocusIn for this
260 frame, or IMPLICIT if we received an EnterNotify. 255 frame, or IMPLICIT if we received an EnterNotify.
261 FocusOut and LeaveNotify clears EXPLICIT/IMPLICIT. */ 256 FocusOut and LeaveNotify clears EXPLICIT/IMPLICIT. */
262 int focus_state; 257 int focus_state;
263
264}; 258};
265 259
266enum 260enum
@@ -347,17 +341,13 @@ struct w32_output
347 341
348 /* Nonzero means our parent is another application's window 342 /* Nonzero means our parent is another application's window
349 and was explicitly specified. */ 343 and was explicitly specified. */
350 char explicit_parent; 344 unsigned explicit_parent : 1;
351 345
352 /* Nonzero means tried already to make this frame visible. */ 346 /* Nonzero means tried already to make this frame visible. */
353 char asked_for_visible; 347 unsigned asked_for_visible : 1;
354 348
355 /* Nonzero means menubar is currently active. */ 349 /* Nonzero means menubar is currently active. */
356 char menubar_active; 350 unsigned menubar_active : 1;
357
358 /* Nonzero means menubar is about to become active, but should be
359 brought up to date first. */
360 volatile char pending_menu_activation;
361 351
362 /* Relief GCs, colors etc. */ 352 /* Relief GCs, colors etc. */
363 struct relief 353 struct relief
diff --git a/src/xterm.h b/src/xterm.h
index 6ef3d11fe48..d63ed1c4583 100644
--- a/src/xterm.h
+++ b/src/xterm.h
@@ -506,12 +506,6 @@ struct x_output
506 value contains an ID of the fontset, else -1. */ 506 value contains an ID of the fontset, else -1. */
507 int fontset; 507 int fontset;
508 508
509 /* Pixel values used for various purposes.
510 border_pixel may be -1 meaning use a gray tile. */
511#if 0 /* These are also defined in struct frame. Use that instead. */
512 unsigned long background_pixel;
513 unsigned long foreground_pixel;
514#endif
515 unsigned long cursor_pixel; 509 unsigned long cursor_pixel;
516 unsigned long border_pixel; 510 unsigned long border_pixel;
517 unsigned long mouse_pixel; 511 unsigned long mouse_pixel;
@@ -574,13 +568,13 @@ struct x_output
574 568
575 /* Nonzero means our parent is another application's window 569 /* Nonzero means our parent is another application's window
576 and was explicitly specified. */ 570 and was explicitly specified. */
577 char explicit_parent; 571 unsigned explicit_parent : 1;
578 572
579 /* Nonzero means tried already to make this frame visible. */ 573 /* Nonzero means tried already to make this frame visible. */
580 char asked_for_visible; 574 unsigned asked_for_visible : 1;
581 575
582 /* Nonzero if this frame was ever previously visible. */ 576 /* Nonzero if this frame was ever previously visible. */
583 char has_been_visible; 577 unsigned has_been_visible : 1;
584 578
585#ifdef HAVE_X_I18N 579#ifdef HAVE_X_I18N
586 /* Input context (currently, this means Compose key handler setup). */ 580 /* Input context (currently, this means Compose key handler setup). */
@@ -634,7 +628,7 @@ struct x_output
634 int top_before_move; 628 int top_before_move;
635 629
636 /* Non-zero if _NET_WM_STATE_HIDDEN is set for this frame. */ 630 /* Non-zero if _NET_WM_STATE_HIDDEN is set for this frame. */
637 int net_wm_state_hidden_seen; 631 unsigned net_wm_state_hidden_seen : 1;
638}; 632};
639 633
640#define No_Cursor (None) 634#define No_Cursor (None)