aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorEli Zaretskii2017-06-01 21:24:15 +0300
committerEli Zaretskii2017-06-01 21:24:15 +0300
commite5de79992a22f2932abb5f1f2600f576a60ae6ef (patch)
treedc88db98473bd63cb1a7e9362e210ff65b67074b /test
parent7c9ac111c5e5d92e620b666893993d5dc562e483 (diff)
downloademacs-e5de79992a22f2932abb5f1f2600f576a60ae6ef.tar.gz
emacs-e5de79992a22f2932abb5f1f2600f576a60ae6ef.zip
Revert "Add customizable to display raw bytes as hex"
This reverts commit 7c9ac111c5e5d92e620b666893993d5dc562e483.
Diffstat (limited to 'test')
-rw-r--r--test/manual/redisplay-testsuite.el27
1 files changed, 1 insertions, 26 deletions
diff --git a/test/manual/redisplay-testsuite.el b/test/manual/redisplay-testsuite.el
index 2175cbab1b7..694d55ab1db 100644
--- a/test/manual/redisplay-testsuite.el
+++ b/test/manual/redisplay-testsuite.el
@@ -34,8 +34,7 @@
34 (setq overlay (make-overlay opoint (point))) 34 (setq overlay (make-overlay opoint (point)))
35 (while props 35 (while props
36 (overlay-put overlay (car props) (cadr props)) 36 (overlay-put overlay (car props) (cadr props))
37 (setq props (cddr props))) 37 (setq props (cddr props)))))
38 overlay))
39 38
40(defun test-redisplay-1 () 39(defun test-redisplay-1 ()
41 (insert "Test 1: Displaying adjacent and overlapping overlays:\n\n") 40 (insert "Test 1: Displaying adjacent and overlapping overlays:\n\n")
@@ -294,29 +293,6 @@ static unsigned char x_bits[] = {0xff, 0x81, 0xbd, 0xa5, 0xa5, 0xbd, 0x81, 0xff
294 293
295 (insert "\n")) 294 (insert "\n"))
296 295
297(defvar test-redisplay-5-expected-overlay nil)
298(defvar test-redisplay-5-result-overlay nil)
299
300(defun test-redisplay-5-toggle (_event)
301 (interactive "e")
302 (setq display-raw-bytes-as-hex (not display-raw-bytes-as-hex))
303 (let ((label (if display-raw-bytes-as-hex "\\x80" "\\200")))
304 (overlay-put test-redisplay-5-expected-overlay 'display
305 (propertize label 'face 'escape-glyph))))
306
307(defun test-redisplay-5 ()
308 (insert "Test 5: Display of raw bytes:\n\n")
309 (insert " Expected: ")
310 (setq test-redisplay-5-expected-overlay
311 (test-insert-overlay " " 'display
312 (propertize "\\200" 'face 'escape-glyph)))
313 (insert "\n Result: ")
314 (setq test-redisplay-5-result-overlay
315 (test-insert-overlay " " 'display "\200"))
316 (insert "\n\n")
317 (insert-button "Toggle between octal and hex display"
318 'action 'test-redisplay-5-toggle))
319
320 296
321(defun test-redisplay () 297(defun test-redisplay ()
322 (interactive) 298 (interactive)
@@ -333,6 +309,5 @@ static unsigned char x_bits[] = {0xff, 0x81, 0xbd, 0xa5, 0xa5, 0xbd, 0x81, 0xff
333 (test-redisplay-2) 309 (test-redisplay-2)
334 (test-redisplay-3) 310 (test-redisplay-3)
335 (test-redisplay-4) 311 (test-redisplay-4)
336 (test-redisplay-5)
337 (goto-char (point-min)))) 312 (goto-char (point-min))))
338 313