aboutsummaryrefslogtreecommitdiffstats
path: root/src/frame.c
diff options
context:
space:
mode:
authorStefan Monnier2012-10-01 20:31:56 -0400
committerStefan Monnier2012-10-01 20:31:56 -0400
commit090cf9dbb07e7ab0817c208b6d8dcd613180b7c3 (patch)
tree7057ce7dfff1066256c5a321e3ffd5c8a79c7eb4 /src/frame.c
parent9f7b98f812674d2824d713b460973842e6e0943b (diff)
downloademacs-090cf9dbb07e7ab0817c208b6d8dcd613180b7c3.tar.gz
emacs-090cf9dbb07e7ab0817c208b6d8dcd613180b7c3.zip
Misc minor simplifications in C code.
* src/buffer.c (Fset_buffer_multibyte): Signal an error instead of widening. (Fmake_overlay): Remove redundant tests. * src/coding.h (ENCODE_FILE, DECODE_FILE, DECODE_SYSTEM): Remove special case for the special 0 coding-system. * src/frame.c (Fmake_terminal_frame): Prefer safer CONSP over !NILP.
Diffstat (limited to 'src/frame.c')
-rw-r--r--src/frame.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/frame.c b/src/frame.c
index edb90038a48..2fcf7275f9c 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -632,7 +632,7 @@ affects all frames on the same terminal device. */)
632 Lisp_Object terminal; 632 Lisp_Object terminal;
633 633
634 terminal = Fassq (Qterminal, parms); 634 terminal = Fassq (Qterminal, parms);
635 if (!NILP (terminal)) 635 if (CONSP (terminal))
636 { 636 {
637 terminal = XCDR (terminal); 637 terminal = XCDR (terminal);
638 t = get_terminal (terminal, 1); 638 t = get_terminal (terminal, 1);